> For the complete documentation index, see [llms.txt](https://documentation.opencrvs.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.opencrvs.org/v2.1/technical/guides/configuration/events/actions/core-actions.md).

# Core actions

Configuring core actions

At a basic level, [event is a document](https://github.com/opencrvs/opencrvs-core/blob/develop/packages/commons/src/events/EventDocument.ts), consisting of an [ordered list of actions](https://github.com/opencrvs/opencrvs-core/blob/develop/packages/commons/src/events/ActionDocument.ts). The actions determine [the state of the event](https://github.com/opencrvs/opencrvs-core/blob/develop/packages/commons/src/events/EventIndex.ts#L23). Depending on the state, different actions are available. For example, event needs to be declared before it can be registered. By the same token, event cannot be declared after it has been registered.

OpenCRVS provides a set of [core actions](https://github.com/opencrvs/opencrvs-core/blob/develop/packages/commons/src/events/ActionType.ts) which are recognised and supported at system level. Apart from `CREATE`, each of the actions needs to be configured in the [event configuration](https://github.com/opencrvs/opencrvs-core/blob/develop/packages/commons/src/events/EventConfig.ts).

Since core actions are defined by the system, they are only partially configurable by the system implementor. [What is configurable](https://github.com/opencrvs/opencrvs-core/blob/develop/packages/commons/src/events/ActionConfig.ts) depends on the action type.

### Status determines available actions

[Available actions are based on the status of the event.](https://github.com/opencrvs/opencrvs-core/blob/develop/packages/commons/src/events/state/availableActions.ts)\
\
1\. An event always has a status. The status of the event is based on the actions that have been performed previously.

```typescript
export const EventStatus = z.enum([
  'CREATED',
  'NOTIFIED',
  'DECLARED',
  'REGISTERED',
  'ARCHIVED'
])
```

2. Statuses follow each other. Some state changes are not possible after certain point. For example, a `DECLARED` event cannot be deleted, nor can a `REGISTERED` archived.

<figure><img src="https://3410611746-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSSLwN6XKBBaNBtMjawLL%2Fuploads%2F79cwnAoLzP4fo5vaxoiM%2FScreenshot%202026-08-31%20at%2012.58.04.png?alt=media&amp;token=405b77b5-61c9-4cde-90c2-f74e774e90f7" alt=""><figcaption><p>Status changes follow successful actions. Some actions are optional. They do not need to occur for the event to be registered.</p></figcaption></figure>

### Actions gather and provide information

The goal of the event configuration is to gather all the necessary information for the event to be `REGISTERED`. Once the event is registered, we can be certain that the country-defined process has been followed, and further actions, like `PRINT_CERTIFICATE`, are based on verified information.

{% hint style="info" %}
Action-specific form configurations are part of annotation in the corresponding `ActionDocument`
{% endhint %}

<pre class="language-typescript"><code class="lang-typescript"><a data-footnote-ref href="#user-content-fn-1">export const ActionDocument = z.object({</a>
  declaration: ActionUpdate.describe('Declaration data defined by the EventConfig. Supports partial updates.'),
  annotation: ActionUpdate.optional().nullable().describe('Action-specific metadata. Actions are independently configurable.'),
  content: z.object().nullable().describe('Action-specific metadata. System configured.')
  // ---METADATA common to all actions---
  createdAt: z.string().datetime().describe('Timestamp indicating when the action was created.'),
  createdBy: z.string().describe('Identifier of the user who created the action.'),
  ...,
// --- METADATA common to all actions---
})

// Example 1. "READ" action has only mandatory data.
const ReadActionDocument = {
  type: 'READ',
  declaration: {},
  annotation: null,
  createdAt: "2026-08-31T08:30:55.604Z",
  createdBy: "ea3e4480-2263-40e8-937c-463a9260b729",
}

// Example 2. "DECLARE" action has both declaration and annotation based on the configuration.
const DeclarationActionDocument = {
  type: 'DECLARE',
  declaration: {
    "applicant.dob": "2026-08-31",
    "applicant.tob": "11:54",
    "applicant.name": {
      "surname": "Mweene",
      "firstname": "Kennedy",
      "middlename": "Ewe",
  },
  annotation: {
    "review.comment": "My comment",
    "review.signature": {
      "path": "f78b5b6f-41a5-4007-b3a1-85704f28966c.png",
      "type": "image/png",
      "originalFilename": "signature-1779281690594.png"
    }
  },
  createdAt: "2026-08-31T08:30:55.604Z",
  createdBy: "ea3e4480-2263-40e8-937c-463a9260b729",
 }
}

// Example 3. "PRINT_CERTIFICATE" action has both annotation and content.
// Annotation is based on ActionConfig and different from DECLARE's annotation.
// content is specified by the system.
const PrintCertificateActionDocument = {
  type: 'PRINT_CERTIFICATE',
  declaration: {},
  annotation: {
   "collector.requesterId": "OTHER",
   "collector.OTHER.relationshipToChild": "UNCLE",
  },
  content: {
    "templateId": "v2.birth-certificate"
  },
  createdAt: "2026-08-31T08:30:55.604Z",
  createdBy: "ea3e4480-2263-40e8-937c-463a9260b729",
}

// Example 4: "DUPLICATE_DETECTED" action has "content 
// Action is triggered by declaration action ('DECLARE', 'NOTIFY' and similar) and managed by the system.
const DuplicateDetectedActionDocument = {
  type: 'DUPLICATE_DETECTED',
  declaration: {},
  annotation: null,
  content: {
    duplicates: [{
        "id": "3c6cfa5e-033b-4549-8064-7c4fa692185b",
        "trackingId": "GPOZZ2"
      }]
  },
  createdAt: "2026-08-31T08:30:55.604Z",
  // Determined by whose action triggered the duplicate detection.
  createdBy: "ea3e4480-2263-40e8-937c-463a9260b729",
}



</code></pre>

#### Configuring action annotations

{% hint style="info" %}
Action configuration forms are independent but they can use shared fields.
{% endhint %}

Example 1: `DECLARE` defines two fields, shown on the action review page.

```typescript
{
  type: ActionType.DECLARE,
  label: {
    defaultMessage: "Declare",
    description:
      "This is shown as the action name anywhere the user can trigger the action from",
    id: "event.example-event.action.declare.label",
  },
  // Specifies additional fields shown in declaration review page.
  // Output is persisted as declare's ActionDocument annotation.
  review: {
    title: {
      id: "event.my-example.action.declare.form.review.title",
      defaultMessage: "Title",
      description: "Title of the review page",
    },
    fields: [
      {
        id: "review.comment",
        type: "FieldType.TEXTAREA",
        label: {
          defaultMessage: "Comment",
          id: "event.my-example.action.declare.form.review.comment.label",
          description: "Label for the comment field in the review section",
        },
      },
      {
        type: "FieldType.SIGNATURE",
        id: "review.signature",
        label: {
          defaultMessage: "Signature of informant",
          id: "event.my-example.action.declare.form.review.signature.label",
          description: "Label for the signature field in the review section",
        },
        signaturePromptLabel: {
          id: "signature.upload.modal.title",
          defaultMessage: "Draw signature",
          description: "Title for the modal to draw signature",
        },
      },
    ],
  },
};
```

<figure><img src="https://3410611746-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSSLwN6XKBBaNBtMjawLL%2Fuploads%2FEfpBinZ1E840eZrjc556%2FScreenshot%202026-08-31%20at%2016.04.00.png?alt=media&amp;token=b5e8e833-72fd-459f-9390-ae5c950a32c1" alt="" width="375"><figcaption><p>Comment and signature fields rendered based on the review configuration</p></figcaption></figure>

Example 2: `PRINT_CERTIFICATE` configures complete form with two fields:

```typescript
{
  type: "ActionType.PRINT_CERTIFICATE",
  label: {
    defaultMessage: "Print certificate",
    description:
      "This is shown as the action name anywhere the user can trigger the action from",
    id: "event.my-example.action.collect-certificate.label",
  },
  printForm: {
    label: {
      id: "event.my-example.action.certificate.form.label",
      defaultMessage: "Example event certificate form",
      description: "This is what this form is referred as in the system",
    },
    pages: [
      {
        id: "collector",
        type: PageTypes.enum.FORM,
        fields: [
          {
            id: "collector.requesterId",
            type: "SELECT",
            required: true,
            label: {
              defaultMessage: "Requester",
              description: "This is the label for the field",
              id: "event.my-example.action.certificate.form.section.requester.label",
            },
            options: [
              {
                label: {
                  id: "event.my-example.action.certificate.form.section.requester.informant.label",
                  defaultMessage: "Print and issue Informant",
                  description: "This is the label for the field",
                },
                value: "INFORMANT",
              },
              {
                label: {
                  id: "event.my-example.action.certificate.form.section.requester.other.label",
                  defaultMessage: "Print and issue someone else",
                  description: "This is the label for the field",
                },
                value: "OTHER",
              },
            ],
          },
          {
            id: "collector.OTHER.relationshipToMember",
            type: "TEXT",
            required: true,
            label: {
              defaultMessage: "Relationship to Member",
              description:
                "This is the label for the relationship to member field",
              id: "event.my-example.action.form.section.relationshipToMember.label",
            },
            conditionals: [
              {
                type: ConditionalType.SHOW,
                conditional: field("collector.requesterId").inArray(["OTHER"]),
              },
            ],
          },
        ],
      },
    ],
  },
};

```

<figure><img src="https://3410611746-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSSLwN6XKBBaNBtMjawLL%2Fuploads%2FhX0syKwSbqIR1XjJO5Az%2FScreenshot%202026-08-31%20at%2015.54.46.png?alt=media&amp;token=c08b9bf3-d1ba-4bf5-bedc-5e5d960a1bea" alt="" width="563"><figcaption><p><code>PRINT_CERTIFICATE</code> action specifies another form and the results are part of the annotation.</p></figcaption></figure>

1. `annotation` fields are inside red box. Defined in `ActionConfig`
2. `content` fields inside blue box. Defined outside `ActionConfig`

### Configuring core actions

Every core action accepts the same base keys: `label`, `icon`, `supportingCopy`, `conditionals` and `flags`. Each action type resolves to its own configuration entry. When an action has no entry in `actions`, OpenCRVS uses its built-in label and icon.

| Action                                                                                                         | Configurable keys                                                                                               |
| -------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- |
| `DELETE`, `MARK_AS_DUPLICATE`, `MARK_AS_NOT_DUPLICATE`, `APPROVE_CORRECTION`, `REJECT_CORRECTION`, `UNARCHIVE` | `label`, `icon`, `supportingCopy`, `conditionals`, `flags`                                                      |
| `ASSIGN`, `UNASSIGN`                                                                                           | `label`, `icon`, `supportingCopy`, `conditionals` (no `flags` — meta actions are excluded from flag resolution) |
| `DUPLICATE_DETECTED`                                                                                           | `flags` only — the action is system-generated and never shown as a button                                       |
| `READ`                                                                                                         | `label`, `icon`, `supportingCopy`, `review` (no `conditionals`, no `flags`)                                     |
| `NOTIFY`, `DECLARE`, `REGISTER`, `ARCHIVE`, `REJECT`                                                           | base keys plus an optional confirmation dialog `form` (see below)                                               |

`NOTIFY` uses its own configuration when present and otherwise falls back to the `DECLARE` configuration for label, flags, icon and conditionals. Its confirmation dialog `form` never falls back to `DECLARE`.

{% hint style="warning" %}
`APPROVE_CORRECTION` and `REJECT_CORRECTION` no longer inherit the `REQUEST_CORRECTION` configuration. If your country config relies on `flags` or `conditionals` configured on `REQUEST_CORRECTION` also applying when a correction is approved or rejected, add explicit `APPROVE_CORRECTION` and `REJECT_CORRECTION` entries with the same values. `npx @opencrvs/toolkit upgrade` adds them for you when `REQUEST_CORRECTION` has `flags` or `conditionals`.
{% endhint %}

#### Unarchive

`ActionType.UNARCHIVE` restores an `ARCHIVED` record to the status it had before it was archived. It is only available on archived records and requires the `record.unarchive` scope, which you must add to the relevant roles. Flags are not changed by archiving or unarchiving unless you configure `flags` on either action — see [Flags](/v2.1/technical/guides/configuration/events/flags.md).

#### Confirmation dialog form fields

`NOTIFY`, `DECLARE`, `REGISTER`, `ARCHIVE` and `REJECT` accept an optional `form: FieldConfig[]`, the same shape custom actions use. The fields are rendered on the action's confirmation dialog wherever the action is triggered — directly, as a quick action, or as "Declare/Register with edits". A combined action shows only the final action's fields (for example, registering with edits shows the `REGISTER` fields). Submitted values are stored in the action's `annotation` and shown in the record's audit history. A required field disables the dialog's confirm button until it is completed. On `REJECT`, the fields are shown alongside the built-in rejection reason.

The edit dialogs no longer contain a built-in comment field. To collect a comment when a declaration is edited, configure a `TEXTAREA` field in the `form` of `NOTIFY`, `DECLARE` and/or `REGISTER`.

```typescript
actions: [
  {
    type: ActionType.REGISTER,
    label: {
      id: 'event.birth.action.register.label',
      defaultMessage: 'Register',
      description: 'This is shown as the action name anywhere the user can trigger the action from'
    },
    form: [
      {
        id: 'register.comment',
        type: FieldType.TEXTAREA,
        required: false,
        label: {
          id: 'event.birth.action.register.field.comment.label',
          defaultMessage: 'Comment',
          description: 'Label for the comment field on the register dialog'
        }
      }
    ]
  },
  {
    type: ActionType.UNARCHIVE,
    label: {
      id: 'event.birth.action.unarchive.label',
      defaultMessage: 'Unarchive',
      description: 'This is shown as the action name anywhere the user can trigger the action from'
    }
  },
  {
    type: ActionType.DUPLICATE_DETECTED,
    // Only flags can be configured for DUPLICATE_DETECTED
    flags: [{ id: 'needs-dedup-review', operation: 'add' }]
  }
]
```

## The ReadActionConfig object

```json
{"openapi":"3.1.0","info":{"title":"OpenCRVS API","version":"2.0.0"},"components":{"schemas":{"ReadActionConfig":{"type":"object","properties":{"label":{"description":"Human readable description of the action","$ref":"#/components/schemas/TranslationConfigOutput"},"flags":{"description":"READ is a meta action excluded from flag resolution, so flags configured here would never apply.","not":{}},"supportingCopy":{"description":"Text displayed on the confirmation dialog","$ref":"#/components/schemas/TranslationConfigOutput"},"icon":{"type":"string","description":"Icon representing the action"},"conditionals":{"description":"Read-action can not be disabled or hidden with conditionals.","not":{}},"type":{"type":"string","const":"READ"},"review":{"type":"object","properties":{"title":{"description":"Title of the review page","$ref":"#/components/schemas/TranslationConfigOutput"},"fields":{"type":"array","items":{"$ref":"#/components/schemas/FieldConfig"},"description":"Fields displayed on the review page for annotations."}},"required":["title","fields"],"additionalProperties":false,"description":"Configuration of the review page for read-only view."}},"required":["label","type","review"],"additionalProperties":false,"description":"Configuration for the read action — defines the record-tab content displayed on the event overview page."},"TranslationConfigOutput":{"type":"object","properties":{"id":{"type":"string","description":"The identifier of the translation referred in translation CSV files"},"defaultMessage":{"type":"string","description":"Default translation message"},"description":{"type":"string","description":"Describe the translation for a translator to be able to identify it."}},"required":["id","defaultMessage","description"],"additionalProperties":false,"description":"Translation configuration"},"FieldConfig":{"oneOf":[{"$ref":"#/components/schemas/FieldGroup"},{"$ref":"#/components/schemas/Address"},{"$ref":"#/components/schemas/TextField"},{"$ref":"#/components/schemas/NumberField"},{"$ref":"#/components/schemas/NumberWithUnitField"},{"$ref":"#/components/schemas/TextAreaField"},{"$ref":"#/components/schemas/AgeField"},{"$ref":"#/components/schemas/DateField"},{"$ref":"#/components/schemas/TimeField"},{"$ref":"#/components/schemas/DateRangeField"},{"$ref":"#/components/schemas/SelectDateRangeField"},{"$ref":"#/components/schemas/ImageViewField"},{"$ref":"#/components/schemas/Paragraph"},{"$ref":"#/components/schemas/Heading"},{"$ref":"#/components/schemas/RadioGroup"},{"$ref":"#/components/schemas/BulletList"},{"$ref":"#/components/schemas/PageHeader"},{"$ref":"#/components/schemas/Select"},{"$ref":"#/components/schemas/NameField"},{"$ref":"#/components/schemas/PhoneField"},{"$ref":"#/components/schemas/IdField"},{"$ref":"#/components/schemas/Checkbox"},{"$ref":"#/components/schemas/File"},{"$ref":"#/components/schemas/Country"},{"$ref":"#/components/schemas/AdministrativeAreaField"},{"$ref":"#/components/schemas/Divider"},{"$ref":"#/components/schemas/LocationInput"},{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"FACILITY"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"allowedLocations":{"description":"Limits which location options are selectable depending on user jurisdiction and location.","type":"object","properties":{"$jurisdiction":{"anyOf":[{"type":"string","enum":["administrativeArea","location","all"],"description":"Filters based on user jurisdiction relative to their office location in hierarchy."},{"type":"object","properties":{"$scope":{"type":"string","enum":["organisation.read-locations","user.read","user.create","user.edit","user.search","record.search","record.create","record.read","record.declare","record.notify","record.edit","record.reject","record.archive","record.unarchive","record.review-duplicates","record.register","record.print-certified-copies","record.request-correction","record.correct","record.unassign-others","record.custom-action","record.action.accept","record.action.reject","bypassratelimit","record.reindex","user.data-seeding","integration.create","integration.audit.read","record.import","config.update-all","location.edit","attachment.upload","profile.electronic-signature","user.read-only-my-audit","performance.read","performance.read-dashboards","performance.vital-statistics-export","workqueue","dashboard.view"]},"$option":{"type":"string","enum":["event","placeOfEvent","createdBy","createdIn","notifiedIn","notifiedBy","declaredIn","declaredBy","status","registeredIn","registeredBy","flags","accessLevel","role","ids"]}},"required":["$scope","$option"],"additionalProperties":false}]}},"required":["$jurisdiction"],"additionalProperties":false},"activeOnly":{"type":"boolean"},"anchorToDateOfEvent":{"type":"boolean"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"Input field for a facility"},{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"OFFICE"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"allowedLocations":{"description":"Limits which location options are selectable depending on user jurisdiction and location.","type":"object","properties":{"$jurisdiction":{"anyOf":[{"type":"string","enum":["administrativeArea","location","all"],"description":"Filters based on user jurisdiction relative to their office location in hierarchy."},{"type":"object","properties":{"$scope":{"type":"string","enum":["organisation.read-locations","user.read","user.create","user.edit","user.search","record.search","record.create","record.read","record.declare","record.notify","record.edit","record.reject","record.archive","record.unarchive","record.review-duplicates","record.register","record.print-certified-copies","record.request-correction","record.correct","record.unassign-others","record.custom-action","record.action.accept","record.action.reject","bypassratelimit","record.reindex","user.data-seeding","integration.create","integration.audit.read","record.import","config.update-all","location.edit","attachment.upload","profile.electronic-signature","user.read-only-my-audit","performance.read","performance.read-dashboards","performance.vital-statistics-export","workqueue","dashboard.view"]},"$option":{"type":"string","enum":["event","placeOfEvent","createdBy","createdIn","notifiedIn","notifiedBy","declaredIn","declaredBy","status","registeredIn","registeredBy","flags","accessLevel","role","ids"]}},"required":["$scope","$option"],"additionalProperties":false}]}},"required":["$jurisdiction"],"additionalProperties":false},"activeOnly":{"type":"boolean"},"anchorToDateOfEvent":{"type":"boolean"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"Input field for an office"},{"$ref":"#/components/schemas/SignatureField"},{"$ref":"#/components/schemas/EmailField"},{"$ref":"#/components/schemas/FileUploadWithOptions"},{"$ref":"#/components/schemas/DataField"},{"$ref":"#/components/schemas/ButtonField"},{"$ref":"#/components/schemas/AlphaPrintButton"},{"$ref":"#/components/schemas/HttpField"},{"$ref":"#/components/schemas/AutocompleteField"},{"$ref":"#/components/schemas/LinkButtonField"},{"$ref":"#/components/schemas/VerificationStatus"},{"$ref":"#/components/schemas/QrReaderField"},{"$ref":"#/components/schemas/IdReaderField"},{"$ref":"#/components/schemas/QueryParamReaderField"},{"$ref":"#/components/schemas/LoaderField"},{"$ref":"#/components/schemas/SearchField"},{"$ref":"#/components/schemas/CustomField"},{"$ref":"#/components/schemas/HiddenField"},{"$ref":"#/components/schemas/UserRoleField"}],"description":"Form field configuration","type":"object"},"FieldGroup":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"FIELD_GROUP"},"fields":{"type":"array","items":{"$ref":"#/components/schemas/FieldConfig"}},"configuration":{"type":"object","properties":{"separator":{"description":"Joins the subfield values when the group is rendered as output, e.g. \", \". Defaults to one subfield per line.","type":"string"},"hideEmptyFields":{"description":"Leaves subfields without a value out of the output. Pair it with a separator so the separator does not double up around the gaps.","default":false,"type":"boolean"}},"additionalProperties":false}},"required":["id","label","type","fields"],"additionalProperties":false,"description":"A group of fields that are displayed together"},"FieldConditional":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"SHOW"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'SHOW' conditional is defined, the component is shown to the user only if the condition is met"},{"type":"object","properties":{"type":{"type":"string","const":"ENABLE"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'ENABLE' conditional is defined, the component is enabled only if the condition is met"},{"type":"object","properties":{"type":{"type":"string","const":"DISPLAY_ON_REVIEW"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'DISPLAY_ON_REVIEW' conditional is defined, the component is shown on the review page only if both the 'DISPLAY_ON_REVIEW' and 'SHOW' conditions are met. This should only be used for fields within declaration forms, as they are the only ones with review pages."}],"description":"Conditional gating whether a form field is shown (SHOW), enabled (ENABLE), or displayed on the review page (DISPLAY_ON_REVIEW). When omitted, the field is shown and enabled for everyone, and is displayed on review whenever it has a value.","type":"object"},"Conditional":{"description":"JSON schema conditional configuration"},"ValidationConfig":{"type":"object","properties":{"validator":{"description":"Conditional expression that must hold for the field value to be considered valid.","$ref":"#/components/schemas/Conditional"},"message":{"description":"Error message displayed when the validator does not hold.","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["validator","message"],"additionalProperties":false,"description":"Validation rule applied to a form field. The validator is a conditional expression that must hold for the field value to be considered valid."},"Address":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"ADDRESS"},"configuration":{"type":"object","properties":{"lineSeparator":{"type":"string"},"fields":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"type":{"type":"string","const":"COUNTRY"},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"optionOverrides":{"description":"Conditionals for specific countries. Countries not listed are always shown and enabled.","type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"The value of the option"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}}},"required":["value"],"additionalProperties":false}}},"required":["id","type"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"type":{"type":"string","const":"ADMINISTRATIVE_AREA"},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]}},"required":["id","type"],"additionalProperties":false}]}},"streetAddressForm":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"required":{"default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"label":{"$ref":"#/components/schemas/TranslationConfigOutput"},"type":{"type":"string","const":"TEXT"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"parent":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}},"required":["id","label","type"],"additionalProperties":false}},"allowedLocations":{"description":"Limits which location options are selectable depending on user jurisdiction and location.","type":"object","properties":{"$jurisdiction":{"anyOf":[{"type":"string","enum":["administrativeArea","location","all"],"description":"Filters based on user jurisdiction relative to their office location in hierarchy."},{"type":"object","properties":{"$scope":{"type":"string","enum":["organisation.read-locations","user.read","user.create","user.edit","user.search","record.search","record.create","record.read","record.declare","record.notify","record.edit","record.reject","record.archive","record.unarchive","record.review-duplicates","record.register","record.print-certified-copies","record.request-correction","record.correct","record.unassign-others","record.custom-action","record.action.accept","record.action.reject","bypassratelimit","record.reindex","user.data-seeding","integration.create","integration.audit.read","record.import","config.update-all","location.edit","attachment.upload","profile.electronic-signature","user.read-only-my-audit","performance.read","performance.read-dashboards","performance.vital-statistics-export","workqueue","dashboard.view"]},"$option":{"type":"string","enum":["event","placeOfEvent","createdBy","createdIn","notifiedIn","notifiedBy","declaredIn","declaredBy","status","registeredIn","registeredBy","flags","accessLevel","role","ids"]}},"required":["$scope","$option"],"additionalProperties":false}]}},"required":["$jurisdiction"],"additionalProperties":false},"activeOnly":{"description":"Offer only admin areas that are active at the resolved anchor date (today, or the date of event when anchorToDateOfEvent is set); inactive or not-yet-effective versions are excluded. Propagated to the embedded admin-area selectors.","type":"boolean"},"anchorToDateOfEvent":{"description":"Resolve selectable/displayed versions against the event's date of event (falling back to the record's creation date when empty) instead of today. Does not by itself exclude inactive versions; combine with activeOnly for that. Propagated to the embedded admin-area selectors.","type":"boolean"}},"additionalProperties":false},"defaultValue":{"anyOf":[{"type":"object","properties":{"country":{"type":"string"},"streetLevelDetails":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"addressType":{"type":"string","const":"DOMESTIC"},"administrativeArea":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false}]}},"required":["country","addressType"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]}},"required":["id","label","type"],"additionalProperties":false,"description":"Address input field – a combination of location and text fields"},"ActionConditional":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"SHOW"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'SHOW' conditional is defined, the component is shown to the user only if the condition is met"},{"type":"object","properties":{"type":{"type":"string","const":"ENABLE"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'ENABLE' conditional is defined, the component is enabled only if the condition is met"}],"description":"Conditional gating whether an action is shown (SHOW) or enabled (ENABLE). When omitted from an action, the action is shown and enabled for everyone.","type":"object"},"TextField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"TEXT"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"default":{"type":"text"},"type":"object","properties":{"maxLength":{"description":"Maximum length of the text","type":"number"},"type":{"type":"string","enum":["text","password"]},"prefix":{"$ref":"#/components/schemas/TranslationConfigOutput"},"postfix":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A text input field"},"NumberField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"NUMBER"},"defaultValue":{"anyOf":[{"type":"number"},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"min":{"description":"Minimum value","type":"number"},"max":{"description":"Maximum value","type":"number"},"integer":{"description":"When true, only whole numbers are allowed","type":"boolean"},"prefix":{"$ref":"#/components/schemas/TranslationConfigOutput"},"postfix":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A number input field"},"NumberWithUnitField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"NUMBER_WITH_UNIT"},"defaultValue":{"anyOf":[{"type":"object","properties":{"numericValue":{"type":"number"},"unit":{"type":"string"}},"required":["numericValue","unit"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"The value of the option"},"label":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/TranslationConfigOutput"}],"description":"The label of the option"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}}},"required":["value","label"],"additionalProperties":false},"description":"A list of options for the unit select"},"configuration":{"type":"object","properties":{"min":{"description":"Minimum value of the number field","type":"number"},"max":{"description":"Maximum value of the number field","type":"number"},"numberFieldPlaceholder":{"description":"Placeholder for the number field","$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type","options"],"additionalProperties":false,"description":"A number with unit input field"},"TextAreaField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"TEXTAREA"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"default":{"rows":4},"type":"object","properties":{"maxLength":{"description":"Maximum length of the text","type":"number"},"rows":{"description":"Number of visible text lines","type":"number"},"cols":{"description":"Number of visible columns","type":"number"},"prefix":{"$ref":"#/components/schemas/TranslationConfigOutput"},"postfix":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A multiline text input"},"AgeField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"AGE"},"defaultValue":{"anyOf":[{"type":"number"},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"asOfDate":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},"prefix":{"$ref":"#/components/schemas/TranslationConfigOutput"},"postfix":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["asOfDate"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"An age input field which uses the current date as the asOfDate"},"DateField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"DATE"},"defaultValue":{"description":"Default date value(yyyy-MM-dd)","anyOf":[{"anyOf":[{"type":"object","properties":{"$$now":{"type":"boolean","const":true}},"required":["$$now"],"additionalProperties":false},{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date in the format YYYY-MM-DD"}]},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"notice":{"description":"Text to display above the date input","$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A date input (yyyy-MM-dd)"},"TimeField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"TIME"},"defaultValue":{"description":"Default time value (HH-mm)","anyOf":[{"anyOf":[{"type":"object","properties":{"$$now":{"type":"boolean","const":true}},"required":["$$now"],"additionalProperties":false},{"type":"string","pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$"}]},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"use12HourFormat":{"description":"Whether to use 12-hour format","type":"boolean"},"notice":{"description":"Text to display above the time input","$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A single time input (HH-mm)"},"DateRangeField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"DATE_RANGE"},"defaultValue":{"anyOf":[{"anyOf":[{"type":"object","properties":{"start":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date in the format YYYY-MM-DD"},"end":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date in the format YYYY-MM-DD"}},"required":["start","end"],"additionalProperties":false},{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date in the format YYYY-MM-DD"}],"description":"Date range with start and end dates in the format YYYY-MM-DD. Inclusive start, exclusive end."},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"notice":{"description":"Text to display above the date input","$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A date range input ({ start: yyyy-MM-dd, end: yyyy-MM-dd })"},"SelectDateRangeField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"SELECT_DATE_RANGE"},"defaultValue":{"anyOf":[{"type":"string","enum":["last7Days","last30Days","last90Days","last365Days"]},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","enum":["last7Days","last30Days","last90Days","last365Days"],"description":"The value of the option"},"label":{"description":"The label of the option","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["value","label"],"additionalProperties":false},"description":"A list of options"}},"required":["id","label","type","options"],"additionalProperties":false,"description":"A date range selection field"},"ImageViewField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"IMAGE_VIEW"},"defaultValue":{"type":"string","minLength":1},"configuration":{"type":"object","properties":{"alt":{"description":"Alternative text for the image","type":"string"},"width":{"description":"CSS width value for the image","type":"string"},"height":{"description":"CSS height value for the image","type":"string"},"textAlign":{"description":"Text alignment for positioning the image in its container","type":"string","enum":["left","center","right","start","end"]},"objectFit":{"description":"How the image should be resized to fit the container","type":"string","enum":["contain","cover","fill","none","scale-down"]}},"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A read-only image component for form pages"},"Paragraph":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"PARAGRAPH"},"configuration":{"default":{},"type":"object","properties":{"styles":{"type":"object","properties":{"hint":{"description":"When true, paragraph is styled as a hint with grey color","type":"boolean"},"textAlign":{"description":"Text alignment for the paragraph","type":"string","enum":["left","center","right","start","end"]}},"additionalProperties":false}},"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A read-only HTML <p> paragraph"},"Heading":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"HEADING"},"configuration":{"default":{},"type":"object","properties":{"styles":{"type":"object","properties":{"fontVariant":{"description":"Font variant to use for the paragraph text","type":"string","enum":["reg12","reg14","reg16","reg18","h4","h3"]},"textAlign":{"description":"Text alignment for the paragraph","type":"string","enum":["left","center","right","start","end"]}},"additionalProperties":false}},"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A read-only heading component for form pages"},"RadioGroup":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"RADIO_GROUP"},"defaultValue":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"The value of the option"},"label":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/TranslationConfigOutput"}],"description":"The label of the option"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}}},"required":["value","label"],"additionalProperties":false},"description":"A list of options"},"configuration":{"type":"object","properties":{"styles":{"type":"object","properties":{"size":{"type":"string","enum":["NORMAL","LARGE"]}},"additionalProperties":false}},"additionalProperties":false}},"required":["id","label","type","options"],"additionalProperties":false,"description":"A grouped radio button field"},"BulletList":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"BULLET_LIST"},"items":{"type":"array","items":{"$ref":"#/components/schemas/TranslationConfigOutput"},"description":"A list of items"},"configuration":{"default":{},"type":"object","properties":{"styles":{"type":"object","properties":{"fontVariant":{"type":"string","enum":["reg12","reg14","reg16","reg18","h4","h3","h2","h1"]}},"additionalProperties":false}},"additionalProperties":false}},"required":["id","label","type","items","configuration"],"additionalProperties":false,"description":"A list of bullet points"},"PageHeader":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"PAGE_HEADER"}},"required":["id","label","type"],"additionalProperties":false,"description":"A read-only header component for form pages"},"Select":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"SELECT"},"defaultValue":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"The value of the option"},"label":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/TranslationConfigOutput"}],"description":"The label of the option"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}}},"required":["value","label"],"additionalProperties":false},"description":"A list of options"},"noOptionsMessage":{"description":"\n    A translation configuration object used to display a message when no options are available.\n    It must follow the shape: { id: string; defaultMessage: string; description?: string }.\n    The message is rendered via intl.formatMessage(noOptionsMessage, { input }),\n    where 'input' represents the text entered in the Select field.\n    You can reference this variable in your message, for example:\n    { ..., defaultMessage: \"'{input}' is not listed among the health facilities.\" }\n  ","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["id","label","type","options"],"additionalProperties":false,"description":"A select input field"},"NameField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"NAME"},"defaultValue":{"anyOf":[{"type":"object","properties":{"firstname":{"anyOf":[{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false},{"type":"string","minLength":1}]},"middlename":{"anyOf":[{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false},{"type":"string","minLength":1}]},"surname":{"anyOf":[{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false},{"type":"string","minLength":1}]}},"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"default":{"name":{"firstname":{"required":true},"surname":{"required":true}}},"type":"object","properties":{"name":{"default":{"firstname":{"required":true},"surname":{"required":true}},"type":"object","properties":{"firstname":{"type":"object","properties":{"required":{"default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"label":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false},"middlename":{"type":"object","properties":{"required":{"default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"label":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false},"surname":{"type":"object","properties":{"required":{"default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"label":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"additionalProperties":false},"order":{"type":"array","items":{"type":"string","enum":["firstname","middlename","surname"]}},"maxLength":{"description":"Maximum length of the text","type":"number"},"prefix":{"$ref":"#/components/schemas/TranslationConfigOutput"},"postfix":{"$ref":"#/components/schemas/TranslationConfigOutput"},"showParentFieldError":{"description":"If true, shows the parent field error and hides the subfield error","default":false,"type":"boolean"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A field for entering a persons name"},"PhoneField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"type":{"type":"string","const":"PHONE"}},"required":["id","label","type"],"additionalProperties":false,"description":"A field for entering a phone number"},"IdField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"type":{"type":"string","const":"ID"}},"required":["id","label","type"],"additionalProperties":false,"description":"A field for entering an ID"},"Checkbox":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"CHECKBOX"},"defaultValue":{"default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]}},"required":["id","label","type","defaultValue"],"additionalProperties":false,"description":"A boolean checkbox field"},"File":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"FILE"},"defaultValue":{"anyOf":[{"type":"object","properties":{"path":{"type":"string","description":"A relative path within the S3 bucket, never starting with /. e.g. document-id.jpg or directory/document-id.jpg. The document service constructs the full /bucket/path internally."},"originalFilename":{"type":"string"},"type":{"type":"string"}},"required":["path","originalFilename","type"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"default":{"maxFileSize":5242880},"type":"object","properties":{"maxFileSize":{"default":5242880,"type":"number","description":"Maximum file size in bytes"},"acceptedFileTypes":{"description":"List of allowed file formats for the signature","type":"array","items":{"type":"string","enum":["image/png","image/jpg","image/jpeg","image/svg+xml","application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.oasis.opendocument.text"]}},"maxImageSize":{"type":"object","properties":{"targetSize":{"type":"object","properties":{"width":{"type":"number"},"height":{"type":"number"}},"required":["width","height"],"additionalProperties":false}},"required":["targetSize"],"additionalProperties":false},"style":{"type":"object","properties":{"width":{"description":"Whether the file upload button should take the full width of the container or not","type":"string","enum":["full","auto"]}},"additionalProperties":false},"fileName":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["maxFileSize"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A file upload field"},"Country":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"COUNTRY"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"optionOverrides":{"description":"Conditionals for specific countries. Countries not listed are always shown and enabled.","type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"The value of the option"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}}},"required":["value"],"additionalProperties":false}}},"required":["id","label","type"],"additionalProperties":false,"description":"A field for selecting a country"},"AdministrativeAreaField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"ADMINISTRATIVE_AREA"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"partOf":{"description":"Parent location","type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false},"type":{"type":"string","enum":["ADMIN_STRUCTURE","HEALTH_FACILITY","CRVS_OFFICE"]},"allowedLocations":{"description":"Limits which location options are selectable depending on user jurisdiction and location.","type":"object","properties":{"$jurisdiction":{"anyOf":[{"type":"string","enum":["administrativeArea","location","all"],"description":"Filters based on user jurisdiction relative to their office location in hierarchy."},{"type":"object","properties":{"$scope":{"type":"string","enum":["organisation.read-locations","user.read","user.create","user.edit","user.search","record.search","record.create","record.read","record.declare","record.notify","record.edit","record.reject","record.archive","record.unarchive","record.review-duplicates","record.register","record.print-certified-copies","record.request-correction","record.correct","record.unassign-others","record.custom-action","record.action.accept","record.action.reject","bypassratelimit","record.reindex","user.data-seeding","integration.create","integration.audit.read","record.import","config.update-all","location.edit","attachment.upload","profile.electronic-signature","user.read-only-my-audit","performance.read","performance.read-dashboards","performance.vital-statistics-export","workqueue","dashboard.view"]},"$option":{"type":"string","enum":["event","placeOfEvent","createdBy","createdIn","notifiedIn","notifiedBy","declaredIn","declaredBy","status","registeredIn","registeredBy","flags","accessLevel","role","ids"]}},"required":["$scope","$option"],"additionalProperties":false}]}},"required":["$jurisdiction"],"additionalProperties":false},"activeOnly":{"description":"Offer only locations that are active at the resolved anchor date (today, or the date of event when anchorToDateOfEvent is set); inactive or not-yet-effective versions are excluded.","type":"boolean"},"anchorToDateOfEvent":{"description":"Resolve selectable/displayed versions against the event's date of event (falling back to the record's creation date when empty) instead of today. Does not by itself exclude inactive versions; combine with activeOnly for that.","type":"boolean"}},"required":["type"],"additionalProperties":false,"description":"Administrative area options"}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"Administrative area input field"},"Divider":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"DIVIDER"}},"required":["id","label","type"],"additionalProperties":false,"description":"A horizontal line divider"},"LocationInput":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"LOCATION"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"locationTypes":{"description":"Types of the locations that are available for selection.","type":"array","items":{"type":"string"}},"allowedLocations":{"description":"Limits which location options are selectable depending on user jurisdiction and location.","type":"object","properties":{"$jurisdiction":{"anyOf":[{"type":"string","enum":["administrativeArea","location","all"],"description":"Filters based on user jurisdiction relative to their office location in hierarchy."},{"type":"object","properties":{"$scope":{"type":"string","enum":["organisation.read-locations","user.read","user.create","user.edit","user.search","record.search","record.create","record.read","record.declare","record.notify","record.edit","record.reject","record.archive","record.unarchive","record.review-duplicates","record.register","record.print-certified-copies","record.request-correction","record.correct","record.unassign-others","record.custom-action","record.action.accept","record.action.reject","bypassratelimit","record.reindex","user.data-seeding","integration.create","integration.audit.read","record.import","config.update-all","location.edit","attachment.upload","profile.electronic-signature","user.read-only-my-audit","performance.read","performance.read-dashboards","performance.vital-statistics-export","workqueue","dashboard.view"]},"$option":{"type":"string","enum":["event","placeOfEvent","createdBy","createdIn","notifiedIn","notifiedBy","declaredIn","declaredBy","status","registeredIn","registeredBy","flags","accessLevel","role","ids"]}},"required":["$scope","$option"],"additionalProperties":false}]}},"required":["$jurisdiction"],"additionalProperties":false},"activeOnly":{"description":"Offer only locations that are active at the resolved anchor date (today, or the date of event when anchorToDateOfEvent is set); inactive or not-yet-effective versions are excluded.","type":"boolean"},"anchorToDateOfEvent":{"description":"Resolve selectable/displayed versions against the event's date of event (falling back to the record's creation date when empty) instead of today. Does not by itself exclude inactive versions; combine with activeOnly for that.","type":"boolean"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A field for selecting a location"},"SignatureField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"SIGNATURE"},"signaturePromptLabel":{"description":"Title of the signature modal","$ref":"#/components/schemas/TranslationConfigOutput"},"defaultValue":{"anyOf":[{"type":"object","properties":{"path":{"type":"string","description":"A relative path within the S3 bucket, never starting with /. e.g. document-id.jpg or directory/document-id.jpg. The document service constructs the full /bucket/path internally."},"originalFilename":{"type":"string"},"type":{"type":"string"}},"required":["path","originalFilename","type"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"default":{"maxFileSize":5242880},"type":"object","properties":{"maxFileSize":{"default":5242880,"type":"number","description":"Maximum file size in bytes"},"acceptedFileTypes":{"description":"List of allowed file formats for the signature","type":"array","items":{"type":"string","enum":["image/png","image/jpg","image/jpeg","image/svg+xml","application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.oasis.opendocument.text"]}}},"required":["maxFileSize"],"additionalProperties":false}},"required":["id","label","type","signaturePromptLabel","configuration"],"additionalProperties":false,"description":"A signature input field"},"EmailField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"EMAIL"},"configuration":{"default":{"maxLength":255},"type":"object","properties":{"maxLength":{"description":"Maximum length of the text","type":"number"}},"additionalProperties":false},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]}},"required":["id","label","type"],"additionalProperties":false,"description":"An email input field"},"FileUploadWithOptions":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"FILE_WITH_OPTIONS"},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"The value of the option"},"label":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/TranslationConfigOutput"}],"description":"The label of the option"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}}},"required":["value","label"],"additionalProperties":false},"description":"A list of options"},"defaultValue":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"A relative path within the S3 bucket, never starting with /. e.g. document-id.jpg or directory/document-id.jpg. The document service constructs the full /bucket/path internally."},"originalFilename":{"type":"string"},"type":{"type":"string"},"option":{"type":"string"}},"required":["path","originalFilename","type","option"],"additionalProperties":false}},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"default":{"maxFileSize":5242880},"type":"object","properties":{"maxFileSize":{"default":5242880,"type":"number","description":"Maximum file size in bytes"},"maxImageSize":{"type":"object","properties":{"targetSize":{"type":"object","properties":{"width":{"type":"number"},"height":{"type":"number"}},"required":["width","height"],"additionalProperties":false}},"required":["targetSize"],"additionalProperties":false},"acceptedFileTypes":{"description":"List of allowed file formats for the signature","type":"array","items":{"type":"string","enum":["image/png","image/jpg","image/jpeg","image/svg+xml","application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.oasis.opendocument.text"]}}},"required":["maxFileSize"],"additionalProperties":false}},"required":["id","label","type","options","configuration"],"additionalProperties":false,"description":"A field for uploading files with file type options"},"DataField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"DATA"},"configuration":{"type":"object","properties":{"subtitle":{"$ref":"#/components/schemas/TranslationConfigOutput"},"data":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","description":"ID for the data entry."},"label":{"$ref":"#/components/schemas/TranslationConfigOutput"},"value":{"anyOf":[{"anyOf":[{"$ref":"#/components/schemas/TranslationConfigOutput"},{"type":"string"}]},{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}]}},"required":["id","label","value"],"additionalProperties":false,"description":"Static data entry"},{"type":"object","properties":{"fieldId":{"type":"string"}},"required":["fieldId"],"additionalProperties":false}],"description":"Data entry can be either a static data entry, or a reference to another field in the current form or the declaration."}}},"required":["data"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A field for displaying a table of read-only data"},"ButtonField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"BUTTON"},"defaultValue":{"anyOf":[{"type":"number"},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"icon":{"description":"Icon for the button. You can find icons from OpenCRVS UI-Kit.","type":"string"},"loading":{"description":"Whether the button is in a loading state and shows a spinner","type":"boolean"},"buttonSize":{"description":"Size of the button.","type":"string","enum":["small","medium","large"]},"buttonType":{"description":"Type of the button.","type":"string","enum":["primary","secondary","tertiary","positive","negative","secondaryNegative","icon","iconPrimary"]},"textColor":{"description":"Color of the text.","type":"string","enum":["primary","copy"]},"textVariant":{"description":"Variant of the text.","type":"string","enum":["bold14","reg14"]},"text":{"description":"Text to display on the button","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["text"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A generic button that can be used to trigger an action"},"AlphaPrintButton":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"ALPHA_PRINT_BUTTON"},"configuration":{"type":"object","properties":{"template":{"type":"string","description":"Template ID from countryconfig templates to use for printing"},"buttonLabel":{"description":"Label for the print button","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["template"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"An experimental print button field for printing certificates during the declaration process"},"HttpField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"HTTP"},"defaultValue":{"anyOf":[{"type":"object","properties":{"loading":{"type":"boolean"},"error":{"anyOf":[{"type":"object","properties":{"statusCode":{"type":"number"},"message":{"type":"string"}},"required":["statusCode","message"],"additionalProperties":false},{"type":"null"}]},"data":{}},"required":["loading","data"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"trigger":{"description":"Reference to the field that triggers the HTTP request when its value changes. If not provided, the HTTP request is triggered once on component mount.","type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false},"url":{"type":"string","description":"URL to send the HTTP request to"},"method":{"type":"string","enum":["GET","POST","PUT","DELETE"]},"headers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"body":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"errorValue":{"description":"Value to set if the request fails"},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}]}},"timeout":{"default":15000,"description":"Request timeout in milliseconds","type":"number"}},"required":["url","method","timeout"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"Makes a background HTTP request to an external service and stores the response so other fields can use it. Has no visible UI — pair with LOADER to show request status."},"AutocompleteField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"AUTOCOMPLETE"},"configuration":{"type":"object","properties":{"url":{"type":"string","description":"URL to fetch autocomplete suggestions from. This should be a country config server endpoint."},"method":{"default":"GET","type":"string","enum":["GET","POST"]},"defaultOptions":{"description":"Manual entry is supported through configuration, allowing users to provide values not currently represented in the dataset.","type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"type":"string"}},"required":["label","value"],"additionalProperties":false}}},"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"Generic autocomplete component designed for use with large dictionary-based datasets. The component supports dynamic retrieval of options from configurable data sources and is intended for datasets that may contain tens or hundreds of thousands of records."},"LinkButtonField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"LINK_BUTTON"},"configuration":{"type":"object","properties":{"url":{"type":"string","description":"URL to open"},"text":{"description":"Text to display on the button","$ref":"#/components/schemas/TranslationConfigOutput"},"icon":{"description":"Icon for the button. You can find icons from OpenCRVS UI-Kit.","type":"string"}},"required":["url","text"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A button that opens a URL link"},"VerificationStatus":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"VERIFICATION_STATUS"},"defaultValue":{"anyOf":[{"type":"string","enum":["verified","authenticated","failed","pending"]},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"status":{"description":"Text to display on the status pill.","$ref":"#/components/schemas/TranslationConfigOutput"},"description":{"description":"Explaining text on the banner in form.","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["status","description"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"Displays a verification state (e.g. ID verified / pending). Often paired with ID_READER — it can read its value off an ID_READER rather than holding its own."},"QrReaderField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"QR_READER"},"defaultValue":{"anyOf":[{"type":"object","properties":{"data":{}},"required":["data"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"validator":{"$ref":"#/components/schemas/QrReaderFieldValidator"}},"required":["validator"],"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"QR code reader field, including optional JSON Schema validator."},"QrReaderFieldValidator":{"description":"JSON Schema to validate the scanned QR code data against before populating the form fields."},"IdReaderField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"ID_READER"},"defaultValue":{"anyOf":[{"type":"object","properties":{"data":{}},"required":["data"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"methods":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/QrReaderField"},{"$ref":"#/components/schemas/LinkButtonField"}],"description":"Methods for reading an ID"}}},"required":["id","label","type","methods"],"additionalProperties":false,"description":"A wrapper around nested form fields, specifically QR_READER and LINK_BUTTON. It can hold the QR_READERs value."},"QueryParamReaderField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"QUERY_PARAM_READER"},"configuration":{"type":"object","properties":{"pickParams":{"type":"array","items":{"type":"string"},"description":"List of query parameters to read from the URL"}},"required":["pickParams"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A field that maps URL query params into form values and clears them afterward"},"LoaderField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"description":"Loader field does not show a label by default","default":true,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"LOADER"},"variant":{"default":"default","type":"string","enum":["default","highlighted"]},"configuration":{"type":"object","properties":{"text":{"description":"Display text above the loading spinner","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["text"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A non-interactive field that indicates an in progress operation in form"},"SearchField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"SEARCH"},"defaultValue":{"anyOf":[{"type":"object","properties":{"loading":{"type":"boolean"},"error":{"anyOf":[{"type":"object","properties":{"statusCode":{"type":"number"},"message":{"type":"string"}},"required":["statusCode","message"],"additionalProperties":false},{"type":"null"}]},"data":{}},"required":["loading","data"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"query":{"default":{"type":"and","clauses":[{"eventType":"tennis-club-membership","status":{"type":"anyOf","terms":["CREATED","NOTIFIED","DECLARED","REGISTERED","ARCHIVED"]},"updatedAt":{"type":"range","gte":"2025-05-22","lte":"2025-05-29"},"data":{}}]},"$ref":"#/components/schemas/QueryTypeOutput"},"limit":{"default":100,"type":"number"},"offset":{"default":0,"type":"number"},"validation":{"$ref":"#/components/schemas/ValidationConfig"},"indicators":{"type":"object","properties":{"loading":{"description":"Text to display while the search is in progress","$ref":"#/components/schemas/TranslationConfigOutput"},"offline":{"description":"Text to display when the application is offline","$ref":"#/components/schemas/TranslationConfigOutput"},"noResultsError":{"description":"Text to display when no results are found during the search","$ref":"#/components/schemas/TranslationConfigOutput"},"httpError":{"description":"Text to display when there is an HTTP error during the search","$ref":"#/components/schemas/TranslationConfigOutput"},"confirmButton":{"$ref":"#/components/schemas/TranslationConfigOutput"},"clearButton":{"$ref":"#/components/schemas/TranslationConfigOutput"},"clearModal":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/TranslationConfigOutput"},"description":{"$ref":"#/components/schemas/TranslationConfigOutput"},"cancel":{"$ref":"#/components/schemas/TranslationConfigOutput"},"confirm":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false},"ok":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["query","limit","offset","validation"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A search input field"},"QueryTypeOutput":{"type":"object","properties":{"type":{"anyOf":[{"type":"string","const":"and"},{"type":"string","const":"or"}],"default":"and"},"clauses":{"minItems":1,"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/QueryExpressionOutput"},{"$ref":"#/components/schemas/QueryTypeOutput"}]},"default":[{"eventType":"tennis-club-membership","status":{"type":"anyOf","terms":["CREATED","NOTIFIED","DECLARED","REGISTERED","ARCHIVED"]},"updatedAt":{"type":"range","gte":"2025-05-22","lte":"2025-05-29"},"data":{}}]}},"required":["type","clauses"],"additionalProperties":false},"QueryExpressionOutput":{"type":"object","properties":{"id":{"type":"string"},"eventType":{"type":"string"},"status":{"anyOf":[{"$ref":"#/components/schemas/AnyOfStatusOutput"},{"$ref":"#/components/schemas/ExactStatusOutput"}]},"createdAt":{"$ref":"#/components/schemas/DateConditionOutput"},"updatedAt":{"$ref":"#/components/schemas/DateConditionOutput"},"legalStatuses.DECLARED.createdAtLocation":{"anyOf":[{"$ref":"#/components/schemas/WithinOutput"},{"type":"null"}]},"legalStatuses.DECLARED.createdByRole":{"$ref":"#/components/schemas/AnyOfOutput"},"legalStatuses.REGISTERED.acceptedAt":{"$ref":"#/components/schemas/DateConditionOutput"},"legalStatuses.REGISTERED.createdAtLocation":{"anyOf":[{"$ref":"#/components/schemas/WithinOutput"},{"type":"null"}]},"legalStatuses.REGISTERED.createdByRole":{"$ref":"#/components/schemas/AnyOfOutput"},"legalStatuses.REGISTERED.registrationNumber":{"$ref":"#/components/schemas/ExactOutput"},"createdAtLocation":{"anyOf":[{"$ref":"#/components/schemas/WithinOutput"},{"$ref":"#/components/schemas/ExactOutput"}]},"updatedAtLocation":{"anyOf":[{"$ref":"#/components/schemas/WithinOutput"},{"$ref":"#/components/schemas/ExactOutput"}]},"assignedTo":{"$ref":"#/components/schemas/ExactOutput"},"createdByUserType":{"$ref":"#/components/schemas/ExactUserTypeOutput"},"updatedByUserRole":{"$ref":"#/components/schemas/ExactOutput"},"createdBy":{"$ref":"#/components/schemas/ExactOutput"},"updatedBy":{"$ref":"#/components/schemas/ExactOutput"},"trackingId":{"$ref":"#/components/schemas/ExactOutput"},"flags":{"$ref":"#/components/schemas/ContainsFlagsOutput"},"data":{"$ref":"#/components/schemas/QueryInputOutput"}},"additionalProperties":false},"AnyOfStatusOutput":{"type":"object","properties":{"type":{"type":"string","const":"anyOf"},"terms":{"type":"array","items":{"type":"string","enum":["CREATED","NOTIFIED","DECLARED","REGISTERED","ARCHIVED"]}}},"required":["type","terms"],"additionalProperties":false},"ExactStatusOutput":{"type":"object","properties":{"type":{"type":"string","const":"exact"},"term":{"type":"string","enum":["CREATED","NOTIFIED","DECLARED","REGISTERED","ARCHIVED"]}},"required":["type","term"],"additionalProperties":false},"DateConditionOutput":{"anyOf":[{"$ref":"#/components/schemas/ExactDateOutput"},{"$ref":"#/components/schemas/RangeDateOutput"},{"$ref":"#/components/schemas/TimePeriodOutput"}]},"ExactDateOutput":{"type":"object","properties":{"type":{"type":"string","const":"exact"},"term":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}]}},"required":["type","term"],"additionalProperties":false},"RangeDateOutput":{"type":"object","properties":{"type":{"type":"string","const":"range"},"gte":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}]},"lte":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}]}},"required":["type","gte","lte"],"additionalProperties":false},"TimePeriodOutput":{"type":"object","properties":{"type":{"type":"string","const":"timePeriod"},"term":{"type":"string","enum":["last7Days","last30Days","last90Days","last365Days"]}},"required":["type","term"],"additionalProperties":false},"WithinOutput":{"type":"object","properties":{"type":{"type":"string","const":"within"},"location":{"type":"string"}},"required":["type","location"],"additionalProperties":false},"AnyOfOutput":{"type":"object","properties":{"type":{"type":"string","const":"anyOf"},"terms":{"type":"array","items":{"type":"string"}}},"required":["type","terms"],"additionalProperties":false},"ExactOutput":{"type":"object","properties":{"type":{"type":"string","const":"exact"},"term":{"type":"string"}},"required":["type","term"],"additionalProperties":false},"ExactUserTypeOutput":{"type":"object","properties":{"type":{"type":"string","const":"exact"},"term":{"type":"string","enum":["user","system"]}},"required":["type","term"],"additionalProperties":false},"ContainsFlagsOutput":{"type":"object","properties":{"anyOf":{"type":"array","items":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"string","enum":["incomplete","rejected","correction-requested","potential-duplicate","edit-in-progress"]}]},{"type":"string","description":"Custom flag identifier defined by the country config."}]}},"noneOf":{"type":"array","items":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"string","enum":["incomplete","rejected","correction-requested","potential-duplicate","edit-in-progress"]}]},{"type":"string","description":"Custom flag identifier defined by the country config."}]}},"allOf":{"type":"array","items":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"string","enum":["incomplete","rejected","correction-requested","potential-duplicate","edit-in-progress"]}]},{"type":"string","description":"Custom flag identifier defined by the country config."}]}}},"additionalProperties":false},"QueryInputOutput":{"anyOf":[{"oneOf":[{"$ref":"#/components/schemas/FuzzyOutput"},{"$ref":"#/components/schemas/ExactOutput"},{"$ref":"#/components/schemas/RangeOutput"},{"$ref":"#/components/schemas/WithinOutput"},{"$ref":"#/components/schemas/AnyOfOutput"}],"type":"object","discriminator":{"propertyName":"type","mapping":{"fuzzy":"#/components/schemas/FuzzyOutput","exact":"#/components/schemas/ExactOutput","range":"#/components/schemas/RangeOutput","within":"#/components/schemas/WithinOutput","anyOf":"#/components/schemas/AnyOfOutput"}}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/QueryInputOutput"}}]},"FuzzyOutput":{"type":"object","properties":{"type":{"type":"string","const":"fuzzy"},"term":{"type":"string"}},"required":["type","term"],"additionalProperties":false},"RangeOutput":{"type":"object","properties":{"type":{"type":"string","const":"range"},"gte":{"type":"string"},"lte":{"type":"string"}},"required":["type","gte","lte"],"additionalProperties":false},"CustomField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"CUSTOM"},"defaultValue":{},"src":{"type":"string","description":"Module source path for the custom field component"},"configuration":{}},"required":["id","label","type","src"],"additionalProperties":false,"description":"An expiremental custom field that is defined by a module source path"},"HiddenField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"default":false,"type":"boolean"},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"ALPHA_HIDDEN"},"defaultValue":{"type":"string"}},"required":["id","label","type"],"additionalProperties":false,"description":"A non-interactive, hidden field that only hold a value in the form"},"UserRoleField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"USER_ROLE"},"defaultValue":{"type":"string"}},"required":["id","label","type"],"additionalProperties":false,"description":"A select dropdown that is automatically populated with available user roles"}}}}
```

## The AssignActionConfig object

```json
{"openapi":"3.1.0","info":{"title":"OpenCRVS API","version":"2.0.0"},"components":{"schemas":{"AssignActionConfig":{"type":"object","properties":{"label":{"description":"Human readable description of the action","$ref":"#/components/schemas/TranslationConfigOutput"},"flags":{"description":"ASSIGN is a meta action excluded from flag resolution, so flags configured here would never apply.","not":{}},"supportingCopy":{"description":"Text displayed on the confirmation dialog","$ref":"#/components/schemas/TranslationConfigOutput"},"icon":{"type":"string","description":"Icon representing the action"},"conditionals":{"description":"Conditionals which can disable or hide actions.","type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}},"type":{"type":"string","const":"ASSIGN"}},"required":["label","type"],"additionalProperties":false,"description":"Configuration for assigning a record to the current user."},"TranslationConfigOutput":{"type":"object","properties":{"id":{"type":"string","description":"The identifier of the translation referred in translation CSV files"},"defaultMessage":{"type":"string","description":"Default translation message"},"description":{"type":"string","description":"Describe the translation for a translator to be able to identify it."}},"required":["id","defaultMessage","description"],"additionalProperties":false,"description":"Translation configuration"},"ActionConditional":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"SHOW"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'SHOW' conditional is defined, the component is shown to the user only if the condition is met"},{"type":"object","properties":{"type":{"type":"string","const":"ENABLE"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'ENABLE' conditional is defined, the component is enabled only if the condition is met"}],"description":"Conditional gating whether an action is shown (SHOW) or enabled (ENABLE). When omitted from an action, the action is shown and enabled for everyone.","type":"object"},"Conditional":{"description":"JSON schema conditional configuration"}}}}
```

## The UnassignActionConfig object

```json
{"openapi":"3.1.0","info":{"title":"OpenCRVS API","version":"2.0.0"},"components":{"schemas":{"UnassignActionConfig":{"type":"object","properties":{"label":{"description":"Human readable description of the action","$ref":"#/components/schemas/TranslationConfigOutput"},"flags":{"description":"UNASSIGN is a meta action excluded from flag resolution, so flags configured here would never apply.","not":{}},"supportingCopy":{"description":"Text displayed on the confirmation dialog","$ref":"#/components/schemas/TranslationConfigOutput"},"icon":{"type":"string","description":"Icon representing the action"},"conditionals":{"description":"Conditionals which can disable or hide actions.","type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}},"type":{"type":"string","const":"UNASSIGN"}},"required":["label","type"],"additionalProperties":false,"description":"Configuration for unassigning a record from its current assignee."},"TranslationConfigOutput":{"type":"object","properties":{"id":{"type":"string","description":"The identifier of the translation referred in translation CSV files"},"defaultMessage":{"type":"string","description":"Default translation message"},"description":{"type":"string","description":"Describe the translation for a translator to be able to identify it."}},"required":["id","defaultMessage","description"],"additionalProperties":false,"description":"Translation configuration"},"ActionConditional":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"SHOW"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'SHOW' conditional is defined, the component is shown to the user only if the condition is met"},{"type":"object","properties":{"type":{"type":"string","const":"ENABLE"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'ENABLE' conditional is defined, the component is enabled only if the condition is met"}],"description":"Conditional gating whether an action is shown (SHOW) or enabled (ENABLE). When omitted from an action, the action is shown and enabled for everyone.","type":"object"},"Conditional":{"description":"JSON schema conditional configuration"}}}}
```

## The DeleteActionConfig object

```json
{"openapi":"3.1.0","info":{"title":"OpenCRVS API","version":"2.0.0"},"components":{"schemas":{"DeleteActionConfig":{"type":"object","properties":{"label":{"description":"Human readable description of the action","$ref":"#/components/schemas/TranslationConfigOutput"},"flags":{"default":[],"description":"Flag actions which are executed when the action is performed.","type":"array","items":{"$ref":"#/components/schemas/ActionFlagConfig"}},"supportingCopy":{"description":"Text displayed on the confirmation dialog","$ref":"#/components/schemas/TranslationConfigOutput"},"icon":{"type":"string","description":"Icon representing the action"},"conditionals":{"description":"Conditionals which can disable or hide actions.","type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}},"type":{"type":"string","const":"DELETE"}},"required":["label","flags","type"],"additionalProperties":false,"description":"Configuration for deleting a draft record."},"TranslationConfigOutput":{"type":"object","properties":{"id":{"type":"string","description":"The identifier of the translation referred in translation CSV files"},"defaultMessage":{"type":"string","description":"Default translation message"},"description":{"type":"string","description":"Describe the translation for a translator to be able to identify it."}},"required":["id","defaultMessage","description"],"additionalProperties":false,"description":"Translation configuration"},"ActionFlagConfig":{"type":"object","properties":{"id":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"string","enum":["incomplete","rejected","correction-requested","potential-duplicate","edit-in-progress"]}]},{"type":"string","description":"Custom flag identifier defined by the country config."}]},"operation":{"type":"string","enum":["add","remove"],"description":"Operation to perform on the flag."},"conditional":{"description":"When conditional is met, the operation is performed on the flag. If not provided, the operation is performed unconditionally.","$ref":"#/components/schemas/Conditional"}},"required":["id","operation"],"additionalProperties":false,"description":"Add or remove operation applied to a flag when the parent action is accepted. Optionally gated by a conditional."},"Conditional":{"description":"JSON schema conditional configuration"},"ActionConditional":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"SHOW"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'SHOW' conditional is defined, the component is shown to the user only if the condition is met"},{"type":"object","properties":{"type":{"type":"string","const":"ENABLE"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'ENABLE' conditional is defined, the component is enabled only if the condition is met"}],"description":"Conditional gating whether an action is shown (SHOW) or enabled (ENABLE). When omitted from an action, the action is shown and enabled for everyone.","type":"object"}}}}
```

## The NotifyActionConfig object

```json
{"openapi":"3.1.0","info":{"title":"OpenCRVS API","version":"2.0.0"},"components":{"schemas":{"NotifyActionConfig":{"type":"object","properties":{"label":{"description":"Human readable description of the action","$ref":"#/components/schemas/TranslationConfigOutput"},"flags":{"default":[],"description":"Flag actions which are executed when the action is performed.","type":"array","items":{"$ref":"#/components/schemas/ActionFlagConfig"}},"supportingCopy":{"description":"Text displayed on the confirmation dialog","$ref":"#/components/schemas/TranslationConfigOutput"},"icon":{"type":"string","description":"Icon representing the action"},"conditionals":{"description":"Conditionals which can disable or hide actions.","type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}},"type":{"type":"string","const":"NOTIFY"},"form":{"description":"Fields rendered on the action confirmation dialog. Submitted values are stored in the action annotation and shown in the audit history.","type":"array","items":{"$ref":"#/components/schemas/FieldConfig"}}},"required":["label","flags","type"],"additionalProperties":false,"description":"Configuration for the notify action. When present, NOTIFY uses this config independently from DECLARE. When absent, NOTIFY falls back to the DeclareActionConfig."},"TranslationConfigOutput":{"type":"object","properties":{"id":{"type":"string","description":"The identifier of the translation referred in translation CSV files"},"defaultMessage":{"type":"string","description":"Default translation message"},"description":{"type":"string","description":"Describe the translation for a translator to be able to identify it."}},"required":["id","defaultMessage","description"],"additionalProperties":false,"description":"Translation configuration"},"ActionFlagConfig":{"type":"object","properties":{"id":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"string","enum":["incomplete","rejected","correction-requested","potential-duplicate","edit-in-progress"]}]},{"type":"string","description":"Custom flag identifier defined by the country config."}]},"operation":{"type":"string","enum":["add","remove"],"description":"Operation to perform on the flag."},"conditional":{"description":"When conditional is met, the operation is performed on the flag. If not provided, the operation is performed unconditionally.","$ref":"#/components/schemas/Conditional"}},"required":["id","operation"],"additionalProperties":false,"description":"Add or remove operation applied to a flag when the parent action is accepted. Optionally gated by a conditional."},"Conditional":{"description":"JSON schema conditional configuration"},"ActionConditional":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"SHOW"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'SHOW' conditional is defined, the component is shown to the user only if the condition is met"},{"type":"object","properties":{"type":{"type":"string","const":"ENABLE"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'ENABLE' conditional is defined, the component is enabled only if the condition is met"}],"description":"Conditional gating whether an action is shown (SHOW) or enabled (ENABLE). When omitted from an action, the action is shown and enabled for everyone.","type":"object"},"FieldConfig":{"oneOf":[{"$ref":"#/components/schemas/FieldGroup"},{"$ref":"#/components/schemas/Address"},{"$ref":"#/components/schemas/TextField"},{"$ref":"#/components/schemas/NumberField"},{"$ref":"#/components/schemas/NumberWithUnitField"},{"$ref":"#/components/schemas/TextAreaField"},{"$ref":"#/components/schemas/AgeField"},{"$ref":"#/components/schemas/DateField"},{"$ref":"#/components/schemas/TimeField"},{"$ref":"#/components/schemas/DateRangeField"},{"$ref":"#/components/schemas/SelectDateRangeField"},{"$ref":"#/components/schemas/ImageViewField"},{"$ref":"#/components/schemas/Paragraph"},{"$ref":"#/components/schemas/Heading"},{"$ref":"#/components/schemas/RadioGroup"},{"$ref":"#/components/schemas/BulletList"},{"$ref":"#/components/schemas/PageHeader"},{"$ref":"#/components/schemas/Select"},{"$ref":"#/components/schemas/NameField"},{"$ref":"#/components/schemas/PhoneField"},{"$ref":"#/components/schemas/IdField"},{"$ref":"#/components/schemas/Checkbox"},{"$ref":"#/components/schemas/File"},{"$ref":"#/components/schemas/Country"},{"$ref":"#/components/schemas/AdministrativeAreaField"},{"$ref":"#/components/schemas/Divider"},{"$ref":"#/components/schemas/LocationInput"},{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"FACILITY"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"allowedLocations":{"description":"Limits which location options are selectable depending on user jurisdiction and location.","type":"object","properties":{"$jurisdiction":{"anyOf":[{"type":"string","enum":["administrativeArea","location","all"],"description":"Filters based on user jurisdiction relative to their office location in hierarchy."},{"type":"object","properties":{"$scope":{"type":"string","enum":["organisation.read-locations","user.read","user.create","user.edit","user.search","record.search","record.create","record.read","record.declare","record.notify","record.edit","record.reject","record.archive","record.unarchive","record.review-duplicates","record.register","record.print-certified-copies","record.request-correction","record.correct","record.unassign-others","record.custom-action","record.action.accept","record.action.reject","bypassratelimit","record.reindex","user.data-seeding","integration.create","integration.audit.read","record.import","config.update-all","location.edit","attachment.upload","profile.electronic-signature","user.read-only-my-audit","performance.read","performance.read-dashboards","performance.vital-statistics-export","workqueue","dashboard.view"]},"$option":{"type":"string","enum":["event","placeOfEvent","createdBy","createdIn","notifiedIn","notifiedBy","declaredIn","declaredBy","status","registeredIn","registeredBy","flags","accessLevel","role","ids"]}},"required":["$scope","$option"],"additionalProperties":false}]}},"required":["$jurisdiction"],"additionalProperties":false},"activeOnly":{"type":"boolean"},"anchorToDateOfEvent":{"type":"boolean"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"Input field for a facility"},{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"OFFICE"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"allowedLocations":{"description":"Limits which location options are selectable depending on user jurisdiction and location.","type":"object","properties":{"$jurisdiction":{"anyOf":[{"type":"string","enum":["administrativeArea","location","all"],"description":"Filters based on user jurisdiction relative to their office location in hierarchy."},{"type":"object","properties":{"$scope":{"type":"string","enum":["organisation.read-locations","user.read","user.create","user.edit","user.search","record.search","record.create","record.read","record.declare","record.notify","record.edit","record.reject","record.archive","record.unarchive","record.review-duplicates","record.register","record.print-certified-copies","record.request-correction","record.correct","record.unassign-others","record.custom-action","record.action.accept","record.action.reject","bypassratelimit","record.reindex","user.data-seeding","integration.create","integration.audit.read","record.import","config.update-all","location.edit","attachment.upload","profile.electronic-signature","user.read-only-my-audit","performance.read","performance.read-dashboards","performance.vital-statistics-export","workqueue","dashboard.view"]},"$option":{"type":"string","enum":["event","placeOfEvent","createdBy","createdIn","notifiedIn","notifiedBy","declaredIn","declaredBy","status","registeredIn","registeredBy","flags","accessLevel","role","ids"]}},"required":["$scope","$option"],"additionalProperties":false}]}},"required":["$jurisdiction"],"additionalProperties":false},"activeOnly":{"type":"boolean"},"anchorToDateOfEvent":{"type":"boolean"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"Input field for an office"},{"$ref":"#/components/schemas/SignatureField"},{"$ref":"#/components/schemas/EmailField"},{"$ref":"#/components/schemas/FileUploadWithOptions"},{"$ref":"#/components/schemas/DataField"},{"$ref":"#/components/schemas/ButtonField"},{"$ref":"#/components/schemas/AlphaPrintButton"},{"$ref":"#/components/schemas/HttpField"},{"$ref":"#/components/schemas/AutocompleteField"},{"$ref":"#/components/schemas/LinkButtonField"},{"$ref":"#/components/schemas/VerificationStatus"},{"$ref":"#/components/schemas/QrReaderField"},{"$ref":"#/components/schemas/IdReaderField"},{"$ref":"#/components/schemas/QueryParamReaderField"},{"$ref":"#/components/schemas/LoaderField"},{"$ref":"#/components/schemas/SearchField"},{"$ref":"#/components/schemas/CustomField"},{"$ref":"#/components/schemas/HiddenField"},{"$ref":"#/components/schemas/UserRoleField"}],"description":"Form field configuration","type":"object"},"FieldGroup":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"FIELD_GROUP"},"fields":{"type":"array","items":{"$ref":"#/components/schemas/FieldConfig"}},"configuration":{"type":"object","properties":{"separator":{"description":"Joins the subfield values when the group is rendered as output, e.g. \", \". Defaults to one subfield per line.","type":"string"},"hideEmptyFields":{"description":"Leaves subfields without a value out of the output. Pair it with a separator so the separator does not double up around the gaps.","default":false,"type":"boolean"}},"additionalProperties":false}},"required":["id","label","type","fields"],"additionalProperties":false,"description":"A group of fields that are displayed together"},"FieldConditional":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"SHOW"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'SHOW' conditional is defined, the component is shown to the user only if the condition is met"},{"type":"object","properties":{"type":{"type":"string","const":"ENABLE"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'ENABLE' conditional is defined, the component is enabled only if the condition is met"},{"type":"object","properties":{"type":{"type":"string","const":"DISPLAY_ON_REVIEW"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'DISPLAY_ON_REVIEW' conditional is defined, the component is shown on the review page only if both the 'DISPLAY_ON_REVIEW' and 'SHOW' conditions are met. This should only be used for fields within declaration forms, as they are the only ones with review pages."}],"description":"Conditional gating whether a form field is shown (SHOW), enabled (ENABLE), or displayed on the review page (DISPLAY_ON_REVIEW). When omitted, the field is shown and enabled for everyone, and is displayed on review whenever it has a value.","type":"object"},"ValidationConfig":{"type":"object","properties":{"validator":{"description":"Conditional expression that must hold for the field value to be considered valid.","$ref":"#/components/schemas/Conditional"},"message":{"description":"Error message displayed when the validator does not hold.","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["validator","message"],"additionalProperties":false,"description":"Validation rule applied to a form field. The validator is a conditional expression that must hold for the field value to be considered valid."},"Address":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"ADDRESS"},"configuration":{"type":"object","properties":{"lineSeparator":{"type":"string"},"fields":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"type":{"type":"string","const":"COUNTRY"},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"optionOverrides":{"description":"Conditionals for specific countries. Countries not listed are always shown and enabled.","type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"The value of the option"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}}},"required":["value"],"additionalProperties":false}}},"required":["id","type"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"type":{"type":"string","const":"ADMINISTRATIVE_AREA"},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]}},"required":["id","type"],"additionalProperties":false}]}},"streetAddressForm":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"required":{"default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"label":{"$ref":"#/components/schemas/TranslationConfigOutput"},"type":{"type":"string","const":"TEXT"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"parent":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}},"required":["id","label","type"],"additionalProperties":false}},"allowedLocations":{"description":"Limits which location options are selectable depending on user jurisdiction and location.","type":"object","properties":{"$jurisdiction":{"anyOf":[{"type":"string","enum":["administrativeArea","location","all"],"description":"Filters based on user jurisdiction relative to their office location in hierarchy."},{"type":"object","properties":{"$scope":{"type":"string","enum":["organisation.read-locations","user.read","user.create","user.edit","user.search","record.search","record.create","record.read","record.declare","record.notify","record.edit","record.reject","record.archive","record.unarchive","record.review-duplicates","record.register","record.print-certified-copies","record.request-correction","record.correct","record.unassign-others","record.custom-action","record.action.accept","record.action.reject","bypassratelimit","record.reindex","user.data-seeding","integration.create","integration.audit.read","record.import","config.update-all","location.edit","attachment.upload","profile.electronic-signature","user.read-only-my-audit","performance.read","performance.read-dashboards","performance.vital-statistics-export","workqueue","dashboard.view"]},"$option":{"type":"string","enum":["event","placeOfEvent","createdBy","createdIn","notifiedIn","notifiedBy","declaredIn","declaredBy","status","registeredIn","registeredBy","flags","accessLevel","role","ids"]}},"required":["$scope","$option"],"additionalProperties":false}]}},"required":["$jurisdiction"],"additionalProperties":false},"activeOnly":{"description":"Offer only admin areas that are active at the resolved anchor date (today, or the date of event when anchorToDateOfEvent is set); inactive or not-yet-effective versions are excluded. Propagated to the embedded admin-area selectors.","type":"boolean"},"anchorToDateOfEvent":{"description":"Resolve selectable/displayed versions against the event's date of event (falling back to the record's creation date when empty) instead of today. Does not by itself exclude inactive versions; combine with activeOnly for that. Propagated to the embedded admin-area selectors.","type":"boolean"}},"additionalProperties":false},"defaultValue":{"anyOf":[{"type":"object","properties":{"country":{"type":"string"},"streetLevelDetails":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"addressType":{"type":"string","const":"DOMESTIC"},"administrativeArea":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false}]}},"required":["country","addressType"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]}},"required":["id","label","type"],"additionalProperties":false,"description":"Address input field – a combination of location and text fields"},"TextField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"TEXT"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"default":{"type":"text"},"type":"object","properties":{"maxLength":{"description":"Maximum length of the text","type":"number"},"type":{"type":"string","enum":["text","password"]},"prefix":{"$ref":"#/components/schemas/TranslationConfigOutput"},"postfix":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A text input field"},"NumberField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"NUMBER"},"defaultValue":{"anyOf":[{"type":"number"},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"min":{"description":"Minimum value","type":"number"},"max":{"description":"Maximum value","type":"number"},"integer":{"description":"When true, only whole numbers are allowed","type":"boolean"},"prefix":{"$ref":"#/components/schemas/TranslationConfigOutput"},"postfix":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A number input field"},"NumberWithUnitField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"NUMBER_WITH_UNIT"},"defaultValue":{"anyOf":[{"type":"object","properties":{"numericValue":{"type":"number"},"unit":{"type":"string"}},"required":["numericValue","unit"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"The value of the option"},"label":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/TranslationConfigOutput"}],"description":"The label of the option"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}}},"required":["value","label"],"additionalProperties":false},"description":"A list of options for the unit select"},"configuration":{"type":"object","properties":{"min":{"description":"Minimum value of the number field","type":"number"},"max":{"description":"Maximum value of the number field","type":"number"},"numberFieldPlaceholder":{"description":"Placeholder for the number field","$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type","options"],"additionalProperties":false,"description":"A number with unit input field"},"TextAreaField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"TEXTAREA"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"default":{"rows":4},"type":"object","properties":{"maxLength":{"description":"Maximum length of the text","type":"number"},"rows":{"description":"Number of visible text lines","type":"number"},"cols":{"description":"Number of visible columns","type":"number"},"prefix":{"$ref":"#/components/schemas/TranslationConfigOutput"},"postfix":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A multiline text input"},"AgeField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"AGE"},"defaultValue":{"anyOf":[{"type":"number"},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"asOfDate":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},"prefix":{"$ref":"#/components/schemas/TranslationConfigOutput"},"postfix":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["asOfDate"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"An age input field which uses the current date as the asOfDate"},"DateField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"DATE"},"defaultValue":{"description":"Default date value(yyyy-MM-dd)","anyOf":[{"anyOf":[{"type":"object","properties":{"$$now":{"type":"boolean","const":true}},"required":["$$now"],"additionalProperties":false},{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date in the format YYYY-MM-DD"}]},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"notice":{"description":"Text to display above the date input","$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A date input (yyyy-MM-dd)"},"TimeField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"TIME"},"defaultValue":{"description":"Default time value (HH-mm)","anyOf":[{"anyOf":[{"type":"object","properties":{"$$now":{"type":"boolean","const":true}},"required":["$$now"],"additionalProperties":false},{"type":"string","pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$"}]},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"use12HourFormat":{"description":"Whether to use 12-hour format","type":"boolean"},"notice":{"description":"Text to display above the time input","$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A single time input (HH-mm)"},"DateRangeField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"DATE_RANGE"},"defaultValue":{"anyOf":[{"anyOf":[{"type":"object","properties":{"start":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date in the format YYYY-MM-DD"},"end":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date in the format YYYY-MM-DD"}},"required":["start","end"],"additionalProperties":false},{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date in the format YYYY-MM-DD"}],"description":"Date range with start and end dates in the format YYYY-MM-DD. Inclusive start, exclusive end."},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"notice":{"description":"Text to display above the date input","$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A date range input ({ start: yyyy-MM-dd, end: yyyy-MM-dd })"},"SelectDateRangeField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"SELECT_DATE_RANGE"},"defaultValue":{"anyOf":[{"type":"string","enum":["last7Days","last30Days","last90Days","last365Days"]},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","enum":["last7Days","last30Days","last90Days","last365Days"],"description":"The value of the option"},"label":{"description":"The label of the option","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["value","label"],"additionalProperties":false},"description":"A list of options"}},"required":["id","label","type","options"],"additionalProperties":false,"description":"A date range selection field"},"ImageViewField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"IMAGE_VIEW"},"defaultValue":{"type":"string","minLength":1},"configuration":{"type":"object","properties":{"alt":{"description":"Alternative text for the image","type":"string"},"width":{"description":"CSS width value for the image","type":"string"},"height":{"description":"CSS height value for the image","type":"string"},"textAlign":{"description":"Text alignment for positioning the image in its container","type":"string","enum":["left","center","right","start","end"]},"objectFit":{"description":"How the image should be resized to fit the container","type":"string","enum":["contain","cover","fill","none","scale-down"]}},"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A read-only image component for form pages"},"Paragraph":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"PARAGRAPH"},"configuration":{"default":{},"type":"object","properties":{"styles":{"type":"object","properties":{"hint":{"description":"When true, paragraph is styled as a hint with grey color","type":"boolean"},"textAlign":{"description":"Text alignment for the paragraph","type":"string","enum":["left","center","right","start","end"]}},"additionalProperties":false}},"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A read-only HTML <p> paragraph"},"Heading":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"HEADING"},"configuration":{"default":{},"type":"object","properties":{"styles":{"type":"object","properties":{"fontVariant":{"description":"Font variant to use for the paragraph text","type":"string","enum":["reg12","reg14","reg16","reg18","h4","h3"]},"textAlign":{"description":"Text alignment for the paragraph","type":"string","enum":["left","center","right","start","end"]}},"additionalProperties":false}},"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A read-only heading component for form pages"},"RadioGroup":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"RADIO_GROUP"},"defaultValue":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"The value of the option"},"label":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/TranslationConfigOutput"}],"description":"The label of the option"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}}},"required":["value","label"],"additionalProperties":false},"description":"A list of options"},"configuration":{"type":"object","properties":{"styles":{"type":"object","properties":{"size":{"type":"string","enum":["NORMAL","LARGE"]}},"additionalProperties":false}},"additionalProperties":false}},"required":["id","label","type","options"],"additionalProperties":false,"description":"A grouped radio button field"},"BulletList":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"BULLET_LIST"},"items":{"type":"array","items":{"$ref":"#/components/schemas/TranslationConfigOutput"},"description":"A list of items"},"configuration":{"default":{},"type":"object","properties":{"styles":{"type":"object","properties":{"fontVariant":{"type":"string","enum":["reg12","reg14","reg16","reg18","h4","h3","h2","h1"]}},"additionalProperties":false}},"additionalProperties":false}},"required":["id","label","type","items","configuration"],"additionalProperties":false,"description":"A list of bullet points"},"PageHeader":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"PAGE_HEADER"}},"required":["id","label","type"],"additionalProperties":false,"description":"A read-only header component for form pages"},"Select":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"SELECT"},"defaultValue":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"The value of the option"},"label":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/TranslationConfigOutput"}],"description":"The label of the option"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}}},"required":["value","label"],"additionalProperties":false},"description":"A list of options"},"noOptionsMessage":{"description":"\n    A translation configuration object used to display a message when no options are available.\n    It must follow the shape: { id: string; defaultMessage: string; description?: string }.\n    The message is rendered via intl.formatMessage(noOptionsMessage, { input }),\n    where 'input' represents the text entered in the Select field.\n    You can reference this variable in your message, for example:\n    { ..., defaultMessage: \"'{input}' is not listed among the health facilities.\" }\n  ","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["id","label","type","options"],"additionalProperties":false,"description":"A select input field"},"NameField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"NAME"},"defaultValue":{"anyOf":[{"type":"object","properties":{"firstname":{"anyOf":[{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false},{"type":"string","minLength":1}]},"middlename":{"anyOf":[{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false},{"type":"string","minLength":1}]},"surname":{"anyOf":[{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false},{"type":"string","minLength":1}]}},"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"default":{"name":{"firstname":{"required":true},"surname":{"required":true}}},"type":"object","properties":{"name":{"default":{"firstname":{"required":true},"surname":{"required":true}},"type":"object","properties":{"firstname":{"type":"object","properties":{"required":{"default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"label":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false},"middlename":{"type":"object","properties":{"required":{"default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"label":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false},"surname":{"type":"object","properties":{"required":{"default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"label":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"additionalProperties":false},"order":{"type":"array","items":{"type":"string","enum":["firstname","middlename","surname"]}},"maxLength":{"description":"Maximum length of the text","type":"number"},"prefix":{"$ref":"#/components/schemas/TranslationConfigOutput"},"postfix":{"$ref":"#/components/schemas/TranslationConfigOutput"},"showParentFieldError":{"description":"If true, shows the parent field error and hides the subfield error","default":false,"type":"boolean"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A field for entering a persons name"},"PhoneField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"type":{"type":"string","const":"PHONE"}},"required":["id","label","type"],"additionalProperties":false,"description":"A field for entering a phone number"},"IdField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"type":{"type":"string","const":"ID"}},"required":["id","label","type"],"additionalProperties":false,"description":"A field for entering an ID"},"Checkbox":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"CHECKBOX"},"defaultValue":{"default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]}},"required":["id","label","type","defaultValue"],"additionalProperties":false,"description":"A boolean checkbox field"},"File":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"FILE"},"defaultValue":{"anyOf":[{"type":"object","properties":{"path":{"type":"string","description":"A relative path within the S3 bucket, never starting with /. e.g. document-id.jpg or directory/document-id.jpg. The document service constructs the full /bucket/path internally."},"originalFilename":{"type":"string"},"type":{"type":"string"}},"required":["path","originalFilename","type"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"default":{"maxFileSize":5242880},"type":"object","properties":{"maxFileSize":{"default":5242880,"type":"number","description":"Maximum file size in bytes"},"acceptedFileTypes":{"description":"List of allowed file formats for the signature","type":"array","items":{"type":"string","enum":["image/png","image/jpg","image/jpeg","image/svg+xml","application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.oasis.opendocument.text"]}},"maxImageSize":{"type":"object","properties":{"targetSize":{"type":"object","properties":{"width":{"type":"number"},"height":{"type":"number"}},"required":["width","height"],"additionalProperties":false}},"required":["targetSize"],"additionalProperties":false},"style":{"type":"object","properties":{"width":{"description":"Whether the file upload button should take the full width of the container or not","type":"string","enum":["full","auto"]}},"additionalProperties":false},"fileName":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["maxFileSize"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A file upload field"},"Country":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"COUNTRY"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"optionOverrides":{"description":"Conditionals for specific countries. Countries not listed are always shown and enabled.","type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"The value of the option"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}}},"required":["value"],"additionalProperties":false}}},"required":["id","label","type"],"additionalProperties":false,"description":"A field for selecting a country"},"AdministrativeAreaField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"ADMINISTRATIVE_AREA"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"partOf":{"description":"Parent location","type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false},"type":{"type":"string","enum":["ADMIN_STRUCTURE","HEALTH_FACILITY","CRVS_OFFICE"]},"allowedLocations":{"description":"Limits which location options are selectable depending on user jurisdiction and location.","type":"object","properties":{"$jurisdiction":{"anyOf":[{"type":"string","enum":["administrativeArea","location","all"],"description":"Filters based on user jurisdiction relative to their office location in hierarchy."},{"type":"object","properties":{"$scope":{"type":"string","enum":["organisation.read-locations","user.read","user.create","user.edit","user.search","record.search","record.create","record.read","record.declare","record.notify","record.edit","record.reject","record.archive","record.unarchive","record.review-duplicates","record.register","record.print-certified-copies","record.request-correction","record.correct","record.unassign-others","record.custom-action","record.action.accept","record.action.reject","bypassratelimit","record.reindex","user.data-seeding","integration.create","integration.audit.read","record.import","config.update-all","location.edit","attachment.upload","profile.electronic-signature","user.read-only-my-audit","performance.read","performance.read-dashboards","performance.vital-statistics-export","workqueue","dashboard.view"]},"$option":{"type":"string","enum":["event","placeOfEvent","createdBy","createdIn","notifiedIn","notifiedBy","declaredIn","declaredBy","status","registeredIn","registeredBy","flags","accessLevel","role","ids"]}},"required":["$scope","$option"],"additionalProperties":false}]}},"required":["$jurisdiction"],"additionalProperties":false},"activeOnly":{"description":"Offer only locations that are active at the resolved anchor date (today, or the date of event when anchorToDateOfEvent is set); inactive or not-yet-effective versions are excluded.","type":"boolean"},"anchorToDateOfEvent":{"description":"Resolve selectable/displayed versions against the event's date of event (falling back to the record's creation date when empty) instead of today. Does not by itself exclude inactive versions; combine with activeOnly for that.","type":"boolean"}},"required":["type"],"additionalProperties":false,"description":"Administrative area options"}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"Administrative area input field"},"Divider":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"DIVIDER"}},"required":["id","label","type"],"additionalProperties":false,"description":"A horizontal line divider"},"LocationInput":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"LOCATION"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"locationTypes":{"description":"Types of the locations that are available for selection.","type":"array","items":{"type":"string"}},"allowedLocations":{"description":"Limits which location options are selectable depending on user jurisdiction and location.","type":"object","properties":{"$jurisdiction":{"anyOf":[{"type":"string","enum":["administrativeArea","location","all"],"description":"Filters based on user jurisdiction relative to their office location in hierarchy."},{"type":"object","properties":{"$scope":{"type":"string","enum":["organisation.read-locations","user.read","user.create","user.edit","user.search","record.search","record.create","record.read","record.declare","record.notify","record.edit","record.reject","record.archive","record.unarchive","record.review-duplicates","record.register","record.print-certified-copies","record.request-correction","record.correct","record.unassign-others","record.custom-action","record.action.accept","record.action.reject","bypassratelimit","record.reindex","user.data-seeding","integration.create","integration.audit.read","record.import","config.update-all","location.edit","attachment.upload","profile.electronic-signature","user.read-only-my-audit","performance.read","performance.read-dashboards","performance.vital-statistics-export","workqueue","dashboard.view"]},"$option":{"type":"string","enum":["event","placeOfEvent","createdBy","createdIn","notifiedIn","notifiedBy","declaredIn","declaredBy","status","registeredIn","registeredBy","flags","accessLevel","role","ids"]}},"required":["$scope","$option"],"additionalProperties":false}]}},"required":["$jurisdiction"],"additionalProperties":false},"activeOnly":{"description":"Offer only locations that are active at the resolved anchor date (today, or the date of event when anchorToDateOfEvent is set); inactive or not-yet-effective versions are excluded.","type":"boolean"},"anchorToDateOfEvent":{"description":"Resolve selectable/displayed versions against the event's date of event (falling back to the record's creation date when empty) instead of today. Does not by itself exclude inactive versions; combine with activeOnly for that.","type":"boolean"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A field for selecting a location"},"SignatureField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"SIGNATURE"},"signaturePromptLabel":{"description":"Title of the signature modal","$ref":"#/components/schemas/TranslationConfigOutput"},"defaultValue":{"anyOf":[{"type":"object","properties":{"path":{"type":"string","description":"A relative path within the S3 bucket, never starting with /. e.g. document-id.jpg or directory/document-id.jpg. The document service constructs the full /bucket/path internally."},"originalFilename":{"type":"string"},"type":{"type":"string"}},"required":["path","originalFilename","type"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"default":{"maxFileSize":5242880},"type":"object","properties":{"maxFileSize":{"default":5242880,"type":"number","description":"Maximum file size in bytes"},"acceptedFileTypes":{"description":"List of allowed file formats for the signature","type":"array","items":{"type":"string","enum":["image/png","image/jpg","image/jpeg","image/svg+xml","application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.oasis.opendocument.text"]}}},"required":["maxFileSize"],"additionalProperties":false}},"required":["id","label","type","signaturePromptLabel","configuration"],"additionalProperties":false,"description":"A signature input field"},"EmailField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"EMAIL"},"configuration":{"default":{"maxLength":255},"type":"object","properties":{"maxLength":{"description":"Maximum length of the text","type":"number"}},"additionalProperties":false},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]}},"required":["id","label","type"],"additionalProperties":false,"description":"An email input field"},"FileUploadWithOptions":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"FILE_WITH_OPTIONS"},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"The value of the option"},"label":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/TranslationConfigOutput"}],"description":"The label of the option"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}}},"required":["value","label"],"additionalProperties":false},"description":"A list of options"},"defaultValue":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"A relative path within the S3 bucket, never starting with /. e.g. document-id.jpg or directory/document-id.jpg. The document service constructs the full /bucket/path internally."},"originalFilename":{"type":"string"},"type":{"type":"string"},"option":{"type":"string"}},"required":["path","originalFilename","type","option"],"additionalProperties":false}},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"default":{"maxFileSize":5242880},"type":"object","properties":{"maxFileSize":{"default":5242880,"type":"number","description":"Maximum file size in bytes"},"maxImageSize":{"type":"object","properties":{"targetSize":{"type":"object","properties":{"width":{"type":"number"},"height":{"type":"number"}},"required":["width","height"],"additionalProperties":false}},"required":["targetSize"],"additionalProperties":false},"acceptedFileTypes":{"description":"List of allowed file formats for the signature","type":"array","items":{"type":"string","enum":["image/png","image/jpg","image/jpeg","image/svg+xml","application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.oasis.opendocument.text"]}}},"required":["maxFileSize"],"additionalProperties":false}},"required":["id","label","type","options","configuration"],"additionalProperties":false,"description":"A field for uploading files with file type options"},"DataField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"DATA"},"configuration":{"type":"object","properties":{"subtitle":{"$ref":"#/components/schemas/TranslationConfigOutput"},"data":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","description":"ID for the data entry."},"label":{"$ref":"#/components/schemas/TranslationConfigOutput"},"value":{"anyOf":[{"anyOf":[{"$ref":"#/components/schemas/TranslationConfigOutput"},{"type":"string"}]},{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}]}},"required":["id","label","value"],"additionalProperties":false,"description":"Static data entry"},{"type":"object","properties":{"fieldId":{"type":"string"}},"required":["fieldId"],"additionalProperties":false}],"description":"Data entry can be either a static data entry, or a reference to another field in the current form or the declaration."}}},"required":["data"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A field for displaying a table of read-only data"},"ButtonField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"BUTTON"},"defaultValue":{"anyOf":[{"type":"number"},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"icon":{"description":"Icon for the button. You can find icons from OpenCRVS UI-Kit.","type":"string"},"loading":{"description":"Whether the button is in a loading state and shows a spinner","type":"boolean"},"buttonSize":{"description":"Size of the button.","type":"string","enum":["small","medium","large"]},"buttonType":{"description":"Type of the button.","type":"string","enum":["primary","secondary","tertiary","positive","negative","secondaryNegative","icon","iconPrimary"]},"textColor":{"description":"Color of the text.","type":"string","enum":["primary","copy"]},"textVariant":{"description":"Variant of the text.","type":"string","enum":["bold14","reg14"]},"text":{"description":"Text to display on the button","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["text"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A generic button that can be used to trigger an action"},"AlphaPrintButton":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"ALPHA_PRINT_BUTTON"},"configuration":{"type":"object","properties":{"template":{"type":"string","description":"Template ID from countryconfig templates to use for printing"},"buttonLabel":{"description":"Label for the print button","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["template"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"An experimental print button field for printing certificates during the declaration process"},"HttpField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"HTTP"},"defaultValue":{"anyOf":[{"type":"object","properties":{"loading":{"type":"boolean"},"error":{"anyOf":[{"type":"object","properties":{"statusCode":{"type":"number"},"message":{"type":"string"}},"required":["statusCode","message"],"additionalProperties":false},{"type":"null"}]},"data":{}},"required":["loading","data"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"trigger":{"description":"Reference to the field that triggers the HTTP request when its value changes. If not provided, the HTTP request is triggered once on component mount.","type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false},"url":{"type":"string","description":"URL to send the HTTP request to"},"method":{"type":"string","enum":["GET","POST","PUT","DELETE"]},"headers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"body":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"errorValue":{"description":"Value to set if the request fails"},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}]}},"timeout":{"default":15000,"description":"Request timeout in milliseconds","type":"number"}},"required":["url","method","timeout"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"Makes a background HTTP request to an external service and stores the response so other fields can use it. Has no visible UI — pair with LOADER to show request status."},"AutocompleteField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"AUTOCOMPLETE"},"configuration":{"type":"object","properties":{"url":{"type":"string","description":"URL to fetch autocomplete suggestions from. This should be a country config server endpoint."},"method":{"default":"GET","type":"string","enum":["GET","POST"]},"defaultOptions":{"description":"Manual entry is supported through configuration, allowing users to provide values not currently represented in the dataset.","type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"type":"string"}},"required":["label","value"],"additionalProperties":false}}},"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"Generic autocomplete component designed for use with large dictionary-based datasets. The component supports dynamic retrieval of options from configurable data sources and is intended for datasets that may contain tens or hundreds of thousands of records."},"LinkButtonField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"LINK_BUTTON"},"configuration":{"type":"object","properties":{"url":{"type":"string","description":"URL to open"},"text":{"description":"Text to display on the button","$ref":"#/components/schemas/TranslationConfigOutput"},"icon":{"description":"Icon for the button. You can find icons from OpenCRVS UI-Kit.","type":"string"}},"required":["url","text"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A button that opens a URL link"},"VerificationStatus":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"VERIFICATION_STATUS"},"defaultValue":{"anyOf":[{"type":"string","enum":["verified","authenticated","failed","pending"]},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"status":{"description":"Text to display on the status pill.","$ref":"#/components/schemas/TranslationConfigOutput"},"description":{"description":"Explaining text on the banner in form.","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["status","description"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"Displays a verification state (e.g. ID verified / pending). Often paired with ID_READER — it can read its value off an ID_READER rather than holding its own."},"QrReaderField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"QR_READER"},"defaultValue":{"anyOf":[{"type":"object","properties":{"data":{}},"required":["data"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"validator":{"$ref":"#/components/schemas/QrReaderFieldValidator"}},"required":["validator"],"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"QR code reader field, including optional JSON Schema validator."},"QrReaderFieldValidator":{"description":"JSON Schema to validate the scanned QR code data against before populating the form fields."},"IdReaderField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"ID_READER"},"defaultValue":{"anyOf":[{"type":"object","properties":{"data":{}},"required":["data"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"methods":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/QrReaderField"},{"$ref":"#/components/schemas/LinkButtonField"}],"description":"Methods for reading an ID"}}},"required":["id","label","type","methods"],"additionalProperties":false,"description":"A wrapper around nested form fields, specifically QR_READER and LINK_BUTTON. It can hold the QR_READERs value."},"QueryParamReaderField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"QUERY_PARAM_READER"},"configuration":{"type":"object","properties":{"pickParams":{"type":"array","items":{"type":"string"},"description":"List of query parameters to read from the URL"}},"required":["pickParams"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A field that maps URL query params into form values and clears them afterward"},"LoaderField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"description":"Loader field does not show a label by default","default":true,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"LOADER"},"variant":{"default":"default","type":"string","enum":["default","highlighted"]},"configuration":{"type":"object","properties":{"text":{"description":"Display text above the loading spinner","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["text"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A non-interactive field that indicates an in progress operation in form"},"SearchField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"SEARCH"},"defaultValue":{"anyOf":[{"type":"object","properties":{"loading":{"type":"boolean"},"error":{"anyOf":[{"type":"object","properties":{"statusCode":{"type":"number"},"message":{"type":"string"}},"required":["statusCode","message"],"additionalProperties":false},{"type":"null"}]},"data":{}},"required":["loading","data"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"query":{"default":{"type":"and","clauses":[{"eventType":"tennis-club-membership","status":{"type":"anyOf","terms":["CREATED","NOTIFIED","DECLARED","REGISTERED","ARCHIVED"]},"updatedAt":{"type":"range","gte":"2025-05-22","lte":"2025-05-29"},"data":{}}]},"$ref":"#/components/schemas/QueryTypeOutput"},"limit":{"default":100,"type":"number"},"offset":{"default":0,"type":"number"},"validation":{"$ref":"#/components/schemas/ValidationConfig"},"indicators":{"type":"object","properties":{"loading":{"description":"Text to display while the search is in progress","$ref":"#/components/schemas/TranslationConfigOutput"},"offline":{"description":"Text to display when the application is offline","$ref":"#/components/schemas/TranslationConfigOutput"},"noResultsError":{"description":"Text to display when no results are found during the search","$ref":"#/components/schemas/TranslationConfigOutput"},"httpError":{"description":"Text to display when there is an HTTP error during the search","$ref":"#/components/schemas/TranslationConfigOutput"},"confirmButton":{"$ref":"#/components/schemas/TranslationConfigOutput"},"clearButton":{"$ref":"#/components/schemas/TranslationConfigOutput"},"clearModal":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/TranslationConfigOutput"},"description":{"$ref":"#/components/schemas/TranslationConfigOutput"},"cancel":{"$ref":"#/components/schemas/TranslationConfigOutput"},"confirm":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false},"ok":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["query","limit","offset","validation"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A search input field"},"QueryTypeOutput":{"type":"object","properties":{"type":{"anyOf":[{"type":"string","const":"and"},{"type":"string","const":"or"}],"default":"and"},"clauses":{"minItems":1,"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/QueryExpressionOutput"},{"$ref":"#/components/schemas/QueryTypeOutput"}]},"default":[{"eventType":"tennis-club-membership","status":{"type":"anyOf","terms":["CREATED","NOTIFIED","DECLARED","REGISTERED","ARCHIVED"]},"updatedAt":{"type":"range","gte":"2025-05-22","lte":"2025-05-29"},"data":{}}]}},"required":["type","clauses"],"additionalProperties":false},"QueryExpressionOutput":{"type":"object","properties":{"id":{"type":"string"},"eventType":{"type":"string"},"status":{"anyOf":[{"$ref":"#/components/schemas/AnyOfStatusOutput"},{"$ref":"#/components/schemas/ExactStatusOutput"}]},"createdAt":{"$ref":"#/components/schemas/DateConditionOutput"},"updatedAt":{"$ref":"#/components/schemas/DateConditionOutput"},"legalStatuses.DECLARED.createdAtLocation":{"anyOf":[{"$ref":"#/components/schemas/WithinOutput"},{"type":"null"}]},"legalStatuses.DECLARED.createdByRole":{"$ref":"#/components/schemas/AnyOfOutput"},"legalStatuses.REGISTERED.acceptedAt":{"$ref":"#/components/schemas/DateConditionOutput"},"legalStatuses.REGISTERED.createdAtLocation":{"anyOf":[{"$ref":"#/components/schemas/WithinOutput"},{"type":"null"}]},"legalStatuses.REGISTERED.createdByRole":{"$ref":"#/components/schemas/AnyOfOutput"},"legalStatuses.REGISTERED.registrationNumber":{"$ref":"#/components/schemas/ExactOutput"},"createdAtLocation":{"anyOf":[{"$ref":"#/components/schemas/WithinOutput"},{"$ref":"#/components/schemas/ExactOutput"}]},"updatedAtLocation":{"anyOf":[{"$ref":"#/components/schemas/WithinOutput"},{"$ref":"#/components/schemas/ExactOutput"}]},"assignedTo":{"$ref":"#/components/schemas/ExactOutput"},"createdByUserType":{"$ref":"#/components/schemas/ExactUserTypeOutput"},"updatedByUserRole":{"$ref":"#/components/schemas/ExactOutput"},"createdBy":{"$ref":"#/components/schemas/ExactOutput"},"updatedBy":{"$ref":"#/components/schemas/ExactOutput"},"trackingId":{"$ref":"#/components/schemas/ExactOutput"},"flags":{"$ref":"#/components/schemas/ContainsFlagsOutput"},"data":{"$ref":"#/components/schemas/QueryInputOutput"}},"additionalProperties":false},"AnyOfStatusOutput":{"type":"object","properties":{"type":{"type":"string","const":"anyOf"},"terms":{"type":"array","items":{"type":"string","enum":["CREATED","NOTIFIED","DECLARED","REGISTERED","ARCHIVED"]}}},"required":["type","terms"],"additionalProperties":false},"ExactStatusOutput":{"type":"object","properties":{"type":{"type":"string","const":"exact"},"term":{"type":"string","enum":["CREATED","NOTIFIED","DECLARED","REGISTERED","ARCHIVED"]}},"required":["type","term"],"additionalProperties":false},"DateConditionOutput":{"anyOf":[{"$ref":"#/components/schemas/ExactDateOutput"},{"$ref":"#/components/schemas/RangeDateOutput"},{"$ref":"#/components/schemas/TimePeriodOutput"}]},"ExactDateOutput":{"type":"object","properties":{"type":{"type":"string","const":"exact"},"term":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}]}},"required":["type","term"],"additionalProperties":false},"RangeDateOutput":{"type":"object","properties":{"type":{"type":"string","const":"range"},"gte":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}]},"lte":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}]}},"required":["type","gte","lte"],"additionalProperties":false},"TimePeriodOutput":{"type":"object","properties":{"type":{"type":"string","const":"timePeriod"},"term":{"type":"string","enum":["last7Days","last30Days","last90Days","last365Days"]}},"required":["type","term"],"additionalProperties":false},"WithinOutput":{"type":"object","properties":{"type":{"type":"string","const":"within"},"location":{"type":"string"}},"required":["type","location"],"additionalProperties":false},"AnyOfOutput":{"type":"object","properties":{"type":{"type":"string","const":"anyOf"},"terms":{"type":"array","items":{"type":"string"}}},"required":["type","terms"],"additionalProperties":false},"ExactOutput":{"type":"object","properties":{"type":{"type":"string","const":"exact"},"term":{"type":"string"}},"required":["type","term"],"additionalProperties":false},"ExactUserTypeOutput":{"type":"object","properties":{"type":{"type":"string","const":"exact"},"term":{"type":"string","enum":["user","system"]}},"required":["type","term"],"additionalProperties":false},"ContainsFlagsOutput":{"type":"object","properties":{"anyOf":{"type":"array","items":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"string","enum":["incomplete","rejected","correction-requested","potential-duplicate","edit-in-progress"]}]},{"type":"string","description":"Custom flag identifier defined by the country config."}]}},"noneOf":{"type":"array","items":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"string","enum":["incomplete","rejected","correction-requested","potential-duplicate","edit-in-progress"]}]},{"type":"string","description":"Custom flag identifier defined by the country config."}]}},"allOf":{"type":"array","items":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"string","enum":["incomplete","rejected","correction-requested","potential-duplicate","edit-in-progress"]}]},{"type":"string","description":"Custom flag identifier defined by the country config."}]}}},"additionalProperties":false},"QueryInputOutput":{"anyOf":[{"oneOf":[{"$ref":"#/components/schemas/FuzzyOutput"},{"$ref":"#/components/schemas/ExactOutput"},{"$ref":"#/components/schemas/RangeOutput"},{"$ref":"#/components/schemas/WithinOutput"},{"$ref":"#/components/schemas/AnyOfOutput"}],"type":"object","discriminator":{"propertyName":"type","mapping":{"fuzzy":"#/components/schemas/FuzzyOutput","exact":"#/components/schemas/ExactOutput","range":"#/components/schemas/RangeOutput","within":"#/components/schemas/WithinOutput","anyOf":"#/components/schemas/AnyOfOutput"}}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/QueryInputOutput"}}]},"FuzzyOutput":{"type":"object","properties":{"type":{"type":"string","const":"fuzzy"},"term":{"type":"string"}},"required":["type","term"],"additionalProperties":false},"RangeOutput":{"type":"object","properties":{"type":{"type":"string","const":"range"},"gte":{"type":"string"},"lte":{"type":"string"}},"required":["type","gte","lte"],"additionalProperties":false},"CustomField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"CUSTOM"},"defaultValue":{},"src":{"type":"string","description":"Module source path for the custom field component"},"configuration":{}},"required":["id","label","type","src"],"additionalProperties":false,"description":"An expiremental custom field that is defined by a module source path"},"HiddenField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"default":false,"type":"boolean"},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"ALPHA_HIDDEN"},"defaultValue":{"type":"string"}},"required":["id","label","type"],"additionalProperties":false,"description":"A non-interactive, hidden field that only hold a value in the form"},"UserRoleField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"USER_ROLE"},"defaultValue":{"type":"string"}},"required":["id","label","type"],"additionalProperties":false,"description":"A select dropdown that is automatically populated with available user roles"}}}}
```

## The DeclareActionConfig object

```json
{"openapi":"3.1.0","info":{"title":"OpenCRVS API","version":"2.0.0"},"components":{"schemas":{"DeclareActionConfig":{"type":"object","properties":{"label":{"description":"Human readable description of the action","$ref":"#/components/schemas/TranslationConfigOutput"},"flags":{"default":[],"description":"Flag actions which are executed when the action is performed.","type":"array","items":{"$ref":"#/components/schemas/ActionFlagConfig"}},"supportingCopy":{"description":"Text displayed on the confirmation dialog","$ref":"#/components/schemas/TranslationConfigOutput"},"icon":{"type":"string","description":"Icon representing the action"},"conditionals":{"description":"Conditionals which can disable or hide actions.","type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}},"deduplication":{"$ref":"#/components/schemas/DeduplicationConfig"},"type":{"type":"string","const":"DECLARE"},"review":{"type":"object","properties":{"title":{"description":"Title of the review page","$ref":"#/components/schemas/TranslationConfigOutput"},"fields":{"type":"array","items":{"$ref":"#/components/schemas/FieldConfig"},"description":"Fields displayed on the review page for annotations."}},"required":["title","fields"],"additionalProperties":false,"description":"Configuration of the review page fields."},"form":{"description":"Fields rendered on the action confirmation dialog. Submitted values are stored in the action annotation and shown in the audit history.","type":"array","items":{"$ref":"#/components/schemas/FieldConfig"}},"dialogCopy":{"type":"object","properties":{"notify":{"description":"Confirmation text for the notify action","$ref":"#/components/schemas/TranslationConfigOutput"},"declare":{"description":"Confirmation text for the declare action","$ref":"#/components/schemas/TranslationConfigOutput"},"register":{"description":"Confirmation text for the register action","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["notify","declare","register"],"additionalProperties":false}},"required":["label","flags","type","review"],"additionalProperties":false,"description":"Configuration for the declare action. Includes review-page fields. NOTIFY falls back to this config when no dedicated NotifyActionConfig is provided."},"TranslationConfigOutput":{"type":"object","properties":{"id":{"type":"string","description":"The identifier of the translation referred in translation CSV files"},"defaultMessage":{"type":"string","description":"Default translation message"},"description":{"type":"string","description":"Describe the translation for a translator to be able to identify it."}},"required":["id","defaultMessage","description"],"additionalProperties":false,"description":"Translation configuration"},"ActionFlagConfig":{"type":"object","properties":{"id":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"string","enum":["incomplete","rejected","correction-requested","potential-duplicate","edit-in-progress"]}]},{"type":"string","description":"Custom flag identifier defined by the country config."}]},"operation":{"type":"string","enum":["add","remove"],"description":"Operation to perform on the flag."},"conditional":{"description":"When conditional is met, the operation is performed on the flag. If not provided, the operation is performed unconditionally.","$ref":"#/components/schemas/Conditional"}},"required":["id","operation"],"additionalProperties":false,"description":"Add or remove operation applied to a flag when the parent action is accepted. Optionally gated by a conditional."},"Conditional":{"description":"JSON schema conditional configuration"},"ActionConditional":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"SHOW"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'SHOW' conditional is defined, the component is shown to the user only if the condition is met"},{"type":"object","properties":{"type":{"type":"string","const":"ENABLE"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'ENABLE' conditional is defined, the component is enabled only if the condition is met"}],"description":"Conditional gating whether an action is shown (SHOW) or enabled (ENABLE). When omitted from an action, the action is shown and enabled for everyone.","type":"object"},"DeduplicationConfig":{"type":"object","properties":{"id":{"type":"string"},"label":{"$ref":"#/components/schemas/TranslationConfigOutput"},"query":{"$ref":"#/components/schemas/Clause"}},"required":["id","label","query"],"additionalProperties":false,"description":"Configuration for duplicate detection on a declare or register action. The query is built from fuzzy / strict / date-range matchers combined with and/or/not."},"Clause":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"not"},"clause":{"$ref":"#/components/schemas/Clause"}},"required":["type","clause"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"and"},"clauses":{"type":"array","items":{"$ref":"#/components/schemas/Clause"}}},"required":["type","clauses"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"or"},"clauses":{"type":"array","items":{"$ref":"#/components/schemas/Clause"}}},"required":["type","clauses"],"additionalProperties":false},{"type":"object","properties":{"fieldId":{"type":"string"},"options":{"default":{"fuzziness":"AUTO:4,7","boost":1},"type":"object","properties":{"fuzziness":{"default":"AUTO:4,7","anyOf":[{"type":"string"},{"type":"number"}]},"boost":{"default":1,"type":"number"},"matchAgainst":{"type":"string"}},"required":["fuzziness","boost"],"additionalProperties":false},"type":{"type":"string","const":"fuzzy"}},"required":["fieldId","options","type"],"additionalProperties":false},{"type":"object","properties":{"fieldId":{"type":"string"},"options":{"default":{"boost":1},"type":"object","properties":{"boost":{"default":1,"type":"number"},"value":{"type":"string"},"matchAgainst":{"type":"string"}},"required":["boost"],"additionalProperties":false},"type":{"type":"string","const":"strict"}},"required":["fieldId","options","type"],"additionalProperties":false},{"type":"object","properties":{"fieldId":{"type":"string"},"options":{"type":"object","properties":{"pivot":{"type":"number"},"days":{"type":"number"},"boost":{"default":1,"type":"number"},"matchAgainst":{"type":"string"}},"required":["days","boost"],"additionalProperties":false},"type":{"type":"string","const":"dateRange"}},"required":["fieldId","options","type"],"additionalProperties":false}],"type":"object"},"FieldConfig":{"oneOf":[{"$ref":"#/components/schemas/FieldGroup"},{"$ref":"#/components/schemas/Address"},{"$ref":"#/components/schemas/TextField"},{"$ref":"#/components/schemas/NumberField"},{"$ref":"#/components/schemas/NumberWithUnitField"},{"$ref":"#/components/schemas/TextAreaField"},{"$ref":"#/components/schemas/AgeField"},{"$ref":"#/components/schemas/DateField"},{"$ref":"#/components/schemas/TimeField"},{"$ref":"#/components/schemas/DateRangeField"},{"$ref":"#/components/schemas/SelectDateRangeField"},{"$ref":"#/components/schemas/ImageViewField"},{"$ref":"#/components/schemas/Paragraph"},{"$ref":"#/components/schemas/Heading"},{"$ref":"#/components/schemas/RadioGroup"},{"$ref":"#/components/schemas/BulletList"},{"$ref":"#/components/schemas/PageHeader"},{"$ref":"#/components/schemas/Select"},{"$ref":"#/components/schemas/NameField"},{"$ref":"#/components/schemas/PhoneField"},{"$ref":"#/components/schemas/IdField"},{"$ref":"#/components/schemas/Checkbox"},{"$ref":"#/components/schemas/File"},{"$ref":"#/components/schemas/Country"},{"$ref":"#/components/schemas/AdministrativeAreaField"},{"$ref":"#/components/schemas/Divider"},{"$ref":"#/components/schemas/LocationInput"},{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"FACILITY"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"allowedLocations":{"description":"Limits which location options are selectable depending on user jurisdiction and location.","type":"object","properties":{"$jurisdiction":{"anyOf":[{"type":"string","enum":["administrativeArea","location","all"],"description":"Filters based on user jurisdiction relative to their office location in hierarchy."},{"type":"object","properties":{"$scope":{"type":"string","enum":["organisation.read-locations","user.read","user.create","user.edit","user.search","record.search","record.create","record.read","record.declare","record.notify","record.edit","record.reject","record.archive","record.unarchive","record.review-duplicates","record.register","record.print-certified-copies","record.request-correction","record.correct","record.unassign-others","record.custom-action","record.action.accept","record.action.reject","bypassratelimit","record.reindex","user.data-seeding","integration.create","integration.audit.read","record.import","config.update-all","location.edit","attachment.upload","profile.electronic-signature","user.read-only-my-audit","performance.read","performance.read-dashboards","performance.vital-statistics-export","workqueue","dashboard.view"]},"$option":{"type":"string","enum":["event","placeOfEvent","createdBy","createdIn","notifiedIn","notifiedBy","declaredIn","declaredBy","status","registeredIn","registeredBy","flags","accessLevel","role","ids"]}},"required":["$scope","$option"],"additionalProperties":false}]}},"required":["$jurisdiction"],"additionalProperties":false},"activeOnly":{"type":"boolean"},"anchorToDateOfEvent":{"type":"boolean"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"Input field for a facility"},{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"OFFICE"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"allowedLocations":{"description":"Limits which location options are selectable depending on user jurisdiction and location.","type":"object","properties":{"$jurisdiction":{"anyOf":[{"type":"string","enum":["administrativeArea","location","all"],"description":"Filters based on user jurisdiction relative to their office location in hierarchy."},{"type":"object","properties":{"$scope":{"type":"string","enum":["organisation.read-locations","user.read","user.create","user.edit","user.search","record.search","record.create","record.read","record.declare","record.notify","record.edit","record.reject","record.archive","record.unarchive","record.review-duplicates","record.register","record.print-certified-copies","record.request-correction","record.correct","record.unassign-others","record.custom-action","record.action.accept","record.action.reject","bypassratelimit","record.reindex","user.data-seeding","integration.create","integration.audit.read","record.import","config.update-all","location.edit","attachment.upload","profile.electronic-signature","user.read-only-my-audit","performance.read","performance.read-dashboards","performance.vital-statistics-export","workqueue","dashboard.view"]},"$option":{"type":"string","enum":["event","placeOfEvent","createdBy","createdIn","notifiedIn","notifiedBy","declaredIn","declaredBy","status","registeredIn","registeredBy","flags","accessLevel","role","ids"]}},"required":["$scope","$option"],"additionalProperties":false}]}},"required":["$jurisdiction"],"additionalProperties":false},"activeOnly":{"type":"boolean"},"anchorToDateOfEvent":{"type":"boolean"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"Input field for an office"},{"$ref":"#/components/schemas/SignatureField"},{"$ref":"#/components/schemas/EmailField"},{"$ref":"#/components/schemas/FileUploadWithOptions"},{"$ref":"#/components/schemas/DataField"},{"$ref":"#/components/schemas/ButtonField"},{"$ref":"#/components/schemas/AlphaPrintButton"},{"$ref":"#/components/schemas/HttpField"},{"$ref":"#/components/schemas/AutocompleteField"},{"$ref":"#/components/schemas/LinkButtonField"},{"$ref":"#/components/schemas/VerificationStatus"},{"$ref":"#/components/schemas/QrReaderField"},{"$ref":"#/components/schemas/IdReaderField"},{"$ref":"#/components/schemas/QueryParamReaderField"},{"$ref":"#/components/schemas/LoaderField"},{"$ref":"#/components/schemas/SearchField"},{"$ref":"#/components/schemas/CustomField"},{"$ref":"#/components/schemas/HiddenField"},{"$ref":"#/components/schemas/UserRoleField"}],"description":"Form field configuration","type":"object"},"FieldGroup":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"FIELD_GROUP"},"fields":{"type":"array","items":{"$ref":"#/components/schemas/FieldConfig"}},"configuration":{"type":"object","properties":{"separator":{"description":"Joins the subfield values when the group is rendered as output, e.g. \", \". Defaults to one subfield per line.","type":"string"},"hideEmptyFields":{"description":"Leaves subfields without a value out of the output. Pair it with a separator so the separator does not double up around the gaps.","default":false,"type":"boolean"}},"additionalProperties":false}},"required":["id","label","type","fields"],"additionalProperties":false,"description":"A group of fields that are displayed together"},"FieldConditional":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"SHOW"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'SHOW' conditional is defined, the component is shown to the user only if the condition is met"},{"type":"object","properties":{"type":{"type":"string","const":"ENABLE"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'ENABLE' conditional is defined, the component is enabled only if the condition is met"},{"type":"object","properties":{"type":{"type":"string","const":"DISPLAY_ON_REVIEW"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'DISPLAY_ON_REVIEW' conditional is defined, the component is shown on the review page only if both the 'DISPLAY_ON_REVIEW' and 'SHOW' conditions are met. This should only be used for fields within declaration forms, as they are the only ones with review pages."}],"description":"Conditional gating whether a form field is shown (SHOW), enabled (ENABLE), or displayed on the review page (DISPLAY_ON_REVIEW). When omitted, the field is shown and enabled for everyone, and is displayed on review whenever it has a value.","type":"object"},"ValidationConfig":{"type":"object","properties":{"validator":{"description":"Conditional expression that must hold for the field value to be considered valid.","$ref":"#/components/schemas/Conditional"},"message":{"description":"Error message displayed when the validator does not hold.","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["validator","message"],"additionalProperties":false,"description":"Validation rule applied to a form field. The validator is a conditional expression that must hold for the field value to be considered valid."},"Address":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"ADDRESS"},"configuration":{"type":"object","properties":{"lineSeparator":{"type":"string"},"fields":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"type":{"type":"string","const":"COUNTRY"},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"optionOverrides":{"description":"Conditionals for specific countries. Countries not listed are always shown and enabled.","type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"The value of the option"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}}},"required":["value"],"additionalProperties":false}}},"required":["id","type"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"type":{"type":"string","const":"ADMINISTRATIVE_AREA"},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]}},"required":["id","type"],"additionalProperties":false}]}},"streetAddressForm":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"required":{"default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"label":{"$ref":"#/components/schemas/TranslationConfigOutput"},"type":{"type":"string","const":"TEXT"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"parent":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}},"required":["id","label","type"],"additionalProperties":false}},"allowedLocations":{"description":"Limits which location options are selectable depending on user jurisdiction and location.","type":"object","properties":{"$jurisdiction":{"anyOf":[{"type":"string","enum":["administrativeArea","location","all"],"description":"Filters based on user jurisdiction relative to their office location in hierarchy."},{"type":"object","properties":{"$scope":{"type":"string","enum":["organisation.read-locations","user.read","user.create","user.edit","user.search","record.search","record.create","record.read","record.declare","record.notify","record.edit","record.reject","record.archive","record.unarchive","record.review-duplicates","record.register","record.print-certified-copies","record.request-correction","record.correct","record.unassign-others","record.custom-action","record.action.accept","record.action.reject","bypassratelimit","record.reindex","user.data-seeding","integration.create","integration.audit.read","record.import","config.update-all","location.edit","attachment.upload","profile.electronic-signature","user.read-only-my-audit","performance.read","performance.read-dashboards","performance.vital-statistics-export","workqueue","dashboard.view"]},"$option":{"type":"string","enum":["event","placeOfEvent","createdBy","createdIn","notifiedIn","notifiedBy","declaredIn","declaredBy","status","registeredIn","registeredBy","flags","accessLevel","role","ids"]}},"required":["$scope","$option"],"additionalProperties":false}]}},"required":["$jurisdiction"],"additionalProperties":false},"activeOnly":{"description":"Offer only admin areas that are active at the resolved anchor date (today, or the date of event when anchorToDateOfEvent is set); inactive or not-yet-effective versions are excluded. Propagated to the embedded admin-area selectors.","type":"boolean"},"anchorToDateOfEvent":{"description":"Resolve selectable/displayed versions against the event's date of event (falling back to the record's creation date when empty) instead of today. Does not by itself exclude inactive versions; combine with activeOnly for that. Propagated to the embedded admin-area selectors.","type":"boolean"}},"additionalProperties":false},"defaultValue":{"anyOf":[{"type":"object","properties":{"country":{"type":"string"},"streetLevelDetails":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"addressType":{"type":"string","const":"DOMESTIC"},"administrativeArea":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false}]}},"required":["country","addressType"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]}},"required":["id","label","type"],"additionalProperties":false,"description":"Address input field – a combination of location and text fields"},"TextField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"TEXT"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"default":{"type":"text"},"type":"object","properties":{"maxLength":{"description":"Maximum length of the text","type":"number"},"type":{"type":"string","enum":["text","password"]},"prefix":{"$ref":"#/components/schemas/TranslationConfigOutput"},"postfix":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A text input field"},"NumberField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"NUMBER"},"defaultValue":{"anyOf":[{"type":"number"},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"min":{"description":"Minimum value","type":"number"},"max":{"description":"Maximum value","type":"number"},"integer":{"description":"When true, only whole numbers are allowed","type":"boolean"},"prefix":{"$ref":"#/components/schemas/TranslationConfigOutput"},"postfix":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A number input field"},"NumberWithUnitField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"NUMBER_WITH_UNIT"},"defaultValue":{"anyOf":[{"type":"object","properties":{"numericValue":{"type":"number"},"unit":{"type":"string"}},"required":["numericValue","unit"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"The value of the option"},"label":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/TranslationConfigOutput"}],"description":"The label of the option"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}}},"required":["value","label"],"additionalProperties":false},"description":"A list of options for the unit select"},"configuration":{"type":"object","properties":{"min":{"description":"Minimum value of the number field","type":"number"},"max":{"description":"Maximum value of the number field","type":"number"},"numberFieldPlaceholder":{"description":"Placeholder for the number field","$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type","options"],"additionalProperties":false,"description":"A number with unit input field"},"TextAreaField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"TEXTAREA"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"default":{"rows":4},"type":"object","properties":{"maxLength":{"description":"Maximum length of the text","type":"number"},"rows":{"description":"Number of visible text lines","type":"number"},"cols":{"description":"Number of visible columns","type":"number"},"prefix":{"$ref":"#/components/schemas/TranslationConfigOutput"},"postfix":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A multiline text input"},"AgeField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"AGE"},"defaultValue":{"anyOf":[{"type":"number"},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"asOfDate":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},"prefix":{"$ref":"#/components/schemas/TranslationConfigOutput"},"postfix":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["asOfDate"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"An age input field which uses the current date as the asOfDate"},"DateField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"DATE"},"defaultValue":{"description":"Default date value(yyyy-MM-dd)","anyOf":[{"anyOf":[{"type":"object","properties":{"$$now":{"type":"boolean","const":true}},"required":["$$now"],"additionalProperties":false},{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date in the format YYYY-MM-DD"}]},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"notice":{"description":"Text to display above the date input","$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A date input (yyyy-MM-dd)"},"TimeField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"TIME"},"defaultValue":{"description":"Default time value (HH-mm)","anyOf":[{"anyOf":[{"type":"object","properties":{"$$now":{"type":"boolean","const":true}},"required":["$$now"],"additionalProperties":false},{"type":"string","pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$"}]},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"use12HourFormat":{"description":"Whether to use 12-hour format","type":"boolean"},"notice":{"description":"Text to display above the time input","$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A single time input (HH-mm)"},"DateRangeField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"DATE_RANGE"},"defaultValue":{"anyOf":[{"anyOf":[{"type":"object","properties":{"start":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date in the format YYYY-MM-DD"},"end":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date in the format YYYY-MM-DD"}},"required":["start","end"],"additionalProperties":false},{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date in the format YYYY-MM-DD"}],"description":"Date range with start and end dates in the format YYYY-MM-DD. Inclusive start, exclusive end."},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"notice":{"description":"Text to display above the date input","$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A date range input ({ start: yyyy-MM-dd, end: yyyy-MM-dd })"},"SelectDateRangeField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"SELECT_DATE_RANGE"},"defaultValue":{"anyOf":[{"type":"string","enum":["last7Days","last30Days","last90Days","last365Days"]},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","enum":["last7Days","last30Days","last90Days","last365Days"],"description":"The value of the option"},"label":{"description":"The label of the option","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["value","label"],"additionalProperties":false},"description":"A list of options"}},"required":["id","label","type","options"],"additionalProperties":false,"description":"A date range selection field"},"ImageViewField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"IMAGE_VIEW"},"defaultValue":{"type":"string","minLength":1},"configuration":{"type":"object","properties":{"alt":{"description":"Alternative text for the image","type":"string"},"width":{"description":"CSS width value for the image","type":"string"},"height":{"description":"CSS height value for the image","type":"string"},"textAlign":{"description":"Text alignment for positioning the image in its container","type":"string","enum":["left","center","right","start","end"]},"objectFit":{"description":"How the image should be resized to fit the container","type":"string","enum":["contain","cover","fill","none","scale-down"]}},"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A read-only image component for form pages"},"Paragraph":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"PARAGRAPH"},"configuration":{"default":{},"type":"object","properties":{"styles":{"type":"object","properties":{"hint":{"description":"When true, paragraph is styled as a hint with grey color","type":"boolean"},"textAlign":{"description":"Text alignment for the paragraph","type":"string","enum":["left","center","right","start","end"]}},"additionalProperties":false}},"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A read-only HTML <p> paragraph"},"Heading":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"HEADING"},"configuration":{"default":{},"type":"object","properties":{"styles":{"type":"object","properties":{"fontVariant":{"description":"Font variant to use for the paragraph text","type":"string","enum":["reg12","reg14","reg16","reg18","h4","h3"]},"textAlign":{"description":"Text alignment for the paragraph","type":"string","enum":["left","center","right","start","end"]}},"additionalProperties":false}},"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A read-only heading component for form pages"},"RadioGroup":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"RADIO_GROUP"},"defaultValue":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"The value of the option"},"label":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/TranslationConfigOutput"}],"description":"The label of the option"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}}},"required":["value","label"],"additionalProperties":false},"description":"A list of options"},"configuration":{"type":"object","properties":{"styles":{"type":"object","properties":{"size":{"type":"string","enum":["NORMAL","LARGE"]}},"additionalProperties":false}},"additionalProperties":false}},"required":["id","label","type","options"],"additionalProperties":false,"description":"A grouped radio button field"},"BulletList":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"BULLET_LIST"},"items":{"type":"array","items":{"$ref":"#/components/schemas/TranslationConfigOutput"},"description":"A list of items"},"configuration":{"default":{},"type":"object","properties":{"styles":{"type":"object","properties":{"fontVariant":{"type":"string","enum":["reg12","reg14","reg16","reg18","h4","h3","h2","h1"]}},"additionalProperties":false}},"additionalProperties":false}},"required":["id","label","type","items","configuration"],"additionalProperties":false,"description":"A list of bullet points"},"PageHeader":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"PAGE_HEADER"}},"required":["id","label","type"],"additionalProperties":false,"description":"A read-only header component for form pages"},"Select":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"SELECT"},"defaultValue":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"The value of the option"},"label":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/TranslationConfigOutput"}],"description":"The label of the option"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}}},"required":["value","label"],"additionalProperties":false},"description":"A list of options"},"noOptionsMessage":{"description":"\n    A translation configuration object used to display a message when no options are available.\n    It must follow the shape: { id: string; defaultMessage: string; description?: string }.\n    The message is rendered via intl.formatMessage(noOptionsMessage, { input }),\n    where 'input' represents the text entered in the Select field.\n    You can reference this variable in your message, for example:\n    { ..., defaultMessage: \"'{input}' is not listed among the health facilities.\" }\n  ","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["id","label","type","options"],"additionalProperties":false,"description":"A select input field"},"NameField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"NAME"},"defaultValue":{"anyOf":[{"type":"object","properties":{"firstname":{"anyOf":[{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false},{"type":"string","minLength":1}]},"middlename":{"anyOf":[{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false},{"type":"string","minLength":1}]},"surname":{"anyOf":[{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false},{"type":"string","minLength":1}]}},"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"default":{"name":{"firstname":{"required":true},"surname":{"required":true}}},"type":"object","properties":{"name":{"default":{"firstname":{"required":true},"surname":{"required":true}},"type":"object","properties":{"firstname":{"type":"object","properties":{"required":{"default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"label":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false},"middlename":{"type":"object","properties":{"required":{"default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"label":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false},"surname":{"type":"object","properties":{"required":{"default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"label":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"additionalProperties":false},"order":{"type":"array","items":{"type":"string","enum":["firstname","middlename","surname"]}},"maxLength":{"description":"Maximum length of the text","type":"number"},"prefix":{"$ref":"#/components/schemas/TranslationConfigOutput"},"postfix":{"$ref":"#/components/schemas/TranslationConfigOutput"},"showParentFieldError":{"description":"If true, shows the parent field error and hides the subfield error","default":false,"type":"boolean"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A field for entering a persons name"},"PhoneField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"type":{"type":"string","const":"PHONE"}},"required":["id","label","type"],"additionalProperties":false,"description":"A field for entering a phone number"},"IdField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"type":{"type":"string","const":"ID"}},"required":["id","label","type"],"additionalProperties":false,"description":"A field for entering an ID"},"Checkbox":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"CHECKBOX"},"defaultValue":{"default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]}},"required":["id","label","type","defaultValue"],"additionalProperties":false,"description":"A boolean checkbox field"},"File":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"FILE"},"defaultValue":{"anyOf":[{"type":"object","properties":{"path":{"type":"string","description":"A relative path within the S3 bucket, never starting with /. e.g. document-id.jpg or directory/document-id.jpg. The document service constructs the full /bucket/path internally."},"originalFilename":{"type":"string"},"type":{"type":"string"}},"required":["path","originalFilename","type"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"default":{"maxFileSize":5242880},"type":"object","properties":{"maxFileSize":{"default":5242880,"type":"number","description":"Maximum file size in bytes"},"acceptedFileTypes":{"description":"List of allowed file formats for the signature","type":"array","items":{"type":"string","enum":["image/png","image/jpg","image/jpeg","image/svg+xml","application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.oasis.opendocument.text"]}},"maxImageSize":{"type":"object","properties":{"targetSize":{"type":"object","properties":{"width":{"type":"number"},"height":{"type":"number"}},"required":["width","height"],"additionalProperties":false}},"required":["targetSize"],"additionalProperties":false},"style":{"type":"object","properties":{"width":{"description":"Whether the file upload button should take the full width of the container or not","type":"string","enum":["full","auto"]}},"additionalProperties":false},"fileName":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["maxFileSize"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A file upload field"},"Country":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"COUNTRY"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"optionOverrides":{"description":"Conditionals for specific countries. Countries not listed are always shown and enabled.","type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"The value of the option"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}}},"required":["value"],"additionalProperties":false}}},"required":["id","label","type"],"additionalProperties":false,"description":"A field for selecting a country"},"AdministrativeAreaField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"ADMINISTRATIVE_AREA"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"partOf":{"description":"Parent location","type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false},"type":{"type":"string","enum":["ADMIN_STRUCTURE","HEALTH_FACILITY","CRVS_OFFICE"]},"allowedLocations":{"description":"Limits which location options are selectable depending on user jurisdiction and location.","type":"object","properties":{"$jurisdiction":{"anyOf":[{"type":"string","enum":["administrativeArea","location","all"],"description":"Filters based on user jurisdiction relative to their office location in hierarchy."},{"type":"object","properties":{"$scope":{"type":"string","enum":["organisation.read-locations","user.read","user.create","user.edit","user.search","record.search","record.create","record.read","record.declare","record.notify","record.edit","record.reject","record.archive","record.unarchive","record.review-duplicates","record.register","record.print-certified-copies","record.request-correction","record.correct","record.unassign-others","record.custom-action","record.action.accept","record.action.reject","bypassratelimit","record.reindex","user.data-seeding","integration.create","integration.audit.read","record.import","config.update-all","location.edit","attachment.upload","profile.electronic-signature","user.read-only-my-audit","performance.read","performance.read-dashboards","performance.vital-statistics-export","workqueue","dashboard.view"]},"$option":{"type":"string","enum":["event","placeOfEvent","createdBy","createdIn","notifiedIn","notifiedBy","declaredIn","declaredBy","status","registeredIn","registeredBy","flags","accessLevel","role","ids"]}},"required":["$scope","$option"],"additionalProperties":false}]}},"required":["$jurisdiction"],"additionalProperties":false},"activeOnly":{"description":"Offer only locations that are active at the resolved anchor date (today, or the date of event when anchorToDateOfEvent is set); inactive or not-yet-effective versions are excluded.","type":"boolean"},"anchorToDateOfEvent":{"description":"Resolve selectable/displayed versions against the event's date of event (falling back to the record's creation date when empty) instead of today. Does not by itself exclude inactive versions; combine with activeOnly for that.","type":"boolean"}},"required":["type"],"additionalProperties":false,"description":"Administrative area options"}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"Administrative area input field"},"Divider":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"DIVIDER"}},"required":["id","label","type"],"additionalProperties":false,"description":"A horizontal line divider"},"LocationInput":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"LOCATION"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"locationTypes":{"description":"Types of the locations that are available for selection.","type":"array","items":{"type":"string"}},"allowedLocations":{"description":"Limits which location options are selectable depending on user jurisdiction and location.","type":"object","properties":{"$jurisdiction":{"anyOf":[{"type":"string","enum":["administrativeArea","location","all"],"description":"Filters based on user jurisdiction relative to their office location in hierarchy."},{"type":"object","properties":{"$scope":{"type":"string","enum":["organisation.read-locations","user.read","user.create","user.edit","user.search","record.search","record.create","record.read","record.declare","record.notify","record.edit","record.reject","record.archive","record.unarchive","record.review-duplicates","record.register","record.print-certified-copies","record.request-correction","record.correct","record.unassign-others","record.custom-action","record.action.accept","record.action.reject","bypassratelimit","record.reindex","user.data-seeding","integration.create","integration.audit.read","record.import","config.update-all","location.edit","attachment.upload","profile.electronic-signature","user.read-only-my-audit","performance.read","performance.read-dashboards","performance.vital-statistics-export","workqueue","dashboard.view"]},"$option":{"type":"string","enum":["event","placeOfEvent","createdBy","createdIn","notifiedIn","notifiedBy","declaredIn","declaredBy","status","registeredIn","registeredBy","flags","accessLevel","role","ids"]}},"required":["$scope","$option"],"additionalProperties":false}]}},"required":["$jurisdiction"],"additionalProperties":false},"activeOnly":{"description":"Offer only locations that are active at the resolved anchor date (today, or the date of event when anchorToDateOfEvent is set); inactive or not-yet-effective versions are excluded.","type":"boolean"},"anchorToDateOfEvent":{"description":"Resolve selectable/displayed versions against the event's date of event (falling back to the record's creation date when empty) instead of today. Does not by itself exclude inactive versions; combine with activeOnly for that.","type":"boolean"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A field for selecting a location"},"SignatureField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"SIGNATURE"},"signaturePromptLabel":{"description":"Title of the signature modal","$ref":"#/components/schemas/TranslationConfigOutput"},"defaultValue":{"anyOf":[{"type":"object","properties":{"path":{"type":"string","description":"A relative path within the S3 bucket, never starting with /. e.g. document-id.jpg or directory/document-id.jpg. The document service constructs the full /bucket/path internally."},"originalFilename":{"type":"string"},"type":{"type":"string"}},"required":["path","originalFilename","type"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"default":{"maxFileSize":5242880},"type":"object","properties":{"maxFileSize":{"default":5242880,"type":"number","description":"Maximum file size in bytes"},"acceptedFileTypes":{"description":"List of allowed file formats for the signature","type":"array","items":{"type":"string","enum":["image/png","image/jpg","image/jpeg","image/svg+xml","application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.oasis.opendocument.text"]}}},"required":["maxFileSize"],"additionalProperties":false}},"required":["id","label","type","signaturePromptLabel","configuration"],"additionalProperties":false,"description":"A signature input field"},"EmailField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"EMAIL"},"configuration":{"default":{"maxLength":255},"type":"object","properties":{"maxLength":{"description":"Maximum length of the text","type":"number"}},"additionalProperties":false},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]}},"required":["id","label","type"],"additionalProperties":false,"description":"An email input field"},"FileUploadWithOptions":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"FILE_WITH_OPTIONS"},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"The value of the option"},"label":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/TranslationConfigOutput"}],"description":"The label of the option"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}}},"required":["value","label"],"additionalProperties":false},"description":"A list of options"},"defaultValue":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"A relative path within the S3 bucket, never starting with /. e.g. document-id.jpg or directory/document-id.jpg. The document service constructs the full /bucket/path internally."},"originalFilename":{"type":"string"},"type":{"type":"string"},"option":{"type":"string"}},"required":["path","originalFilename","type","option"],"additionalProperties":false}},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"default":{"maxFileSize":5242880},"type":"object","properties":{"maxFileSize":{"default":5242880,"type":"number","description":"Maximum file size in bytes"},"maxImageSize":{"type":"object","properties":{"targetSize":{"type":"object","properties":{"width":{"type":"number"},"height":{"type":"number"}},"required":["width","height"],"additionalProperties":false}},"required":["targetSize"],"additionalProperties":false},"acceptedFileTypes":{"description":"List of allowed file formats for the signature","type":"array","items":{"type":"string","enum":["image/png","image/jpg","image/jpeg","image/svg+xml","application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.oasis.opendocument.text"]}}},"required":["maxFileSize"],"additionalProperties":false}},"required":["id","label","type","options","configuration"],"additionalProperties":false,"description":"A field for uploading files with file type options"},"DataField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"DATA"},"configuration":{"type":"object","properties":{"subtitle":{"$ref":"#/components/schemas/TranslationConfigOutput"},"data":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","description":"ID for the data entry."},"label":{"$ref":"#/components/schemas/TranslationConfigOutput"},"value":{"anyOf":[{"anyOf":[{"$ref":"#/components/schemas/TranslationConfigOutput"},{"type":"string"}]},{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}]}},"required":["id","label","value"],"additionalProperties":false,"description":"Static data entry"},{"type":"object","properties":{"fieldId":{"type":"string"}},"required":["fieldId"],"additionalProperties":false}],"description":"Data entry can be either a static data entry, or a reference to another field in the current form or the declaration."}}},"required":["data"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A field for displaying a table of read-only data"},"ButtonField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"BUTTON"},"defaultValue":{"anyOf":[{"type":"number"},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"icon":{"description":"Icon for the button. You can find icons from OpenCRVS UI-Kit.","type":"string"},"loading":{"description":"Whether the button is in a loading state and shows a spinner","type":"boolean"},"buttonSize":{"description":"Size of the button.","type":"string","enum":["small","medium","large"]},"buttonType":{"description":"Type of the button.","type":"string","enum":["primary","secondary","tertiary","positive","negative","secondaryNegative","icon","iconPrimary"]},"textColor":{"description":"Color of the text.","type":"string","enum":["primary","copy"]},"textVariant":{"description":"Variant of the text.","type":"string","enum":["bold14","reg14"]},"text":{"description":"Text to display on the button","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["text"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A generic button that can be used to trigger an action"},"AlphaPrintButton":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"ALPHA_PRINT_BUTTON"},"configuration":{"type":"object","properties":{"template":{"type":"string","description":"Template ID from countryconfig templates to use for printing"},"buttonLabel":{"description":"Label for the print button","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["template"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"An experimental print button field for printing certificates during the declaration process"},"HttpField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"HTTP"},"defaultValue":{"anyOf":[{"type":"object","properties":{"loading":{"type":"boolean"},"error":{"anyOf":[{"type":"object","properties":{"statusCode":{"type":"number"},"message":{"type":"string"}},"required":["statusCode","message"],"additionalProperties":false},{"type":"null"}]},"data":{}},"required":["loading","data"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"trigger":{"description":"Reference to the field that triggers the HTTP request when its value changes. If not provided, the HTTP request is triggered once on component mount.","type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false},"url":{"type":"string","description":"URL to send the HTTP request to"},"method":{"type":"string","enum":["GET","POST","PUT","DELETE"]},"headers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"body":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"errorValue":{"description":"Value to set if the request fails"},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}]}},"timeout":{"default":15000,"description":"Request timeout in milliseconds","type":"number"}},"required":["url","method","timeout"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"Makes a background HTTP request to an external service and stores the response so other fields can use it. Has no visible UI — pair with LOADER to show request status."},"AutocompleteField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"AUTOCOMPLETE"},"configuration":{"type":"object","properties":{"url":{"type":"string","description":"URL to fetch autocomplete suggestions from. This should be a country config server endpoint."},"method":{"default":"GET","type":"string","enum":["GET","POST"]},"defaultOptions":{"description":"Manual entry is supported through configuration, allowing users to provide values not currently represented in the dataset.","type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"type":"string"}},"required":["label","value"],"additionalProperties":false}}},"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"Generic autocomplete component designed for use with large dictionary-based datasets. The component supports dynamic retrieval of options from configurable data sources and is intended for datasets that may contain tens or hundreds of thousands of records."},"LinkButtonField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"LINK_BUTTON"},"configuration":{"type":"object","properties":{"url":{"type":"string","description":"URL to open"},"text":{"description":"Text to display on the button","$ref":"#/components/schemas/TranslationConfigOutput"},"icon":{"description":"Icon for the button. You can find icons from OpenCRVS UI-Kit.","type":"string"}},"required":["url","text"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A button that opens a URL link"},"VerificationStatus":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"VERIFICATION_STATUS"},"defaultValue":{"anyOf":[{"type":"string","enum":["verified","authenticated","failed","pending"]},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"status":{"description":"Text to display on the status pill.","$ref":"#/components/schemas/TranslationConfigOutput"},"description":{"description":"Explaining text on the banner in form.","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["status","description"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"Displays a verification state (e.g. ID verified / pending). Often paired with ID_READER — it can read its value off an ID_READER rather than holding its own."},"QrReaderField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"QR_READER"},"defaultValue":{"anyOf":[{"type":"object","properties":{"data":{}},"required":["data"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"validator":{"$ref":"#/components/schemas/QrReaderFieldValidator"}},"required":["validator"],"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"QR code reader field, including optional JSON Schema validator."},"QrReaderFieldValidator":{"description":"JSON Schema to validate the scanned QR code data against before populating the form fields."},"IdReaderField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"ID_READER"},"defaultValue":{"anyOf":[{"type":"object","properties":{"data":{}},"required":["data"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"methods":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/QrReaderField"},{"$ref":"#/components/schemas/LinkButtonField"}],"description":"Methods for reading an ID"}}},"required":["id","label","type","methods"],"additionalProperties":false,"description":"A wrapper around nested form fields, specifically QR_READER and LINK_BUTTON. It can hold the QR_READERs value."},"QueryParamReaderField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"QUERY_PARAM_READER"},"configuration":{"type":"object","properties":{"pickParams":{"type":"array","items":{"type":"string"},"description":"List of query parameters to read from the URL"}},"required":["pickParams"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A field that maps URL query params into form values and clears them afterward"},"LoaderField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"description":"Loader field does not show a label by default","default":true,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"LOADER"},"variant":{"default":"default","type":"string","enum":["default","highlighted"]},"configuration":{"type":"object","properties":{"text":{"description":"Display text above the loading spinner","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["text"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A non-interactive field that indicates an in progress operation in form"},"SearchField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"SEARCH"},"defaultValue":{"anyOf":[{"type":"object","properties":{"loading":{"type":"boolean"},"error":{"anyOf":[{"type":"object","properties":{"statusCode":{"type":"number"},"message":{"type":"string"}},"required":["statusCode","message"],"additionalProperties":false},{"type":"null"}]},"data":{}},"required":["loading","data"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"query":{"default":{"type":"and","clauses":[{"eventType":"tennis-club-membership","status":{"type":"anyOf","terms":["CREATED","NOTIFIED","DECLARED","REGISTERED","ARCHIVED"]},"updatedAt":{"type":"range","gte":"2025-05-22","lte":"2025-05-29"},"data":{}}]},"$ref":"#/components/schemas/QueryTypeOutput"},"limit":{"default":100,"type":"number"},"offset":{"default":0,"type":"number"},"validation":{"$ref":"#/components/schemas/ValidationConfig"},"indicators":{"type":"object","properties":{"loading":{"description":"Text to display while the search is in progress","$ref":"#/components/schemas/TranslationConfigOutput"},"offline":{"description":"Text to display when the application is offline","$ref":"#/components/schemas/TranslationConfigOutput"},"noResultsError":{"description":"Text to display when no results are found during the search","$ref":"#/components/schemas/TranslationConfigOutput"},"httpError":{"description":"Text to display when there is an HTTP error during the search","$ref":"#/components/schemas/TranslationConfigOutput"},"confirmButton":{"$ref":"#/components/schemas/TranslationConfigOutput"},"clearButton":{"$ref":"#/components/schemas/TranslationConfigOutput"},"clearModal":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/TranslationConfigOutput"},"description":{"$ref":"#/components/schemas/TranslationConfigOutput"},"cancel":{"$ref":"#/components/schemas/TranslationConfigOutput"},"confirm":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false},"ok":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["query","limit","offset","validation"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A search input field"},"QueryTypeOutput":{"type":"object","properties":{"type":{"anyOf":[{"type":"string","const":"and"},{"type":"string","const":"or"}],"default":"and"},"clauses":{"minItems":1,"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/QueryExpressionOutput"},{"$ref":"#/components/schemas/QueryTypeOutput"}]},"default":[{"eventType":"tennis-club-membership","status":{"type":"anyOf","terms":["CREATED","NOTIFIED","DECLARED","REGISTERED","ARCHIVED"]},"updatedAt":{"type":"range","gte":"2025-05-22","lte":"2025-05-29"},"data":{}}]}},"required":["type","clauses"],"additionalProperties":false},"QueryExpressionOutput":{"type":"object","properties":{"id":{"type":"string"},"eventType":{"type":"string"},"status":{"anyOf":[{"$ref":"#/components/schemas/AnyOfStatusOutput"},{"$ref":"#/components/schemas/ExactStatusOutput"}]},"createdAt":{"$ref":"#/components/schemas/DateConditionOutput"},"updatedAt":{"$ref":"#/components/schemas/DateConditionOutput"},"legalStatuses.DECLARED.createdAtLocation":{"anyOf":[{"$ref":"#/components/schemas/WithinOutput"},{"type":"null"}]},"legalStatuses.DECLARED.createdByRole":{"$ref":"#/components/schemas/AnyOfOutput"},"legalStatuses.REGISTERED.acceptedAt":{"$ref":"#/components/schemas/DateConditionOutput"},"legalStatuses.REGISTERED.createdAtLocation":{"anyOf":[{"$ref":"#/components/schemas/WithinOutput"},{"type":"null"}]},"legalStatuses.REGISTERED.createdByRole":{"$ref":"#/components/schemas/AnyOfOutput"},"legalStatuses.REGISTERED.registrationNumber":{"$ref":"#/components/schemas/ExactOutput"},"createdAtLocation":{"anyOf":[{"$ref":"#/components/schemas/WithinOutput"},{"$ref":"#/components/schemas/ExactOutput"}]},"updatedAtLocation":{"anyOf":[{"$ref":"#/components/schemas/WithinOutput"},{"$ref":"#/components/schemas/ExactOutput"}]},"assignedTo":{"$ref":"#/components/schemas/ExactOutput"},"createdByUserType":{"$ref":"#/components/schemas/ExactUserTypeOutput"},"updatedByUserRole":{"$ref":"#/components/schemas/ExactOutput"},"createdBy":{"$ref":"#/components/schemas/ExactOutput"},"updatedBy":{"$ref":"#/components/schemas/ExactOutput"},"trackingId":{"$ref":"#/components/schemas/ExactOutput"},"flags":{"$ref":"#/components/schemas/ContainsFlagsOutput"},"data":{"$ref":"#/components/schemas/QueryInputOutput"}},"additionalProperties":false},"AnyOfStatusOutput":{"type":"object","properties":{"type":{"type":"string","const":"anyOf"},"terms":{"type":"array","items":{"type":"string","enum":["CREATED","NOTIFIED","DECLARED","REGISTERED","ARCHIVED"]}}},"required":["type","terms"],"additionalProperties":false},"ExactStatusOutput":{"type":"object","properties":{"type":{"type":"string","const":"exact"},"term":{"type":"string","enum":["CREATED","NOTIFIED","DECLARED","REGISTERED","ARCHIVED"]}},"required":["type","term"],"additionalProperties":false},"DateConditionOutput":{"anyOf":[{"$ref":"#/components/schemas/ExactDateOutput"},{"$ref":"#/components/schemas/RangeDateOutput"},{"$ref":"#/components/schemas/TimePeriodOutput"}]},"ExactDateOutput":{"type":"object","properties":{"type":{"type":"string","const":"exact"},"term":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}]}},"required":["type","term"],"additionalProperties":false},"RangeDateOutput":{"type":"object","properties":{"type":{"type":"string","const":"range"},"gte":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}]},"lte":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}]}},"required":["type","gte","lte"],"additionalProperties":false},"TimePeriodOutput":{"type":"object","properties":{"type":{"type":"string","const":"timePeriod"},"term":{"type":"string","enum":["last7Days","last30Days","last90Days","last365Days"]}},"required":["type","term"],"additionalProperties":false},"WithinOutput":{"type":"object","properties":{"type":{"type":"string","const":"within"},"location":{"type":"string"}},"required":["type","location"],"additionalProperties":false},"AnyOfOutput":{"type":"object","properties":{"type":{"type":"string","const":"anyOf"},"terms":{"type":"array","items":{"type":"string"}}},"required":["type","terms"],"additionalProperties":false},"ExactOutput":{"type":"object","properties":{"type":{"type":"string","const":"exact"},"term":{"type":"string"}},"required":["type","term"],"additionalProperties":false},"ExactUserTypeOutput":{"type":"object","properties":{"type":{"type":"string","const":"exact"},"term":{"type":"string","enum":["user","system"]}},"required":["type","term"],"additionalProperties":false},"ContainsFlagsOutput":{"type":"object","properties":{"anyOf":{"type":"array","items":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"string","enum":["incomplete","rejected","correction-requested","potential-duplicate","edit-in-progress"]}]},{"type":"string","description":"Custom flag identifier defined by the country config."}]}},"noneOf":{"type":"array","items":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"string","enum":["incomplete","rejected","correction-requested","potential-duplicate","edit-in-progress"]}]},{"type":"string","description":"Custom flag identifier defined by the country config."}]}},"allOf":{"type":"array","items":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"string","enum":["incomplete","rejected","correction-requested","potential-duplicate","edit-in-progress"]}]},{"type":"string","description":"Custom flag identifier defined by the country config."}]}}},"additionalProperties":false},"QueryInputOutput":{"anyOf":[{"oneOf":[{"$ref":"#/components/schemas/FuzzyOutput"},{"$ref":"#/components/schemas/ExactOutput"},{"$ref":"#/components/schemas/RangeOutput"},{"$ref":"#/components/schemas/WithinOutput"},{"$ref":"#/components/schemas/AnyOfOutput"}],"type":"object","discriminator":{"propertyName":"type","mapping":{"fuzzy":"#/components/schemas/FuzzyOutput","exact":"#/components/schemas/ExactOutput","range":"#/components/schemas/RangeOutput","within":"#/components/schemas/WithinOutput","anyOf":"#/components/schemas/AnyOfOutput"}}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/QueryInputOutput"}}]},"FuzzyOutput":{"type":"object","properties":{"type":{"type":"string","const":"fuzzy"},"term":{"type":"string"}},"required":["type","term"],"additionalProperties":false},"RangeOutput":{"type":"object","properties":{"type":{"type":"string","const":"range"},"gte":{"type":"string"},"lte":{"type":"string"}},"required":["type","gte","lte"],"additionalProperties":false},"CustomField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"CUSTOM"},"defaultValue":{},"src":{"type":"string","description":"Module source path for the custom field component"},"configuration":{}},"required":["id","label","type","src"],"additionalProperties":false,"description":"An expiremental custom field that is defined by a module source path"},"HiddenField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"default":false,"type":"boolean"},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"ALPHA_HIDDEN"},"defaultValue":{"type":"string"}},"required":["id","label","type"],"additionalProperties":false,"description":"A non-interactive, hidden field that only hold a value in the form"},"UserRoleField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"USER_ROLE"},"defaultValue":{"type":"string"}},"required":["id","label","type"],"additionalProperties":false,"description":"A select dropdown that is automatically populated with available user roles"}}}}
```

## The DuplicateDetectedActionConfig object

```json
{"openapi":"3.1.0","info":{"title":"OpenCRVS API","version":"2.0.0"},"components":{"schemas":{"DuplicateDetectedActionConfig":{"type":"object","properties":{"label":{"description":"DUPLICATE_DETECTED is system-generated and never shown as a button, so it has no label.","not":{}},"flags":{"default":[],"description":"Flag actions which are executed when the action is performed.","type":"array","items":{"$ref":"#/components/schemas/ActionFlagConfig"}},"supportingCopy":{"not":{}},"icon":{"description":"DUPLICATE_DETECTED is system-generated and never shown as a button, so it has no icon.","not":{}},"conditionals":{"description":"DUPLICATE_DETECTED is system-generated and never shown as a button, so it cannot be disabled or hidden with conditionals.","not":{}},"type":{"type":"string","const":"DUPLICATE_DETECTED"}},"required":["flags","type"],"additionalProperties":false,"description":"Configuration for the system-generated duplicate-detection action. Never shown as a button, so it only supports flags — not label, icon, or conditionals."},"ActionFlagConfig":{"type":"object","properties":{"id":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"string","enum":["incomplete","rejected","correction-requested","potential-duplicate","edit-in-progress"]}]},{"type":"string","description":"Custom flag identifier defined by the country config."}]},"operation":{"type":"string","enum":["add","remove"],"description":"Operation to perform on the flag."},"conditional":{"description":"When conditional is met, the operation is performed on the flag. If not provided, the operation is performed unconditionally.","$ref":"#/components/schemas/Conditional"}},"required":["id","operation"],"additionalProperties":false,"description":"Add or remove operation applied to a flag when the parent action is accepted. Optionally gated by a conditional."},"Conditional":{"description":"JSON schema conditional configuration"}}}}
```

## The MarkAsDuplicateActionConfig object

```json
{"openapi":"3.1.0","info":{"title":"OpenCRVS API","version":"2.0.0"},"components":{"schemas":{"MarkAsDuplicateActionConfig":{"type":"object","properties":{"label":{"description":"Human readable description of the action","$ref":"#/components/schemas/TranslationConfigOutput"},"flags":{"default":[],"description":"Flag actions which are executed when the action is performed.","type":"array","items":{"$ref":"#/components/schemas/ActionFlagConfig"}},"supportingCopy":{"description":"Text displayed on the confirmation dialog","$ref":"#/components/schemas/TranslationConfigOutput"},"icon":{"type":"string","description":"Icon representing the action"},"conditionals":{"description":"Conditionals which can disable or hide actions.","type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}},"type":{"type":"string","const":"MARK_AS_DUPLICATE"}},"required":["label","flags","type"],"additionalProperties":false,"description":"Configuration for marking a record as a duplicate."},"TranslationConfigOutput":{"type":"object","properties":{"id":{"type":"string","description":"The identifier of the translation referred in translation CSV files"},"defaultMessage":{"type":"string","description":"Default translation message"},"description":{"type":"string","description":"Describe the translation for a translator to be able to identify it."}},"required":["id","defaultMessage","description"],"additionalProperties":false,"description":"Translation configuration"},"ActionFlagConfig":{"type":"object","properties":{"id":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"string","enum":["incomplete","rejected","correction-requested","potential-duplicate","edit-in-progress"]}]},{"type":"string","description":"Custom flag identifier defined by the country config."}]},"operation":{"type":"string","enum":["add","remove"],"description":"Operation to perform on the flag."},"conditional":{"description":"When conditional is met, the operation is performed on the flag. If not provided, the operation is performed unconditionally.","$ref":"#/components/schemas/Conditional"}},"required":["id","operation"],"additionalProperties":false,"description":"Add or remove operation applied to a flag when the parent action is accepted. Optionally gated by a conditional."},"Conditional":{"description":"JSON schema conditional configuration"},"ActionConditional":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"SHOW"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'SHOW' conditional is defined, the component is shown to the user only if the condition is met"},{"type":"object","properties":{"type":{"type":"string","const":"ENABLE"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'ENABLE' conditional is defined, the component is enabled only if the condition is met"}],"description":"Conditional gating whether an action is shown (SHOW) or enabled (ENABLE). When omitted from an action, the action is shown and enabled for everyone.","type":"object"}}}}
```

## The MarkAsNotDuplicateActionConfig object

```json
{"openapi":"3.1.0","info":{"title":"OpenCRVS API","version":"2.0.0"},"components":{"schemas":{"MarkAsNotDuplicateActionConfig":{"type":"object","properties":{"label":{"description":"Human readable description of the action","$ref":"#/components/schemas/TranslationConfigOutput"},"flags":{"default":[],"description":"Flag actions which are executed when the action is performed.","type":"array","items":{"$ref":"#/components/schemas/ActionFlagConfig"}},"supportingCopy":{"description":"Text displayed on the confirmation dialog","$ref":"#/components/schemas/TranslationConfigOutput"},"icon":{"type":"string","description":"Icon representing the action"},"conditionals":{"description":"Conditionals which can disable or hide actions.","type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}},"type":{"type":"string","const":"MARK_AS_NOT_DUPLICATE"}},"required":["label","flags","type"],"additionalProperties":false,"description":"Configuration for marking a record as not a duplicate, after it was previously flagged as one."},"TranslationConfigOutput":{"type":"object","properties":{"id":{"type":"string","description":"The identifier of the translation referred in translation CSV files"},"defaultMessage":{"type":"string","description":"Default translation message"},"description":{"type":"string","description":"Describe the translation for a translator to be able to identify it."}},"required":["id","defaultMessage","description"],"additionalProperties":false,"description":"Translation configuration"},"ActionFlagConfig":{"type":"object","properties":{"id":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"string","enum":["incomplete","rejected","correction-requested","potential-duplicate","edit-in-progress"]}]},{"type":"string","description":"Custom flag identifier defined by the country config."}]},"operation":{"type":"string","enum":["add","remove"],"description":"Operation to perform on the flag."},"conditional":{"description":"When conditional is met, the operation is performed on the flag. If not provided, the operation is performed unconditionally.","$ref":"#/components/schemas/Conditional"}},"required":["id","operation"],"additionalProperties":false,"description":"Add or remove operation applied to a flag when the parent action is accepted. Optionally gated by a conditional."},"Conditional":{"description":"JSON schema conditional configuration"},"ActionConditional":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"SHOW"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'SHOW' conditional is defined, the component is shown to the user only if the condition is met"},{"type":"object","properties":{"type":{"type":"string","const":"ENABLE"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'ENABLE' conditional is defined, the component is enabled only if the condition is met"}],"description":"Conditional gating whether an action is shown (SHOW) or enabled (ENABLE). When omitted from an action, the action is shown and enabled for everyone.","type":"object"}}}}
```

## The EditActionConfig object

```json
{"openapi":"3.1.0","info":{"title":"OpenCRVS API","version":"2.0.0"},"components":{"schemas":{"EditActionConfig":{"type":"object","properties":{"label":{"description":"Human readable description of the action","$ref":"#/components/schemas/TranslationConfigOutput"},"flags":{"default":[],"description":"Flag actions which are executed when the action is performed.","type":"array","items":{"$ref":"#/components/schemas/ActionFlagConfig"}},"supportingCopy":{"description":"Text displayed on the confirmation dialog","$ref":"#/components/schemas/TranslationConfigOutput"},"icon":{"type":"string","description":"Icon representing the action"},"conditionals":{"description":"Conditionals which can disable or hide actions.","type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}},"type":{"type":"string","const":"EDIT"},"dialogCopy":{"type":"object","properties":{"notify":{"description":"Confirmation text for the notify with edits action","$ref":"#/components/schemas/TranslationConfigOutput"},"declare":{"description":"Confirmation text for the declare with edits action","$ref":"#/components/schemas/TranslationConfigOutput"},"register":{"description":"Confirmation text for the register with edits action","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["notify","declare","register"],"additionalProperties":false}},"required":["label","flags","type","dialogCopy"],"additionalProperties":false,"description":"Configuration for editing a record before registration."},"TranslationConfigOutput":{"type":"object","properties":{"id":{"type":"string","description":"The identifier of the translation referred in translation CSV files"},"defaultMessage":{"type":"string","description":"Default translation message"},"description":{"type":"string","description":"Describe the translation for a translator to be able to identify it."}},"required":["id","defaultMessage","description"],"additionalProperties":false,"description":"Translation configuration"},"ActionFlagConfig":{"type":"object","properties":{"id":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"string","enum":["incomplete","rejected","correction-requested","potential-duplicate","edit-in-progress"]}]},{"type":"string","description":"Custom flag identifier defined by the country config."}]},"operation":{"type":"string","enum":["add","remove"],"description":"Operation to perform on the flag."},"conditional":{"description":"When conditional is met, the operation is performed on the flag. If not provided, the operation is performed unconditionally.","$ref":"#/components/schemas/Conditional"}},"required":["id","operation"],"additionalProperties":false,"description":"Add or remove operation applied to a flag when the parent action is accepted. Optionally gated by a conditional."},"Conditional":{"description":"JSON schema conditional configuration"},"ActionConditional":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"SHOW"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'SHOW' conditional is defined, the component is shown to the user only if the condition is met"},{"type":"object","properties":{"type":{"type":"string","const":"ENABLE"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'ENABLE' conditional is defined, the component is enabled only if the condition is met"}],"description":"Conditional gating whether an action is shown (SHOW) or enabled (ENABLE). When omitted from an action, the action is shown and enabled for everyone.","type":"object"}}}}
```

## The RejectActionConfig object

```json
{"openapi":"3.1.0","info":{"title":"OpenCRVS API","version":"2.0.0"},"components":{"schemas":{"RejectActionConfig":{"type":"object","properties":{"label":{"description":"Human readable description of the action","$ref":"#/components/schemas/TranslationConfigOutput"},"flags":{"default":[],"description":"Flag actions which are executed when the action is performed.","type":"array","items":{"$ref":"#/components/schemas/ActionFlagConfig"}},"supportingCopy":{"description":"Text displayed on the confirmation dialog","$ref":"#/components/schemas/TranslationConfigOutput"},"icon":{"type":"string","description":"Icon representing the action"},"conditionals":{"description":"Conditionals which can disable or hide actions.","type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}},"type":{"type":"string","const":"REJECT"},"form":{"description":"Fields rendered on the action confirmation dialog. Submitted values are stored in the action annotation and shown in the audit history.","type":"array","items":{"$ref":"#/components/schemas/FieldConfig"}}},"required":["label","flags","type"],"additionalProperties":false,"description":"Configuration for rejecting a record before registration."},"TranslationConfigOutput":{"type":"object","properties":{"id":{"type":"string","description":"The identifier of the translation referred in translation CSV files"},"defaultMessage":{"type":"string","description":"Default translation message"},"description":{"type":"string","description":"Describe the translation for a translator to be able to identify it."}},"required":["id","defaultMessage","description"],"additionalProperties":false,"description":"Translation configuration"},"ActionFlagConfig":{"type":"object","properties":{"id":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"string","enum":["incomplete","rejected","correction-requested","potential-duplicate","edit-in-progress"]}]},{"type":"string","description":"Custom flag identifier defined by the country config."}]},"operation":{"type":"string","enum":["add","remove"],"description":"Operation to perform on the flag."},"conditional":{"description":"When conditional is met, the operation is performed on the flag. If not provided, the operation is performed unconditionally.","$ref":"#/components/schemas/Conditional"}},"required":["id","operation"],"additionalProperties":false,"description":"Add or remove operation applied to a flag when the parent action is accepted. Optionally gated by a conditional."},"Conditional":{"description":"JSON schema conditional configuration"},"ActionConditional":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"SHOW"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'SHOW' conditional is defined, the component is shown to the user only if the condition is met"},{"type":"object","properties":{"type":{"type":"string","const":"ENABLE"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'ENABLE' conditional is defined, the component is enabled only if the condition is met"}],"description":"Conditional gating whether an action is shown (SHOW) or enabled (ENABLE). When omitted from an action, the action is shown and enabled for everyone.","type":"object"},"FieldConfig":{"oneOf":[{"$ref":"#/components/schemas/FieldGroup"},{"$ref":"#/components/schemas/Address"},{"$ref":"#/components/schemas/TextField"},{"$ref":"#/components/schemas/NumberField"},{"$ref":"#/components/schemas/NumberWithUnitField"},{"$ref":"#/components/schemas/TextAreaField"},{"$ref":"#/components/schemas/AgeField"},{"$ref":"#/components/schemas/DateField"},{"$ref":"#/components/schemas/TimeField"},{"$ref":"#/components/schemas/DateRangeField"},{"$ref":"#/components/schemas/SelectDateRangeField"},{"$ref":"#/components/schemas/ImageViewField"},{"$ref":"#/components/schemas/Paragraph"},{"$ref":"#/components/schemas/Heading"},{"$ref":"#/components/schemas/RadioGroup"},{"$ref":"#/components/schemas/BulletList"},{"$ref":"#/components/schemas/PageHeader"},{"$ref":"#/components/schemas/Select"},{"$ref":"#/components/schemas/NameField"},{"$ref":"#/components/schemas/PhoneField"},{"$ref":"#/components/schemas/IdField"},{"$ref":"#/components/schemas/Checkbox"},{"$ref":"#/components/schemas/File"},{"$ref":"#/components/schemas/Country"},{"$ref":"#/components/schemas/AdministrativeAreaField"},{"$ref":"#/components/schemas/Divider"},{"$ref":"#/components/schemas/LocationInput"},{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"FACILITY"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"allowedLocations":{"description":"Limits which location options are selectable depending on user jurisdiction and location.","type":"object","properties":{"$jurisdiction":{"anyOf":[{"type":"string","enum":["administrativeArea","location","all"],"description":"Filters based on user jurisdiction relative to their office location in hierarchy."},{"type":"object","properties":{"$scope":{"type":"string","enum":["organisation.read-locations","user.read","user.create","user.edit","user.search","record.search","record.create","record.read","record.declare","record.notify","record.edit","record.reject","record.archive","record.unarchive","record.review-duplicates","record.register","record.print-certified-copies","record.request-correction","record.correct","record.unassign-others","record.custom-action","record.action.accept","record.action.reject","bypassratelimit","record.reindex","user.data-seeding","integration.create","integration.audit.read","record.import","config.update-all","location.edit","attachment.upload","profile.electronic-signature","user.read-only-my-audit","performance.read","performance.read-dashboards","performance.vital-statistics-export","workqueue","dashboard.view"]},"$option":{"type":"string","enum":["event","placeOfEvent","createdBy","createdIn","notifiedIn","notifiedBy","declaredIn","declaredBy","status","registeredIn","registeredBy","flags","accessLevel","role","ids"]}},"required":["$scope","$option"],"additionalProperties":false}]}},"required":["$jurisdiction"],"additionalProperties":false},"activeOnly":{"type":"boolean"},"anchorToDateOfEvent":{"type":"boolean"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"Input field for a facility"},{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"OFFICE"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"allowedLocations":{"description":"Limits which location options are selectable depending on user jurisdiction and location.","type":"object","properties":{"$jurisdiction":{"anyOf":[{"type":"string","enum":["administrativeArea","location","all"],"description":"Filters based on user jurisdiction relative to their office location in hierarchy."},{"type":"object","properties":{"$scope":{"type":"string","enum":["organisation.read-locations","user.read","user.create","user.edit","user.search","record.search","record.create","record.read","record.declare","record.notify","record.edit","record.reject","record.archive","record.unarchive","record.review-duplicates","record.register","record.print-certified-copies","record.request-correction","record.correct","record.unassign-others","record.custom-action","record.action.accept","record.action.reject","bypassratelimit","record.reindex","user.data-seeding","integration.create","integration.audit.read","record.import","config.update-all","location.edit","attachment.upload","profile.electronic-signature","user.read-only-my-audit","performance.read","performance.read-dashboards","performance.vital-statistics-export","workqueue","dashboard.view"]},"$option":{"type":"string","enum":["event","placeOfEvent","createdBy","createdIn","notifiedIn","notifiedBy","declaredIn","declaredBy","status","registeredIn","registeredBy","flags","accessLevel","role","ids"]}},"required":["$scope","$option"],"additionalProperties":false}]}},"required":["$jurisdiction"],"additionalProperties":false},"activeOnly":{"type":"boolean"},"anchorToDateOfEvent":{"type":"boolean"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"Input field for an office"},{"$ref":"#/components/schemas/SignatureField"},{"$ref":"#/components/schemas/EmailField"},{"$ref":"#/components/schemas/FileUploadWithOptions"},{"$ref":"#/components/schemas/DataField"},{"$ref":"#/components/schemas/ButtonField"},{"$ref":"#/components/schemas/AlphaPrintButton"},{"$ref":"#/components/schemas/HttpField"},{"$ref":"#/components/schemas/AutocompleteField"},{"$ref":"#/components/schemas/LinkButtonField"},{"$ref":"#/components/schemas/VerificationStatus"},{"$ref":"#/components/schemas/QrReaderField"},{"$ref":"#/components/schemas/IdReaderField"},{"$ref":"#/components/schemas/QueryParamReaderField"},{"$ref":"#/components/schemas/LoaderField"},{"$ref":"#/components/schemas/SearchField"},{"$ref":"#/components/schemas/CustomField"},{"$ref":"#/components/schemas/HiddenField"},{"$ref":"#/components/schemas/UserRoleField"}],"description":"Form field configuration","type":"object"},"FieldGroup":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"FIELD_GROUP"},"fields":{"type":"array","items":{"$ref":"#/components/schemas/FieldConfig"}},"configuration":{"type":"object","properties":{"separator":{"description":"Joins the subfield values when the group is rendered as output, e.g. \", \". Defaults to one subfield per line.","type":"string"},"hideEmptyFields":{"description":"Leaves subfields without a value out of the output. Pair it with a separator so the separator does not double up around the gaps.","default":false,"type":"boolean"}},"additionalProperties":false}},"required":["id","label","type","fields"],"additionalProperties":false,"description":"A group of fields that are displayed together"},"FieldConditional":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"SHOW"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'SHOW' conditional is defined, the component is shown to the user only if the condition is met"},{"type":"object","properties":{"type":{"type":"string","const":"ENABLE"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'ENABLE' conditional is defined, the component is enabled only if the condition is met"},{"type":"object","properties":{"type":{"type":"string","const":"DISPLAY_ON_REVIEW"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'DISPLAY_ON_REVIEW' conditional is defined, the component is shown on the review page only if both the 'DISPLAY_ON_REVIEW' and 'SHOW' conditions are met. This should only be used for fields within declaration forms, as they are the only ones with review pages."}],"description":"Conditional gating whether a form field is shown (SHOW), enabled (ENABLE), or displayed on the review page (DISPLAY_ON_REVIEW). When omitted, the field is shown and enabled for everyone, and is displayed on review whenever it has a value.","type":"object"},"ValidationConfig":{"type":"object","properties":{"validator":{"description":"Conditional expression that must hold for the field value to be considered valid.","$ref":"#/components/schemas/Conditional"},"message":{"description":"Error message displayed when the validator does not hold.","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["validator","message"],"additionalProperties":false,"description":"Validation rule applied to a form field. The validator is a conditional expression that must hold for the field value to be considered valid."},"Address":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"ADDRESS"},"configuration":{"type":"object","properties":{"lineSeparator":{"type":"string"},"fields":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"type":{"type":"string","const":"COUNTRY"},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"optionOverrides":{"description":"Conditionals for specific countries. Countries not listed are always shown and enabled.","type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"The value of the option"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}}},"required":["value"],"additionalProperties":false}}},"required":["id","type"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"type":{"type":"string","const":"ADMINISTRATIVE_AREA"},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]}},"required":["id","type"],"additionalProperties":false}]}},"streetAddressForm":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"required":{"default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"label":{"$ref":"#/components/schemas/TranslationConfigOutput"},"type":{"type":"string","const":"TEXT"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"parent":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}},"required":["id","label","type"],"additionalProperties":false}},"allowedLocations":{"description":"Limits which location options are selectable depending on user jurisdiction and location.","type":"object","properties":{"$jurisdiction":{"anyOf":[{"type":"string","enum":["administrativeArea","location","all"],"description":"Filters based on user jurisdiction relative to their office location in hierarchy."},{"type":"object","properties":{"$scope":{"type":"string","enum":["organisation.read-locations","user.read","user.create","user.edit","user.search","record.search","record.create","record.read","record.declare","record.notify","record.edit","record.reject","record.archive","record.unarchive","record.review-duplicates","record.register","record.print-certified-copies","record.request-correction","record.correct","record.unassign-others","record.custom-action","record.action.accept","record.action.reject","bypassratelimit","record.reindex","user.data-seeding","integration.create","integration.audit.read","record.import","config.update-all","location.edit","attachment.upload","profile.electronic-signature","user.read-only-my-audit","performance.read","performance.read-dashboards","performance.vital-statistics-export","workqueue","dashboard.view"]},"$option":{"type":"string","enum":["event","placeOfEvent","createdBy","createdIn","notifiedIn","notifiedBy","declaredIn","declaredBy","status","registeredIn","registeredBy","flags","accessLevel","role","ids"]}},"required":["$scope","$option"],"additionalProperties":false}]}},"required":["$jurisdiction"],"additionalProperties":false},"activeOnly":{"description":"Offer only admin areas that are active at the resolved anchor date (today, or the date of event when anchorToDateOfEvent is set); inactive or not-yet-effective versions are excluded. Propagated to the embedded admin-area selectors.","type":"boolean"},"anchorToDateOfEvent":{"description":"Resolve selectable/displayed versions against the event's date of event (falling back to the record's creation date when empty) instead of today. Does not by itself exclude inactive versions; combine with activeOnly for that. Propagated to the embedded admin-area selectors.","type":"boolean"}},"additionalProperties":false},"defaultValue":{"anyOf":[{"type":"object","properties":{"country":{"type":"string"},"streetLevelDetails":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"addressType":{"type":"string","const":"DOMESTIC"},"administrativeArea":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false}]}},"required":["country","addressType"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]}},"required":["id","label","type"],"additionalProperties":false,"description":"Address input field – a combination of location and text fields"},"TextField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"TEXT"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"default":{"type":"text"},"type":"object","properties":{"maxLength":{"description":"Maximum length of the text","type":"number"},"type":{"type":"string","enum":["text","password"]},"prefix":{"$ref":"#/components/schemas/TranslationConfigOutput"},"postfix":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A text input field"},"NumberField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"NUMBER"},"defaultValue":{"anyOf":[{"type":"number"},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"min":{"description":"Minimum value","type":"number"},"max":{"description":"Maximum value","type":"number"},"integer":{"description":"When true, only whole numbers are allowed","type":"boolean"},"prefix":{"$ref":"#/components/schemas/TranslationConfigOutput"},"postfix":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A number input field"},"NumberWithUnitField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"NUMBER_WITH_UNIT"},"defaultValue":{"anyOf":[{"type":"object","properties":{"numericValue":{"type":"number"},"unit":{"type":"string"}},"required":["numericValue","unit"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"The value of the option"},"label":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/TranslationConfigOutput"}],"description":"The label of the option"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}}},"required":["value","label"],"additionalProperties":false},"description":"A list of options for the unit select"},"configuration":{"type":"object","properties":{"min":{"description":"Minimum value of the number field","type":"number"},"max":{"description":"Maximum value of the number field","type":"number"},"numberFieldPlaceholder":{"description":"Placeholder for the number field","$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type","options"],"additionalProperties":false,"description":"A number with unit input field"},"TextAreaField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"TEXTAREA"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"default":{"rows":4},"type":"object","properties":{"maxLength":{"description":"Maximum length of the text","type":"number"},"rows":{"description":"Number of visible text lines","type":"number"},"cols":{"description":"Number of visible columns","type":"number"},"prefix":{"$ref":"#/components/schemas/TranslationConfigOutput"},"postfix":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A multiline text input"},"AgeField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"AGE"},"defaultValue":{"anyOf":[{"type":"number"},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"asOfDate":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},"prefix":{"$ref":"#/components/schemas/TranslationConfigOutput"},"postfix":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["asOfDate"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"An age input field which uses the current date as the asOfDate"},"DateField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"DATE"},"defaultValue":{"description":"Default date value(yyyy-MM-dd)","anyOf":[{"anyOf":[{"type":"object","properties":{"$$now":{"type":"boolean","const":true}},"required":["$$now"],"additionalProperties":false},{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date in the format YYYY-MM-DD"}]},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"notice":{"description":"Text to display above the date input","$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A date input (yyyy-MM-dd)"},"TimeField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"TIME"},"defaultValue":{"description":"Default time value (HH-mm)","anyOf":[{"anyOf":[{"type":"object","properties":{"$$now":{"type":"boolean","const":true}},"required":["$$now"],"additionalProperties":false},{"type":"string","pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$"}]},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"use12HourFormat":{"description":"Whether to use 12-hour format","type":"boolean"},"notice":{"description":"Text to display above the time input","$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A single time input (HH-mm)"},"DateRangeField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"DATE_RANGE"},"defaultValue":{"anyOf":[{"anyOf":[{"type":"object","properties":{"start":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date in the format YYYY-MM-DD"},"end":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date in the format YYYY-MM-DD"}},"required":["start","end"],"additionalProperties":false},{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date in the format YYYY-MM-DD"}],"description":"Date range with start and end dates in the format YYYY-MM-DD. Inclusive start, exclusive end."},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"notice":{"description":"Text to display above the date input","$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A date range input ({ start: yyyy-MM-dd, end: yyyy-MM-dd })"},"SelectDateRangeField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"SELECT_DATE_RANGE"},"defaultValue":{"anyOf":[{"type":"string","enum":["last7Days","last30Days","last90Days","last365Days"]},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","enum":["last7Days","last30Days","last90Days","last365Days"],"description":"The value of the option"},"label":{"description":"The label of the option","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["value","label"],"additionalProperties":false},"description":"A list of options"}},"required":["id","label","type","options"],"additionalProperties":false,"description":"A date range selection field"},"ImageViewField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"IMAGE_VIEW"},"defaultValue":{"type":"string","minLength":1},"configuration":{"type":"object","properties":{"alt":{"description":"Alternative text for the image","type":"string"},"width":{"description":"CSS width value for the image","type":"string"},"height":{"description":"CSS height value for the image","type":"string"},"textAlign":{"description":"Text alignment for positioning the image in its container","type":"string","enum":["left","center","right","start","end"]},"objectFit":{"description":"How the image should be resized to fit the container","type":"string","enum":["contain","cover","fill","none","scale-down"]}},"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A read-only image component for form pages"},"Paragraph":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"PARAGRAPH"},"configuration":{"default":{},"type":"object","properties":{"styles":{"type":"object","properties":{"hint":{"description":"When true, paragraph is styled as a hint with grey color","type":"boolean"},"textAlign":{"description":"Text alignment for the paragraph","type":"string","enum":["left","center","right","start","end"]}},"additionalProperties":false}},"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A read-only HTML <p> paragraph"},"Heading":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"HEADING"},"configuration":{"default":{},"type":"object","properties":{"styles":{"type":"object","properties":{"fontVariant":{"description":"Font variant to use for the paragraph text","type":"string","enum":["reg12","reg14","reg16","reg18","h4","h3"]},"textAlign":{"description":"Text alignment for the paragraph","type":"string","enum":["left","center","right","start","end"]}},"additionalProperties":false}},"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A read-only heading component for form pages"},"RadioGroup":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"RADIO_GROUP"},"defaultValue":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"The value of the option"},"label":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/TranslationConfigOutput"}],"description":"The label of the option"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}}},"required":["value","label"],"additionalProperties":false},"description":"A list of options"},"configuration":{"type":"object","properties":{"styles":{"type":"object","properties":{"size":{"type":"string","enum":["NORMAL","LARGE"]}},"additionalProperties":false}},"additionalProperties":false}},"required":["id","label","type","options"],"additionalProperties":false,"description":"A grouped radio button field"},"BulletList":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"BULLET_LIST"},"items":{"type":"array","items":{"$ref":"#/components/schemas/TranslationConfigOutput"},"description":"A list of items"},"configuration":{"default":{},"type":"object","properties":{"styles":{"type":"object","properties":{"fontVariant":{"type":"string","enum":["reg12","reg14","reg16","reg18","h4","h3","h2","h1"]}},"additionalProperties":false}},"additionalProperties":false}},"required":["id","label","type","items","configuration"],"additionalProperties":false,"description":"A list of bullet points"},"PageHeader":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"PAGE_HEADER"}},"required":["id","label","type"],"additionalProperties":false,"description":"A read-only header component for form pages"},"Select":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"SELECT"},"defaultValue":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"The value of the option"},"label":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/TranslationConfigOutput"}],"description":"The label of the option"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}}},"required":["value","label"],"additionalProperties":false},"description":"A list of options"},"noOptionsMessage":{"description":"\n    A translation configuration object used to display a message when no options are available.\n    It must follow the shape: { id: string; defaultMessage: string; description?: string }.\n    The message is rendered via intl.formatMessage(noOptionsMessage, { input }),\n    where 'input' represents the text entered in the Select field.\n    You can reference this variable in your message, for example:\n    { ..., defaultMessage: \"'{input}' is not listed among the health facilities.\" }\n  ","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["id","label","type","options"],"additionalProperties":false,"description":"A select input field"},"NameField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"NAME"},"defaultValue":{"anyOf":[{"type":"object","properties":{"firstname":{"anyOf":[{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false},{"type":"string","minLength":1}]},"middlename":{"anyOf":[{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false},{"type":"string","minLength":1}]},"surname":{"anyOf":[{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false},{"type":"string","minLength":1}]}},"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"default":{"name":{"firstname":{"required":true},"surname":{"required":true}}},"type":"object","properties":{"name":{"default":{"firstname":{"required":true},"surname":{"required":true}},"type":"object","properties":{"firstname":{"type":"object","properties":{"required":{"default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"label":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false},"middlename":{"type":"object","properties":{"required":{"default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"label":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false},"surname":{"type":"object","properties":{"required":{"default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"label":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"additionalProperties":false},"order":{"type":"array","items":{"type":"string","enum":["firstname","middlename","surname"]}},"maxLength":{"description":"Maximum length of the text","type":"number"},"prefix":{"$ref":"#/components/schemas/TranslationConfigOutput"},"postfix":{"$ref":"#/components/schemas/TranslationConfigOutput"},"showParentFieldError":{"description":"If true, shows the parent field error and hides the subfield error","default":false,"type":"boolean"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A field for entering a persons name"},"PhoneField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"type":{"type":"string","const":"PHONE"}},"required":["id","label","type"],"additionalProperties":false,"description":"A field for entering a phone number"},"IdField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"type":{"type":"string","const":"ID"}},"required":["id","label","type"],"additionalProperties":false,"description":"A field for entering an ID"},"Checkbox":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"CHECKBOX"},"defaultValue":{"default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]}},"required":["id","label","type","defaultValue"],"additionalProperties":false,"description":"A boolean checkbox field"},"File":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"FILE"},"defaultValue":{"anyOf":[{"type":"object","properties":{"path":{"type":"string","description":"A relative path within the S3 bucket, never starting with /. e.g. document-id.jpg or directory/document-id.jpg. The document service constructs the full /bucket/path internally."},"originalFilename":{"type":"string"},"type":{"type":"string"}},"required":["path","originalFilename","type"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"default":{"maxFileSize":5242880},"type":"object","properties":{"maxFileSize":{"default":5242880,"type":"number","description":"Maximum file size in bytes"},"acceptedFileTypes":{"description":"List of allowed file formats for the signature","type":"array","items":{"type":"string","enum":["image/png","image/jpg","image/jpeg","image/svg+xml","application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.oasis.opendocument.text"]}},"maxImageSize":{"type":"object","properties":{"targetSize":{"type":"object","properties":{"width":{"type":"number"},"height":{"type":"number"}},"required":["width","height"],"additionalProperties":false}},"required":["targetSize"],"additionalProperties":false},"style":{"type":"object","properties":{"width":{"description":"Whether the file upload button should take the full width of the container or not","type":"string","enum":["full","auto"]}},"additionalProperties":false},"fileName":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["maxFileSize"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A file upload field"},"Country":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"COUNTRY"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"optionOverrides":{"description":"Conditionals for specific countries. Countries not listed are always shown and enabled.","type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"The value of the option"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}}},"required":["value"],"additionalProperties":false}}},"required":["id","label","type"],"additionalProperties":false,"description":"A field for selecting a country"},"AdministrativeAreaField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"ADMINISTRATIVE_AREA"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"partOf":{"description":"Parent location","type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false},"type":{"type":"string","enum":["ADMIN_STRUCTURE","HEALTH_FACILITY","CRVS_OFFICE"]},"allowedLocations":{"description":"Limits which location options are selectable depending on user jurisdiction and location.","type":"object","properties":{"$jurisdiction":{"anyOf":[{"type":"string","enum":["administrativeArea","location","all"],"description":"Filters based on user jurisdiction relative to their office location in hierarchy."},{"type":"object","properties":{"$scope":{"type":"string","enum":["organisation.read-locations","user.read","user.create","user.edit","user.search","record.search","record.create","record.read","record.declare","record.notify","record.edit","record.reject","record.archive","record.unarchive","record.review-duplicates","record.register","record.print-certified-copies","record.request-correction","record.correct","record.unassign-others","record.custom-action","record.action.accept","record.action.reject","bypassratelimit","record.reindex","user.data-seeding","integration.create","integration.audit.read","record.import","config.update-all","location.edit","attachment.upload","profile.electronic-signature","user.read-only-my-audit","performance.read","performance.read-dashboards","performance.vital-statistics-export","workqueue","dashboard.view"]},"$option":{"type":"string","enum":["event","placeOfEvent","createdBy","createdIn","notifiedIn","notifiedBy","declaredIn","declaredBy","status","registeredIn","registeredBy","flags","accessLevel","role","ids"]}},"required":["$scope","$option"],"additionalProperties":false}]}},"required":["$jurisdiction"],"additionalProperties":false},"activeOnly":{"description":"Offer only locations that are active at the resolved anchor date (today, or the date of event when anchorToDateOfEvent is set); inactive or not-yet-effective versions are excluded.","type":"boolean"},"anchorToDateOfEvent":{"description":"Resolve selectable/displayed versions against the event's date of event (falling back to the record's creation date when empty) instead of today. Does not by itself exclude inactive versions; combine with activeOnly for that.","type":"boolean"}},"required":["type"],"additionalProperties":false,"description":"Administrative area options"}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"Administrative area input field"},"Divider":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"DIVIDER"}},"required":["id","label","type"],"additionalProperties":false,"description":"A horizontal line divider"},"LocationInput":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"LOCATION"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"locationTypes":{"description":"Types of the locations that are available for selection.","type":"array","items":{"type":"string"}},"allowedLocations":{"description":"Limits which location options are selectable depending on user jurisdiction and location.","type":"object","properties":{"$jurisdiction":{"anyOf":[{"type":"string","enum":["administrativeArea","location","all"],"description":"Filters based on user jurisdiction relative to their office location in hierarchy."},{"type":"object","properties":{"$scope":{"type":"string","enum":["organisation.read-locations","user.read","user.create","user.edit","user.search","record.search","record.create","record.read","record.declare","record.notify","record.edit","record.reject","record.archive","record.unarchive","record.review-duplicates","record.register","record.print-certified-copies","record.request-correction","record.correct","record.unassign-others","record.custom-action","record.action.accept","record.action.reject","bypassratelimit","record.reindex","user.data-seeding","integration.create","integration.audit.read","record.import","config.update-all","location.edit","attachment.upload","profile.electronic-signature","user.read-only-my-audit","performance.read","performance.read-dashboards","performance.vital-statistics-export","workqueue","dashboard.view"]},"$option":{"type":"string","enum":["event","placeOfEvent","createdBy","createdIn","notifiedIn","notifiedBy","declaredIn","declaredBy","status","registeredIn","registeredBy","flags","accessLevel","role","ids"]}},"required":["$scope","$option"],"additionalProperties":false}]}},"required":["$jurisdiction"],"additionalProperties":false},"activeOnly":{"description":"Offer only locations that are active at the resolved anchor date (today, or the date of event when anchorToDateOfEvent is set); inactive or not-yet-effective versions are excluded.","type":"boolean"},"anchorToDateOfEvent":{"description":"Resolve selectable/displayed versions against the event's date of event (falling back to the record's creation date when empty) instead of today. Does not by itself exclude inactive versions; combine with activeOnly for that.","type":"boolean"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A field for selecting a location"},"SignatureField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"SIGNATURE"},"signaturePromptLabel":{"description":"Title of the signature modal","$ref":"#/components/schemas/TranslationConfigOutput"},"defaultValue":{"anyOf":[{"type":"object","properties":{"path":{"type":"string","description":"A relative path within the S3 bucket, never starting with /. e.g. document-id.jpg or directory/document-id.jpg. The document service constructs the full /bucket/path internally."},"originalFilename":{"type":"string"},"type":{"type":"string"}},"required":["path","originalFilename","type"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"default":{"maxFileSize":5242880},"type":"object","properties":{"maxFileSize":{"default":5242880,"type":"number","description":"Maximum file size in bytes"},"acceptedFileTypes":{"description":"List of allowed file formats for the signature","type":"array","items":{"type":"string","enum":["image/png","image/jpg","image/jpeg","image/svg+xml","application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.oasis.opendocument.text"]}}},"required":["maxFileSize"],"additionalProperties":false}},"required":["id","label","type","signaturePromptLabel","configuration"],"additionalProperties":false,"description":"A signature input field"},"EmailField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"EMAIL"},"configuration":{"default":{"maxLength":255},"type":"object","properties":{"maxLength":{"description":"Maximum length of the text","type":"number"}},"additionalProperties":false},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]}},"required":["id","label","type"],"additionalProperties":false,"description":"An email input field"},"FileUploadWithOptions":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"FILE_WITH_OPTIONS"},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"The value of the option"},"label":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/TranslationConfigOutput"}],"description":"The label of the option"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}}},"required":["value","label"],"additionalProperties":false},"description":"A list of options"},"defaultValue":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"A relative path within the S3 bucket, never starting with /. e.g. document-id.jpg or directory/document-id.jpg. The document service constructs the full /bucket/path internally."},"originalFilename":{"type":"string"},"type":{"type":"string"},"option":{"type":"string"}},"required":["path","originalFilename","type","option"],"additionalProperties":false}},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"default":{"maxFileSize":5242880},"type":"object","properties":{"maxFileSize":{"default":5242880,"type":"number","description":"Maximum file size in bytes"},"maxImageSize":{"type":"object","properties":{"targetSize":{"type":"object","properties":{"width":{"type":"number"},"height":{"type":"number"}},"required":["width","height"],"additionalProperties":false}},"required":["targetSize"],"additionalProperties":false},"acceptedFileTypes":{"description":"List of allowed file formats for the signature","type":"array","items":{"type":"string","enum":["image/png","image/jpg","image/jpeg","image/svg+xml","application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.oasis.opendocument.text"]}}},"required":["maxFileSize"],"additionalProperties":false}},"required":["id","label","type","options","configuration"],"additionalProperties":false,"description":"A field for uploading files with file type options"},"DataField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"DATA"},"configuration":{"type":"object","properties":{"subtitle":{"$ref":"#/components/schemas/TranslationConfigOutput"},"data":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","description":"ID for the data entry."},"label":{"$ref":"#/components/schemas/TranslationConfigOutput"},"value":{"anyOf":[{"anyOf":[{"$ref":"#/components/schemas/TranslationConfigOutput"},{"type":"string"}]},{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}]}},"required":["id","label","value"],"additionalProperties":false,"description":"Static data entry"},{"type":"object","properties":{"fieldId":{"type":"string"}},"required":["fieldId"],"additionalProperties":false}],"description":"Data entry can be either a static data entry, or a reference to another field in the current form or the declaration."}}},"required":["data"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A field for displaying a table of read-only data"},"ButtonField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"BUTTON"},"defaultValue":{"anyOf":[{"type":"number"},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"icon":{"description":"Icon for the button. You can find icons from OpenCRVS UI-Kit.","type":"string"},"loading":{"description":"Whether the button is in a loading state and shows a spinner","type":"boolean"},"buttonSize":{"description":"Size of the button.","type":"string","enum":["small","medium","large"]},"buttonType":{"description":"Type of the button.","type":"string","enum":["primary","secondary","tertiary","positive","negative","secondaryNegative","icon","iconPrimary"]},"textColor":{"description":"Color of the text.","type":"string","enum":["primary","copy"]},"textVariant":{"description":"Variant of the text.","type":"string","enum":["bold14","reg14"]},"text":{"description":"Text to display on the button","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["text"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A generic button that can be used to trigger an action"},"AlphaPrintButton":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"ALPHA_PRINT_BUTTON"},"configuration":{"type":"object","properties":{"template":{"type":"string","description":"Template ID from countryconfig templates to use for printing"},"buttonLabel":{"description":"Label for the print button","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["template"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"An experimental print button field for printing certificates during the declaration process"},"HttpField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"HTTP"},"defaultValue":{"anyOf":[{"type":"object","properties":{"loading":{"type":"boolean"},"error":{"anyOf":[{"type":"object","properties":{"statusCode":{"type":"number"},"message":{"type":"string"}},"required":["statusCode","message"],"additionalProperties":false},{"type":"null"}]},"data":{}},"required":["loading","data"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"trigger":{"description":"Reference to the field that triggers the HTTP request when its value changes. If not provided, the HTTP request is triggered once on component mount.","type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false},"url":{"type":"string","description":"URL to send the HTTP request to"},"method":{"type":"string","enum":["GET","POST","PUT","DELETE"]},"headers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"body":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"errorValue":{"description":"Value to set if the request fails"},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}]}},"timeout":{"default":15000,"description":"Request timeout in milliseconds","type":"number"}},"required":["url","method","timeout"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"Makes a background HTTP request to an external service and stores the response so other fields can use it. Has no visible UI — pair with LOADER to show request status."},"AutocompleteField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"AUTOCOMPLETE"},"configuration":{"type":"object","properties":{"url":{"type":"string","description":"URL to fetch autocomplete suggestions from. This should be a country config server endpoint."},"method":{"default":"GET","type":"string","enum":["GET","POST"]},"defaultOptions":{"description":"Manual entry is supported through configuration, allowing users to provide values not currently represented in the dataset.","type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"type":"string"}},"required":["label","value"],"additionalProperties":false}}},"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"Generic autocomplete component designed for use with large dictionary-based datasets. The component supports dynamic retrieval of options from configurable data sources and is intended for datasets that may contain tens or hundreds of thousands of records."},"LinkButtonField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"LINK_BUTTON"},"configuration":{"type":"object","properties":{"url":{"type":"string","description":"URL to open"},"text":{"description":"Text to display on the button","$ref":"#/components/schemas/TranslationConfigOutput"},"icon":{"description":"Icon for the button. You can find icons from OpenCRVS UI-Kit.","type":"string"}},"required":["url","text"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A button that opens a URL link"},"VerificationStatus":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"VERIFICATION_STATUS"},"defaultValue":{"anyOf":[{"type":"string","enum":["verified","authenticated","failed","pending"]},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"status":{"description":"Text to display on the status pill.","$ref":"#/components/schemas/TranslationConfigOutput"},"description":{"description":"Explaining text on the banner in form.","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["status","description"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"Displays a verification state (e.g. ID verified / pending). Often paired with ID_READER — it can read its value off an ID_READER rather than holding its own."},"QrReaderField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"QR_READER"},"defaultValue":{"anyOf":[{"type":"object","properties":{"data":{}},"required":["data"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"validator":{"$ref":"#/components/schemas/QrReaderFieldValidator"}},"required":["validator"],"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"QR code reader field, including optional JSON Schema validator."},"QrReaderFieldValidator":{"description":"JSON Schema to validate the scanned QR code data against before populating the form fields."},"IdReaderField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"ID_READER"},"defaultValue":{"anyOf":[{"type":"object","properties":{"data":{}},"required":["data"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"methods":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/QrReaderField"},{"$ref":"#/components/schemas/LinkButtonField"}],"description":"Methods for reading an ID"}}},"required":["id","label","type","methods"],"additionalProperties":false,"description":"A wrapper around nested form fields, specifically QR_READER and LINK_BUTTON. It can hold the QR_READERs value."},"QueryParamReaderField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"QUERY_PARAM_READER"},"configuration":{"type":"object","properties":{"pickParams":{"type":"array","items":{"type":"string"},"description":"List of query parameters to read from the URL"}},"required":["pickParams"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A field that maps URL query params into form values and clears them afterward"},"LoaderField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"description":"Loader field does not show a label by default","default":true,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"LOADER"},"variant":{"default":"default","type":"string","enum":["default","highlighted"]},"configuration":{"type":"object","properties":{"text":{"description":"Display text above the loading spinner","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["text"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A non-interactive field that indicates an in progress operation in form"},"SearchField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"SEARCH"},"defaultValue":{"anyOf":[{"type":"object","properties":{"loading":{"type":"boolean"},"error":{"anyOf":[{"type":"object","properties":{"statusCode":{"type":"number"},"message":{"type":"string"}},"required":["statusCode","message"],"additionalProperties":false},{"type":"null"}]},"data":{}},"required":["loading","data"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"query":{"default":{"type":"and","clauses":[{"eventType":"tennis-club-membership","status":{"type":"anyOf","terms":["CREATED","NOTIFIED","DECLARED","REGISTERED","ARCHIVED"]},"updatedAt":{"type":"range","gte":"2025-05-22","lte":"2025-05-29"},"data":{}}]},"$ref":"#/components/schemas/QueryTypeOutput"},"limit":{"default":100,"type":"number"},"offset":{"default":0,"type":"number"},"validation":{"$ref":"#/components/schemas/ValidationConfig"},"indicators":{"type":"object","properties":{"loading":{"description":"Text to display while the search is in progress","$ref":"#/components/schemas/TranslationConfigOutput"},"offline":{"description":"Text to display when the application is offline","$ref":"#/components/schemas/TranslationConfigOutput"},"noResultsError":{"description":"Text to display when no results are found during the search","$ref":"#/components/schemas/TranslationConfigOutput"},"httpError":{"description":"Text to display when there is an HTTP error during the search","$ref":"#/components/schemas/TranslationConfigOutput"},"confirmButton":{"$ref":"#/components/schemas/TranslationConfigOutput"},"clearButton":{"$ref":"#/components/schemas/TranslationConfigOutput"},"clearModal":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/TranslationConfigOutput"},"description":{"$ref":"#/components/schemas/TranslationConfigOutput"},"cancel":{"$ref":"#/components/schemas/TranslationConfigOutput"},"confirm":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false},"ok":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["query","limit","offset","validation"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A search input field"},"QueryTypeOutput":{"type":"object","properties":{"type":{"anyOf":[{"type":"string","const":"and"},{"type":"string","const":"or"}],"default":"and"},"clauses":{"minItems":1,"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/QueryExpressionOutput"},{"$ref":"#/components/schemas/QueryTypeOutput"}]},"default":[{"eventType":"tennis-club-membership","status":{"type":"anyOf","terms":["CREATED","NOTIFIED","DECLARED","REGISTERED","ARCHIVED"]},"updatedAt":{"type":"range","gte":"2025-05-22","lte":"2025-05-29"},"data":{}}]}},"required":["type","clauses"],"additionalProperties":false},"QueryExpressionOutput":{"type":"object","properties":{"id":{"type":"string"},"eventType":{"type":"string"},"status":{"anyOf":[{"$ref":"#/components/schemas/AnyOfStatusOutput"},{"$ref":"#/components/schemas/ExactStatusOutput"}]},"createdAt":{"$ref":"#/components/schemas/DateConditionOutput"},"updatedAt":{"$ref":"#/components/schemas/DateConditionOutput"},"legalStatuses.DECLARED.createdAtLocation":{"anyOf":[{"$ref":"#/components/schemas/WithinOutput"},{"type":"null"}]},"legalStatuses.DECLARED.createdByRole":{"$ref":"#/components/schemas/AnyOfOutput"},"legalStatuses.REGISTERED.acceptedAt":{"$ref":"#/components/schemas/DateConditionOutput"},"legalStatuses.REGISTERED.createdAtLocation":{"anyOf":[{"$ref":"#/components/schemas/WithinOutput"},{"type":"null"}]},"legalStatuses.REGISTERED.createdByRole":{"$ref":"#/components/schemas/AnyOfOutput"},"legalStatuses.REGISTERED.registrationNumber":{"$ref":"#/components/schemas/ExactOutput"},"createdAtLocation":{"anyOf":[{"$ref":"#/components/schemas/WithinOutput"},{"$ref":"#/components/schemas/ExactOutput"}]},"updatedAtLocation":{"anyOf":[{"$ref":"#/components/schemas/WithinOutput"},{"$ref":"#/components/schemas/ExactOutput"}]},"assignedTo":{"$ref":"#/components/schemas/ExactOutput"},"createdByUserType":{"$ref":"#/components/schemas/ExactUserTypeOutput"},"updatedByUserRole":{"$ref":"#/components/schemas/ExactOutput"},"createdBy":{"$ref":"#/components/schemas/ExactOutput"},"updatedBy":{"$ref":"#/components/schemas/ExactOutput"},"trackingId":{"$ref":"#/components/schemas/ExactOutput"},"flags":{"$ref":"#/components/schemas/ContainsFlagsOutput"},"data":{"$ref":"#/components/schemas/QueryInputOutput"}},"additionalProperties":false},"AnyOfStatusOutput":{"type":"object","properties":{"type":{"type":"string","const":"anyOf"},"terms":{"type":"array","items":{"type":"string","enum":["CREATED","NOTIFIED","DECLARED","REGISTERED","ARCHIVED"]}}},"required":["type","terms"],"additionalProperties":false},"ExactStatusOutput":{"type":"object","properties":{"type":{"type":"string","const":"exact"},"term":{"type":"string","enum":["CREATED","NOTIFIED","DECLARED","REGISTERED","ARCHIVED"]}},"required":["type","term"],"additionalProperties":false},"DateConditionOutput":{"anyOf":[{"$ref":"#/components/schemas/ExactDateOutput"},{"$ref":"#/components/schemas/RangeDateOutput"},{"$ref":"#/components/schemas/TimePeriodOutput"}]},"ExactDateOutput":{"type":"object","properties":{"type":{"type":"string","const":"exact"},"term":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}]}},"required":["type","term"],"additionalProperties":false},"RangeDateOutput":{"type":"object","properties":{"type":{"type":"string","const":"range"},"gte":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}]},"lte":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}]}},"required":["type","gte","lte"],"additionalProperties":false},"TimePeriodOutput":{"type":"object","properties":{"type":{"type":"string","const":"timePeriod"},"term":{"type":"string","enum":["last7Days","last30Days","last90Days","last365Days"]}},"required":["type","term"],"additionalProperties":false},"WithinOutput":{"type":"object","properties":{"type":{"type":"string","const":"within"},"location":{"type":"string"}},"required":["type","location"],"additionalProperties":false},"AnyOfOutput":{"type":"object","properties":{"type":{"type":"string","const":"anyOf"},"terms":{"type":"array","items":{"type":"string"}}},"required":["type","terms"],"additionalProperties":false},"ExactOutput":{"type":"object","properties":{"type":{"type":"string","const":"exact"},"term":{"type":"string"}},"required":["type","term"],"additionalProperties":false},"ExactUserTypeOutput":{"type":"object","properties":{"type":{"type":"string","const":"exact"},"term":{"type":"string","enum":["user","system"]}},"required":["type","term"],"additionalProperties":false},"ContainsFlagsOutput":{"type":"object","properties":{"anyOf":{"type":"array","items":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"string","enum":["incomplete","rejected","correction-requested","potential-duplicate","edit-in-progress"]}]},{"type":"string","description":"Custom flag identifier defined by the country config."}]}},"noneOf":{"type":"array","items":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"string","enum":["incomplete","rejected","correction-requested","potential-duplicate","edit-in-progress"]}]},{"type":"string","description":"Custom flag identifier defined by the country config."}]}},"allOf":{"type":"array","items":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"string","enum":["incomplete","rejected","correction-requested","potential-duplicate","edit-in-progress"]}]},{"type":"string","description":"Custom flag identifier defined by the country config."}]}}},"additionalProperties":false},"QueryInputOutput":{"anyOf":[{"oneOf":[{"$ref":"#/components/schemas/FuzzyOutput"},{"$ref":"#/components/schemas/ExactOutput"},{"$ref":"#/components/schemas/RangeOutput"},{"$ref":"#/components/schemas/WithinOutput"},{"$ref":"#/components/schemas/AnyOfOutput"}],"type":"object","discriminator":{"propertyName":"type","mapping":{"fuzzy":"#/components/schemas/FuzzyOutput","exact":"#/components/schemas/ExactOutput","range":"#/components/schemas/RangeOutput","within":"#/components/schemas/WithinOutput","anyOf":"#/components/schemas/AnyOfOutput"}}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/QueryInputOutput"}}]},"FuzzyOutput":{"type":"object","properties":{"type":{"type":"string","const":"fuzzy"},"term":{"type":"string"}},"required":["type","term"],"additionalProperties":false},"RangeOutput":{"type":"object","properties":{"type":{"type":"string","const":"range"},"gte":{"type":"string"},"lte":{"type":"string"}},"required":["type","gte","lte"],"additionalProperties":false},"CustomField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"CUSTOM"},"defaultValue":{},"src":{"type":"string","description":"Module source path for the custom field component"},"configuration":{}},"required":["id","label","type","src"],"additionalProperties":false,"description":"An expiremental custom field that is defined by a module source path"},"HiddenField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"default":false,"type":"boolean"},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"ALPHA_HIDDEN"},"defaultValue":{"type":"string"}},"required":["id","label","type"],"additionalProperties":false,"description":"A non-interactive, hidden field that only hold a value in the form"},"UserRoleField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"USER_ROLE"},"defaultValue":{"type":"string"}},"required":["id","label","type"],"additionalProperties":false,"description":"A select dropdown that is automatically populated with available user roles"}}}}
```

## The RegisterActionConfig object

```json
{"openapi":"3.1.0","info":{"title":"OpenCRVS API","version":"2.0.0"},"components":{"schemas":{"RegisterActionConfig":{"type":"object","properties":{"label":{"description":"Human readable description of the action","$ref":"#/components/schemas/TranslationConfigOutput"},"flags":{"default":[],"description":"Flag actions which are executed when the action is performed.","type":"array","items":{"$ref":"#/components/schemas/ActionFlagConfig"}},"supportingCopy":{"description":"Text displayed on the confirmation dialog","$ref":"#/components/schemas/TranslationConfigOutput"},"icon":{"type":"string","description":"Icon representing the action"},"conditionals":{"description":"Conditionals which can disable or hide actions.","type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}},"deduplication":{"$ref":"#/components/schemas/DeduplicationConfig"},"type":{"type":"string","const":"REGISTER"},"form":{"description":"Fields rendered on the action confirmation dialog. Submitted values are stored in the action annotation and shown in the audit history.","type":"array","items":{"$ref":"#/components/schemas/FieldConfig"}}},"required":["label","flags","type"],"additionalProperties":false,"description":"Configuration for registering a record."},"TranslationConfigOutput":{"type":"object","properties":{"id":{"type":"string","description":"The identifier of the translation referred in translation CSV files"},"defaultMessage":{"type":"string","description":"Default translation message"},"description":{"type":"string","description":"Describe the translation for a translator to be able to identify it."}},"required":["id","defaultMessage","description"],"additionalProperties":false,"description":"Translation configuration"},"ActionFlagConfig":{"type":"object","properties":{"id":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"string","enum":["incomplete","rejected","correction-requested","potential-duplicate","edit-in-progress"]}]},{"type":"string","description":"Custom flag identifier defined by the country config."}]},"operation":{"type":"string","enum":["add","remove"],"description":"Operation to perform on the flag."},"conditional":{"description":"When conditional is met, the operation is performed on the flag. If not provided, the operation is performed unconditionally.","$ref":"#/components/schemas/Conditional"}},"required":["id","operation"],"additionalProperties":false,"description":"Add or remove operation applied to a flag when the parent action is accepted. Optionally gated by a conditional."},"Conditional":{"description":"JSON schema conditional configuration"},"ActionConditional":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"SHOW"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'SHOW' conditional is defined, the component is shown to the user only if the condition is met"},{"type":"object","properties":{"type":{"type":"string","const":"ENABLE"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'ENABLE' conditional is defined, the component is enabled only if the condition is met"}],"description":"Conditional gating whether an action is shown (SHOW) or enabled (ENABLE). When omitted from an action, the action is shown and enabled for everyone.","type":"object"},"DeduplicationConfig":{"type":"object","properties":{"id":{"type":"string"},"label":{"$ref":"#/components/schemas/TranslationConfigOutput"},"query":{"$ref":"#/components/schemas/Clause"}},"required":["id","label","query"],"additionalProperties":false,"description":"Configuration for duplicate detection on a declare or register action. The query is built from fuzzy / strict / date-range matchers combined with and/or/not."},"Clause":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"not"},"clause":{"$ref":"#/components/schemas/Clause"}},"required":["type","clause"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"and"},"clauses":{"type":"array","items":{"$ref":"#/components/schemas/Clause"}}},"required":["type","clauses"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"or"},"clauses":{"type":"array","items":{"$ref":"#/components/schemas/Clause"}}},"required":["type","clauses"],"additionalProperties":false},{"type":"object","properties":{"fieldId":{"type":"string"},"options":{"default":{"fuzziness":"AUTO:4,7","boost":1},"type":"object","properties":{"fuzziness":{"default":"AUTO:4,7","anyOf":[{"type":"string"},{"type":"number"}]},"boost":{"default":1,"type":"number"},"matchAgainst":{"type":"string"}},"required":["fuzziness","boost"],"additionalProperties":false},"type":{"type":"string","const":"fuzzy"}},"required":["fieldId","options","type"],"additionalProperties":false},{"type":"object","properties":{"fieldId":{"type":"string"},"options":{"default":{"boost":1},"type":"object","properties":{"boost":{"default":1,"type":"number"},"value":{"type":"string"},"matchAgainst":{"type":"string"}},"required":["boost"],"additionalProperties":false},"type":{"type":"string","const":"strict"}},"required":["fieldId","options","type"],"additionalProperties":false},{"type":"object","properties":{"fieldId":{"type":"string"},"options":{"type":"object","properties":{"pivot":{"type":"number"},"days":{"type":"number"},"boost":{"default":1,"type":"number"},"matchAgainst":{"type":"string"}},"required":["days","boost"],"additionalProperties":false},"type":{"type":"string","const":"dateRange"}},"required":["fieldId","options","type"],"additionalProperties":false}],"type":"object"},"FieldConfig":{"oneOf":[{"$ref":"#/components/schemas/FieldGroup"},{"$ref":"#/components/schemas/Address"},{"$ref":"#/components/schemas/TextField"},{"$ref":"#/components/schemas/NumberField"},{"$ref":"#/components/schemas/NumberWithUnitField"},{"$ref":"#/components/schemas/TextAreaField"},{"$ref":"#/components/schemas/AgeField"},{"$ref":"#/components/schemas/DateField"},{"$ref":"#/components/schemas/TimeField"},{"$ref":"#/components/schemas/DateRangeField"},{"$ref":"#/components/schemas/SelectDateRangeField"},{"$ref":"#/components/schemas/ImageViewField"},{"$ref":"#/components/schemas/Paragraph"},{"$ref":"#/components/schemas/Heading"},{"$ref":"#/components/schemas/RadioGroup"},{"$ref":"#/components/schemas/BulletList"},{"$ref":"#/components/schemas/PageHeader"},{"$ref":"#/components/schemas/Select"},{"$ref":"#/components/schemas/NameField"},{"$ref":"#/components/schemas/PhoneField"},{"$ref":"#/components/schemas/IdField"},{"$ref":"#/components/schemas/Checkbox"},{"$ref":"#/components/schemas/File"},{"$ref":"#/components/schemas/Country"},{"$ref":"#/components/schemas/AdministrativeAreaField"},{"$ref":"#/components/schemas/Divider"},{"$ref":"#/components/schemas/LocationInput"},{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"FACILITY"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"allowedLocations":{"description":"Limits which location options are selectable depending on user jurisdiction and location.","type":"object","properties":{"$jurisdiction":{"anyOf":[{"type":"string","enum":["administrativeArea","location","all"],"description":"Filters based on user jurisdiction relative to their office location in hierarchy."},{"type":"object","properties":{"$scope":{"type":"string","enum":["organisation.read-locations","user.read","user.create","user.edit","user.search","record.search","record.create","record.read","record.declare","record.notify","record.edit","record.reject","record.archive","record.unarchive","record.review-duplicates","record.register","record.print-certified-copies","record.request-correction","record.correct","record.unassign-others","record.custom-action","record.action.accept","record.action.reject","bypassratelimit","record.reindex","user.data-seeding","integration.create","integration.audit.read","record.import","config.update-all","location.edit","attachment.upload","profile.electronic-signature","user.read-only-my-audit","performance.read","performance.read-dashboards","performance.vital-statistics-export","workqueue","dashboard.view"]},"$option":{"type":"string","enum":["event","placeOfEvent","createdBy","createdIn","notifiedIn","notifiedBy","declaredIn","declaredBy","status","registeredIn","registeredBy","flags","accessLevel","role","ids"]}},"required":["$scope","$option"],"additionalProperties":false}]}},"required":["$jurisdiction"],"additionalProperties":false},"activeOnly":{"type":"boolean"},"anchorToDateOfEvent":{"type":"boolean"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"Input field for a facility"},{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"OFFICE"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"allowedLocations":{"description":"Limits which location options are selectable depending on user jurisdiction and location.","type":"object","properties":{"$jurisdiction":{"anyOf":[{"type":"string","enum":["administrativeArea","location","all"],"description":"Filters based on user jurisdiction relative to their office location in hierarchy."},{"type":"object","properties":{"$scope":{"type":"string","enum":["organisation.read-locations","user.read","user.create","user.edit","user.search","record.search","record.create","record.read","record.declare","record.notify","record.edit","record.reject","record.archive","record.unarchive","record.review-duplicates","record.register","record.print-certified-copies","record.request-correction","record.correct","record.unassign-others","record.custom-action","record.action.accept","record.action.reject","bypassratelimit","record.reindex","user.data-seeding","integration.create","integration.audit.read","record.import","config.update-all","location.edit","attachment.upload","profile.electronic-signature","user.read-only-my-audit","performance.read","performance.read-dashboards","performance.vital-statistics-export","workqueue","dashboard.view"]},"$option":{"type":"string","enum":["event","placeOfEvent","createdBy","createdIn","notifiedIn","notifiedBy","declaredIn","declaredBy","status","registeredIn","registeredBy","flags","accessLevel","role","ids"]}},"required":["$scope","$option"],"additionalProperties":false}]}},"required":["$jurisdiction"],"additionalProperties":false},"activeOnly":{"type":"boolean"},"anchorToDateOfEvent":{"type":"boolean"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"Input field for an office"},{"$ref":"#/components/schemas/SignatureField"},{"$ref":"#/components/schemas/EmailField"},{"$ref":"#/components/schemas/FileUploadWithOptions"},{"$ref":"#/components/schemas/DataField"},{"$ref":"#/components/schemas/ButtonField"},{"$ref":"#/components/schemas/AlphaPrintButton"},{"$ref":"#/components/schemas/HttpField"},{"$ref":"#/components/schemas/AutocompleteField"},{"$ref":"#/components/schemas/LinkButtonField"},{"$ref":"#/components/schemas/VerificationStatus"},{"$ref":"#/components/schemas/QrReaderField"},{"$ref":"#/components/schemas/IdReaderField"},{"$ref":"#/components/schemas/QueryParamReaderField"},{"$ref":"#/components/schemas/LoaderField"},{"$ref":"#/components/schemas/SearchField"},{"$ref":"#/components/schemas/CustomField"},{"$ref":"#/components/schemas/HiddenField"},{"$ref":"#/components/schemas/UserRoleField"}],"description":"Form field configuration","type":"object"},"FieldGroup":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"FIELD_GROUP"},"fields":{"type":"array","items":{"$ref":"#/components/schemas/FieldConfig"}},"configuration":{"type":"object","properties":{"separator":{"description":"Joins the subfield values when the group is rendered as output, e.g. \", \". Defaults to one subfield per line.","type":"string"},"hideEmptyFields":{"description":"Leaves subfields without a value out of the output. Pair it with a separator so the separator does not double up around the gaps.","default":false,"type":"boolean"}},"additionalProperties":false}},"required":["id","label","type","fields"],"additionalProperties":false,"description":"A group of fields that are displayed together"},"FieldConditional":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"SHOW"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'SHOW' conditional is defined, the component is shown to the user only if the condition is met"},{"type":"object","properties":{"type":{"type":"string","const":"ENABLE"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'ENABLE' conditional is defined, the component is enabled only if the condition is met"},{"type":"object","properties":{"type":{"type":"string","const":"DISPLAY_ON_REVIEW"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'DISPLAY_ON_REVIEW' conditional is defined, the component is shown on the review page only if both the 'DISPLAY_ON_REVIEW' and 'SHOW' conditions are met. This should only be used for fields within declaration forms, as they are the only ones with review pages."}],"description":"Conditional gating whether a form field is shown (SHOW), enabled (ENABLE), or displayed on the review page (DISPLAY_ON_REVIEW). When omitted, the field is shown and enabled for everyone, and is displayed on review whenever it has a value.","type":"object"},"ValidationConfig":{"type":"object","properties":{"validator":{"description":"Conditional expression that must hold for the field value to be considered valid.","$ref":"#/components/schemas/Conditional"},"message":{"description":"Error message displayed when the validator does not hold.","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["validator","message"],"additionalProperties":false,"description":"Validation rule applied to a form field. The validator is a conditional expression that must hold for the field value to be considered valid."},"Address":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"ADDRESS"},"configuration":{"type":"object","properties":{"lineSeparator":{"type":"string"},"fields":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"type":{"type":"string","const":"COUNTRY"},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"optionOverrides":{"description":"Conditionals for specific countries. Countries not listed are always shown and enabled.","type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"The value of the option"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}}},"required":["value"],"additionalProperties":false}}},"required":["id","type"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"type":{"type":"string","const":"ADMINISTRATIVE_AREA"},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]}},"required":["id","type"],"additionalProperties":false}]}},"streetAddressForm":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"required":{"default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"label":{"$ref":"#/components/schemas/TranslationConfigOutput"},"type":{"type":"string","const":"TEXT"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"parent":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}},"required":["id","label","type"],"additionalProperties":false}},"allowedLocations":{"description":"Limits which location options are selectable depending on user jurisdiction and location.","type":"object","properties":{"$jurisdiction":{"anyOf":[{"type":"string","enum":["administrativeArea","location","all"],"description":"Filters based on user jurisdiction relative to their office location in hierarchy."},{"type":"object","properties":{"$scope":{"type":"string","enum":["organisation.read-locations","user.read","user.create","user.edit","user.search","record.search","record.create","record.read","record.declare","record.notify","record.edit","record.reject","record.archive","record.unarchive","record.review-duplicates","record.register","record.print-certified-copies","record.request-correction","record.correct","record.unassign-others","record.custom-action","record.action.accept","record.action.reject","bypassratelimit","record.reindex","user.data-seeding","integration.create","integration.audit.read","record.import","config.update-all","location.edit","attachment.upload","profile.electronic-signature","user.read-only-my-audit","performance.read","performance.read-dashboards","performance.vital-statistics-export","workqueue","dashboard.view"]},"$option":{"type":"string","enum":["event","placeOfEvent","createdBy","createdIn","notifiedIn","notifiedBy","declaredIn","declaredBy","status","registeredIn","registeredBy","flags","accessLevel","role","ids"]}},"required":["$scope","$option"],"additionalProperties":false}]}},"required":["$jurisdiction"],"additionalProperties":false},"activeOnly":{"description":"Offer only admin areas that are active at the resolved anchor date (today, or the date of event when anchorToDateOfEvent is set); inactive or not-yet-effective versions are excluded. Propagated to the embedded admin-area selectors.","type":"boolean"},"anchorToDateOfEvent":{"description":"Resolve selectable/displayed versions against the event's date of event (falling back to the record's creation date when empty) instead of today. Does not by itself exclude inactive versions; combine with activeOnly for that. Propagated to the embedded admin-area selectors.","type":"boolean"}},"additionalProperties":false},"defaultValue":{"anyOf":[{"type":"object","properties":{"country":{"type":"string"},"streetLevelDetails":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"addressType":{"type":"string","const":"DOMESTIC"},"administrativeArea":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false}]}},"required":["country","addressType"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]}},"required":["id","label","type"],"additionalProperties":false,"description":"Address input field – a combination of location and text fields"},"TextField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"TEXT"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"default":{"type":"text"},"type":"object","properties":{"maxLength":{"description":"Maximum length of the text","type":"number"},"type":{"type":"string","enum":["text","password"]},"prefix":{"$ref":"#/components/schemas/TranslationConfigOutput"},"postfix":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A text input field"},"NumberField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"NUMBER"},"defaultValue":{"anyOf":[{"type":"number"},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"min":{"description":"Minimum value","type":"number"},"max":{"description":"Maximum value","type":"number"},"integer":{"description":"When true, only whole numbers are allowed","type":"boolean"},"prefix":{"$ref":"#/components/schemas/TranslationConfigOutput"},"postfix":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A number input field"},"NumberWithUnitField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"NUMBER_WITH_UNIT"},"defaultValue":{"anyOf":[{"type":"object","properties":{"numericValue":{"type":"number"},"unit":{"type":"string"}},"required":["numericValue","unit"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"The value of the option"},"label":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/TranslationConfigOutput"}],"description":"The label of the option"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}}},"required":["value","label"],"additionalProperties":false},"description":"A list of options for the unit select"},"configuration":{"type":"object","properties":{"min":{"description":"Minimum value of the number field","type":"number"},"max":{"description":"Maximum value of the number field","type":"number"},"numberFieldPlaceholder":{"description":"Placeholder for the number field","$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type","options"],"additionalProperties":false,"description":"A number with unit input field"},"TextAreaField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"TEXTAREA"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"default":{"rows":4},"type":"object","properties":{"maxLength":{"description":"Maximum length of the text","type":"number"},"rows":{"description":"Number of visible text lines","type":"number"},"cols":{"description":"Number of visible columns","type":"number"},"prefix":{"$ref":"#/components/schemas/TranslationConfigOutput"},"postfix":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A multiline text input"},"AgeField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"AGE"},"defaultValue":{"anyOf":[{"type":"number"},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"asOfDate":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},"prefix":{"$ref":"#/components/schemas/TranslationConfigOutput"},"postfix":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["asOfDate"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"An age input field which uses the current date as the asOfDate"},"DateField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"DATE"},"defaultValue":{"description":"Default date value(yyyy-MM-dd)","anyOf":[{"anyOf":[{"type":"object","properties":{"$$now":{"type":"boolean","const":true}},"required":["$$now"],"additionalProperties":false},{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date in the format YYYY-MM-DD"}]},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"notice":{"description":"Text to display above the date input","$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A date input (yyyy-MM-dd)"},"TimeField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"TIME"},"defaultValue":{"description":"Default time value (HH-mm)","anyOf":[{"anyOf":[{"type":"object","properties":{"$$now":{"type":"boolean","const":true}},"required":["$$now"],"additionalProperties":false},{"type":"string","pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$"}]},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"use12HourFormat":{"description":"Whether to use 12-hour format","type":"boolean"},"notice":{"description":"Text to display above the time input","$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A single time input (HH-mm)"},"DateRangeField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"DATE_RANGE"},"defaultValue":{"anyOf":[{"anyOf":[{"type":"object","properties":{"start":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date in the format YYYY-MM-DD"},"end":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date in the format YYYY-MM-DD"}},"required":["start","end"],"additionalProperties":false},{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date in the format YYYY-MM-DD"}],"description":"Date range with start and end dates in the format YYYY-MM-DD. Inclusive start, exclusive end."},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"notice":{"description":"Text to display above the date input","$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A date range input ({ start: yyyy-MM-dd, end: yyyy-MM-dd })"},"SelectDateRangeField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"SELECT_DATE_RANGE"},"defaultValue":{"anyOf":[{"type":"string","enum":["last7Days","last30Days","last90Days","last365Days"]},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","enum":["last7Days","last30Days","last90Days","last365Days"],"description":"The value of the option"},"label":{"description":"The label of the option","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["value","label"],"additionalProperties":false},"description":"A list of options"}},"required":["id","label","type","options"],"additionalProperties":false,"description":"A date range selection field"},"ImageViewField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"IMAGE_VIEW"},"defaultValue":{"type":"string","minLength":1},"configuration":{"type":"object","properties":{"alt":{"description":"Alternative text for the image","type":"string"},"width":{"description":"CSS width value for the image","type":"string"},"height":{"description":"CSS height value for the image","type":"string"},"textAlign":{"description":"Text alignment for positioning the image in its container","type":"string","enum":["left","center","right","start","end"]},"objectFit":{"description":"How the image should be resized to fit the container","type":"string","enum":["contain","cover","fill","none","scale-down"]}},"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A read-only image component for form pages"},"Paragraph":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"PARAGRAPH"},"configuration":{"default":{},"type":"object","properties":{"styles":{"type":"object","properties":{"hint":{"description":"When true, paragraph is styled as a hint with grey color","type":"boolean"},"textAlign":{"description":"Text alignment for the paragraph","type":"string","enum":["left","center","right","start","end"]}},"additionalProperties":false}},"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A read-only HTML <p> paragraph"},"Heading":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"HEADING"},"configuration":{"default":{},"type":"object","properties":{"styles":{"type":"object","properties":{"fontVariant":{"description":"Font variant to use for the paragraph text","type":"string","enum":["reg12","reg14","reg16","reg18","h4","h3"]},"textAlign":{"description":"Text alignment for the paragraph","type":"string","enum":["left","center","right","start","end"]}},"additionalProperties":false}},"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A read-only heading component for form pages"},"RadioGroup":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"RADIO_GROUP"},"defaultValue":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"The value of the option"},"label":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/TranslationConfigOutput"}],"description":"The label of the option"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}}},"required":["value","label"],"additionalProperties":false},"description":"A list of options"},"configuration":{"type":"object","properties":{"styles":{"type":"object","properties":{"size":{"type":"string","enum":["NORMAL","LARGE"]}},"additionalProperties":false}},"additionalProperties":false}},"required":["id","label","type","options"],"additionalProperties":false,"description":"A grouped radio button field"},"BulletList":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"BULLET_LIST"},"items":{"type":"array","items":{"$ref":"#/components/schemas/TranslationConfigOutput"},"description":"A list of items"},"configuration":{"default":{},"type":"object","properties":{"styles":{"type":"object","properties":{"fontVariant":{"type":"string","enum":["reg12","reg14","reg16","reg18","h4","h3","h2","h1"]}},"additionalProperties":false}},"additionalProperties":false}},"required":["id","label","type","items","configuration"],"additionalProperties":false,"description":"A list of bullet points"},"PageHeader":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"PAGE_HEADER"}},"required":["id","label","type"],"additionalProperties":false,"description":"A read-only header component for form pages"},"Select":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"SELECT"},"defaultValue":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"The value of the option"},"label":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/TranslationConfigOutput"}],"description":"The label of the option"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}}},"required":["value","label"],"additionalProperties":false},"description":"A list of options"},"noOptionsMessage":{"description":"\n    A translation configuration object used to display a message when no options are available.\n    It must follow the shape: { id: string; defaultMessage: string; description?: string }.\n    The message is rendered via intl.formatMessage(noOptionsMessage, { input }),\n    where 'input' represents the text entered in the Select field.\n    You can reference this variable in your message, for example:\n    { ..., defaultMessage: \"'{input}' is not listed among the health facilities.\" }\n  ","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["id","label","type","options"],"additionalProperties":false,"description":"A select input field"},"NameField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"NAME"},"defaultValue":{"anyOf":[{"type":"object","properties":{"firstname":{"anyOf":[{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false},{"type":"string","minLength":1}]},"middlename":{"anyOf":[{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false},{"type":"string","minLength":1}]},"surname":{"anyOf":[{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false},{"type":"string","minLength":1}]}},"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"default":{"name":{"firstname":{"required":true},"surname":{"required":true}}},"type":"object","properties":{"name":{"default":{"firstname":{"required":true},"surname":{"required":true}},"type":"object","properties":{"firstname":{"type":"object","properties":{"required":{"default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"label":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false},"middlename":{"type":"object","properties":{"required":{"default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"label":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false},"surname":{"type":"object","properties":{"required":{"default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"label":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"additionalProperties":false},"order":{"type":"array","items":{"type":"string","enum":["firstname","middlename","surname"]}},"maxLength":{"description":"Maximum length of the text","type":"number"},"prefix":{"$ref":"#/components/schemas/TranslationConfigOutput"},"postfix":{"$ref":"#/components/schemas/TranslationConfigOutput"},"showParentFieldError":{"description":"If true, shows the parent field error and hides the subfield error","default":false,"type":"boolean"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A field for entering a persons name"},"PhoneField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"type":{"type":"string","const":"PHONE"}},"required":["id","label","type"],"additionalProperties":false,"description":"A field for entering a phone number"},"IdField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"type":{"type":"string","const":"ID"}},"required":["id","label","type"],"additionalProperties":false,"description":"A field for entering an ID"},"Checkbox":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"CHECKBOX"},"defaultValue":{"default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]}},"required":["id","label","type","defaultValue"],"additionalProperties":false,"description":"A boolean checkbox field"},"File":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"FILE"},"defaultValue":{"anyOf":[{"type":"object","properties":{"path":{"type":"string","description":"A relative path within the S3 bucket, never starting with /. e.g. document-id.jpg or directory/document-id.jpg. The document service constructs the full /bucket/path internally."},"originalFilename":{"type":"string"},"type":{"type":"string"}},"required":["path","originalFilename","type"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"default":{"maxFileSize":5242880},"type":"object","properties":{"maxFileSize":{"default":5242880,"type":"number","description":"Maximum file size in bytes"},"acceptedFileTypes":{"description":"List of allowed file formats for the signature","type":"array","items":{"type":"string","enum":["image/png","image/jpg","image/jpeg","image/svg+xml","application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.oasis.opendocument.text"]}},"maxImageSize":{"type":"object","properties":{"targetSize":{"type":"object","properties":{"width":{"type":"number"},"height":{"type":"number"}},"required":["width","height"],"additionalProperties":false}},"required":["targetSize"],"additionalProperties":false},"style":{"type":"object","properties":{"width":{"description":"Whether the file upload button should take the full width of the container or not","type":"string","enum":["full","auto"]}},"additionalProperties":false},"fileName":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["maxFileSize"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A file upload field"},"Country":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"COUNTRY"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"optionOverrides":{"description":"Conditionals for specific countries. Countries not listed are always shown and enabled.","type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"The value of the option"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}}},"required":["value"],"additionalProperties":false}}},"required":["id","label","type"],"additionalProperties":false,"description":"A field for selecting a country"},"AdministrativeAreaField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"ADMINISTRATIVE_AREA"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"partOf":{"description":"Parent location","type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false},"type":{"type":"string","enum":["ADMIN_STRUCTURE","HEALTH_FACILITY","CRVS_OFFICE"]},"allowedLocations":{"description":"Limits which location options are selectable depending on user jurisdiction and location.","type":"object","properties":{"$jurisdiction":{"anyOf":[{"type":"string","enum":["administrativeArea","location","all"],"description":"Filters based on user jurisdiction relative to their office location in hierarchy."},{"type":"object","properties":{"$scope":{"type":"string","enum":["organisation.read-locations","user.read","user.create","user.edit","user.search","record.search","record.create","record.read","record.declare","record.notify","record.edit","record.reject","record.archive","record.unarchive","record.review-duplicates","record.register","record.print-certified-copies","record.request-correction","record.correct","record.unassign-others","record.custom-action","record.action.accept","record.action.reject","bypassratelimit","record.reindex","user.data-seeding","integration.create","integration.audit.read","record.import","config.update-all","location.edit","attachment.upload","profile.electronic-signature","user.read-only-my-audit","performance.read","performance.read-dashboards","performance.vital-statistics-export","workqueue","dashboard.view"]},"$option":{"type":"string","enum":["event","placeOfEvent","createdBy","createdIn","notifiedIn","notifiedBy","declaredIn","declaredBy","status","registeredIn","registeredBy","flags","accessLevel","role","ids"]}},"required":["$scope","$option"],"additionalProperties":false}]}},"required":["$jurisdiction"],"additionalProperties":false},"activeOnly":{"description":"Offer only locations that are active at the resolved anchor date (today, or the date of event when anchorToDateOfEvent is set); inactive or not-yet-effective versions are excluded.","type":"boolean"},"anchorToDateOfEvent":{"description":"Resolve selectable/displayed versions against the event's date of event (falling back to the record's creation date when empty) instead of today. Does not by itself exclude inactive versions; combine with activeOnly for that.","type":"boolean"}},"required":["type"],"additionalProperties":false,"description":"Administrative area options"}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"Administrative area input field"},"Divider":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"DIVIDER"}},"required":["id","label","type"],"additionalProperties":false,"description":"A horizontal line divider"},"LocationInput":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"LOCATION"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"locationTypes":{"description":"Types of the locations that are available for selection.","type":"array","items":{"type":"string"}},"allowedLocations":{"description":"Limits which location options are selectable depending on user jurisdiction and location.","type":"object","properties":{"$jurisdiction":{"anyOf":[{"type":"string","enum":["administrativeArea","location","all"],"description":"Filters based on user jurisdiction relative to their office location in hierarchy."},{"type":"object","properties":{"$scope":{"type":"string","enum":["organisation.read-locations","user.read","user.create","user.edit","user.search","record.search","record.create","record.read","record.declare","record.notify","record.edit","record.reject","record.archive","record.unarchive","record.review-duplicates","record.register","record.print-certified-copies","record.request-correction","record.correct","record.unassign-others","record.custom-action","record.action.accept","record.action.reject","bypassratelimit","record.reindex","user.data-seeding","integration.create","integration.audit.read","record.import","config.update-all","location.edit","attachment.upload","profile.electronic-signature","user.read-only-my-audit","performance.read","performance.read-dashboards","performance.vital-statistics-export","workqueue","dashboard.view"]},"$option":{"type":"string","enum":["event","placeOfEvent","createdBy","createdIn","notifiedIn","notifiedBy","declaredIn","declaredBy","status","registeredIn","registeredBy","flags","accessLevel","role","ids"]}},"required":["$scope","$option"],"additionalProperties":false}]}},"required":["$jurisdiction"],"additionalProperties":false},"activeOnly":{"description":"Offer only locations that are active at the resolved anchor date (today, or the date of event when anchorToDateOfEvent is set); inactive or not-yet-effective versions are excluded.","type":"boolean"},"anchorToDateOfEvent":{"description":"Resolve selectable/displayed versions against the event's date of event (falling back to the record's creation date when empty) instead of today. Does not by itself exclude inactive versions; combine with activeOnly for that.","type":"boolean"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A field for selecting a location"},"SignatureField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"SIGNATURE"},"signaturePromptLabel":{"description":"Title of the signature modal","$ref":"#/components/schemas/TranslationConfigOutput"},"defaultValue":{"anyOf":[{"type":"object","properties":{"path":{"type":"string","description":"A relative path within the S3 bucket, never starting with /. e.g. document-id.jpg or directory/document-id.jpg. The document service constructs the full /bucket/path internally."},"originalFilename":{"type":"string"},"type":{"type":"string"}},"required":["path","originalFilename","type"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"default":{"maxFileSize":5242880},"type":"object","properties":{"maxFileSize":{"default":5242880,"type":"number","description":"Maximum file size in bytes"},"acceptedFileTypes":{"description":"List of allowed file formats for the signature","type":"array","items":{"type":"string","enum":["image/png","image/jpg","image/jpeg","image/svg+xml","application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.oasis.opendocument.text"]}}},"required":["maxFileSize"],"additionalProperties":false}},"required":["id","label","type","signaturePromptLabel","configuration"],"additionalProperties":false,"description":"A signature input field"},"EmailField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"EMAIL"},"configuration":{"default":{"maxLength":255},"type":"object","properties":{"maxLength":{"description":"Maximum length of the text","type":"number"}},"additionalProperties":false},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]}},"required":["id","label","type"],"additionalProperties":false,"description":"An email input field"},"FileUploadWithOptions":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"FILE_WITH_OPTIONS"},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"The value of the option"},"label":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/TranslationConfigOutput"}],"description":"The label of the option"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}}},"required":["value","label"],"additionalProperties":false},"description":"A list of options"},"defaultValue":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"A relative path within the S3 bucket, never starting with /. e.g. document-id.jpg or directory/document-id.jpg. The document service constructs the full /bucket/path internally."},"originalFilename":{"type":"string"},"type":{"type":"string"},"option":{"type":"string"}},"required":["path","originalFilename","type","option"],"additionalProperties":false}},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"default":{"maxFileSize":5242880},"type":"object","properties":{"maxFileSize":{"default":5242880,"type":"number","description":"Maximum file size in bytes"},"maxImageSize":{"type":"object","properties":{"targetSize":{"type":"object","properties":{"width":{"type":"number"},"height":{"type":"number"}},"required":["width","height"],"additionalProperties":false}},"required":["targetSize"],"additionalProperties":false},"acceptedFileTypes":{"description":"List of allowed file formats for the signature","type":"array","items":{"type":"string","enum":["image/png","image/jpg","image/jpeg","image/svg+xml","application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.oasis.opendocument.text"]}}},"required":["maxFileSize"],"additionalProperties":false}},"required":["id","label","type","options","configuration"],"additionalProperties":false,"description":"A field for uploading files with file type options"},"DataField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"DATA"},"configuration":{"type":"object","properties":{"subtitle":{"$ref":"#/components/schemas/TranslationConfigOutput"},"data":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","description":"ID for the data entry."},"label":{"$ref":"#/components/schemas/TranslationConfigOutput"},"value":{"anyOf":[{"anyOf":[{"$ref":"#/components/schemas/TranslationConfigOutput"},{"type":"string"}]},{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}]}},"required":["id","label","value"],"additionalProperties":false,"description":"Static data entry"},{"type":"object","properties":{"fieldId":{"type":"string"}},"required":["fieldId"],"additionalProperties":false}],"description":"Data entry can be either a static data entry, or a reference to another field in the current form or the declaration."}}},"required":["data"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A field for displaying a table of read-only data"},"ButtonField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"BUTTON"},"defaultValue":{"anyOf":[{"type":"number"},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"icon":{"description":"Icon for the button. You can find icons from OpenCRVS UI-Kit.","type":"string"},"loading":{"description":"Whether the button is in a loading state and shows a spinner","type":"boolean"},"buttonSize":{"description":"Size of the button.","type":"string","enum":["small","medium","large"]},"buttonType":{"description":"Type of the button.","type":"string","enum":["primary","secondary","tertiary","positive","negative","secondaryNegative","icon","iconPrimary"]},"textColor":{"description":"Color of the text.","type":"string","enum":["primary","copy"]},"textVariant":{"description":"Variant of the text.","type":"string","enum":["bold14","reg14"]},"text":{"description":"Text to display on the button","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["text"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A generic button that can be used to trigger an action"},"AlphaPrintButton":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"ALPHA_PRINT_BUTTON"},"configuration":{"type":"object","properties":{"template":{"type":"string","description":"Template ID from countryconfig templates to use for printing"},"buttonLabel":{"description":"Label for the print button","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["template"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"An experimental print button field for printing certificates during the declaration process"},"HttpField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"HTTP"},"defaultValue":{"anyOf":[{"type":"object","properties":{"loading":{"type":"boolean"},"error":{"anyOf":[{"type":"object","properties":{"statusCode":{"type":"number"},"message":{"type":"string"}},"required":["statusCode","message"],"additionalProperties":false},{"type":"null"}]},"data":{}},"required":["loading","data"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"trigger":{"description":"Reference to the field that triggers the HTTP request when its value changes. If not provided, the HTTP request is triggered once on component mount.","type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false},"url":{"type":"string","description":"URL to send the HTTP request to"},"method":{"type":"string","enum":["GET","POST","PUT","DELETE"]},"headers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"body":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"errorValue":{"description":"Value to set if the request fails"},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}]}},"timeout":{"default":15000,"description":"Request timeout in milliseconds","type":"number"}},"required":["url","method","timeout"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"Makes a background HTTP request to an external service and stores the response so other fields can use it. Has no visible UI — pair with LOADER to show request status."},"AutocompleteField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"AUTOCOMPLETE"},"configuration":{"type":"object","properties":{"url":{"type":"string","description":"URL to fetch autocomplete suggestions from. This should be a country config server endpoint."},"method":{"default":"GET","type":"string","enum":["GET","POST"]},"defaultOptions":{"description":"Manual entry is supported through configuration, allowing users to provide values not currently represented in the dataset.","type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"type":"string"}},"required":["label","value"],"additionalProperties":false}}},"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"Generic autocomplete component designed for use with large dictionary-based datasets. The component supports dynamic retrieval of options from configurable data sources and is intended for datasets that may contain tens or hundreds of thousands of records."},"LinkButtonField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"LINK_BUTTON"},"configuration":{"type":"object","properties":{"url":{"type":"string","description":"URL to open"},"text":{"description":"Text to display on the button","$ref":"#/components/schemas/TranslationConfigOutput"},"icon":{"description":"Icon for the button. You can find icons from OpenCRVS UI-Kit.","type":"string"}},"required":["url","text"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A button that opens a URL link"},"VerificationStatus":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"VERIFICATION_STATUS"},"defaultValue":{"anyOf":[{"type":"string","enum":["verified","authenticated","failed","pending"]},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"status":{"description":"Text to display on the status pill.","$ref":"#/components/schemas/TranslationConfigOutput"},"description":{"description":"Explaining text on the banner in form.","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["status","description"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"Displays a verification state (e.g. ID verified / pending). Often paired with ID_READER — it can read its value off an ID_READER rather than holding its own."},"QrReaderField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"QR_READER"},"defaultValue":{"anyOf":[{"type":"object","properties":{"data":{}},"required":["data"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"validator":{"$ref":"#/components/schemas/QrReaderFieldValidator"}},"required":["validator"],"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"QR code reader field, including optional JSON Schema validator."},"QrReaderFieldValidator":{"description":"JSON Schema to validate the scanned QR code data against before populating the form fields."},"IdReaderField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"ID_READER"},"defaultValue":{"anyOf":[{"type":"object","properties":{"data":{}},"required":["data"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"methods":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/QrReaderField"},{"$ref":"#/components/schemas/LinkButtonField"}],"description":"Methods for reading an ID"}}},"required":["id","label","type","methods"],"additionalProperties":false,"description":"A wrapper around nested form fields, specifically QR_READER and LINK_BUTTON. It can hold the QR_READERs value."},"QueryParamReaderField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"QUERY_PARAM_READER"},"configuration":{"type":"object","properties":{"pickParams":{"type":"array","items":{"type":"string"},"description":"List of query parameters to read from the URL"}},"required":["pickParams"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A field that maps URL query params into form values and clears them afterward"},"LoaderField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"description":"Loader field does not show a label by default","default":true,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"LOADER"},"variant":{"default":"default","type":"string","enum":["default","highlighted"]},"configuration":{"type":"object","properties":{"text":{"description":"Display text above the loading spinner","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["text"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A non-interactive field that indicates an in progress operation in form"},"SearchField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"SEARCH"},"defaultValue":{"anyOf":[{"type":"object","properties":{"loading":{"type":"boolean"},"error":{"anyOf":[{"type":"object","properties":{"statusCode":{"type":"number"},"message":{"type":"string"}},"required":["statusCode","message"],"additionalProperties":false},{"type":"null"}]},"data":{}},"required":["loading","data"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"query":{"default":{"type":"and","clauses":[{"eventType":"tennis-club-membership","status":{"type":"anyOf","terms":["CREATED","NOTIFIED","DECLARED","REGISTERED","ARCHIVED"]},"updatedAt":{"type":"range","gte":"2025-05-22","lte":"2025-05-29"},"data":{}}]},"$ref":"#/components/schemas/QueryTypeOutput"},"limit":{"default":100,"type":"number"},"offset":{"default":0,"type":"number"},"validation":{"$ref":"#/components/schemas/ValidationConfig"},"indicators":{"type":"object","properties":{"loading":{"description":"Text to display while the search is in progress","$ref":"#/components/schemas/TranslationConfigOutput"},"offline":{"description":"Text to display when the application is offline","$ref":"#/components/schemas/TranslationConfigOutput"},"noResultsError":{"description":"Text to display when no results are found during the search","$ref":"#/components/schemas/TranslationConfigOutput"},"httpError":{"description":"Text to display when there is an HTTP error during the search","$ref":"#/components/schemas/TranslationConfigOutput"},"confirmButton":{"$ref":"#/components/schemas/TranslationConfigOutput"},"clearButton":{"$ref":"#/components/schemas/TranslationConfigOutput"},"clearModal":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/TranslationConfigOutput"},"description":{"$ref":"#/components/schemas/TranslationConfigOutput"},"cancel":{"$ref":"#/components/schemas/TranslationConfigOutput"},"confirm":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false},"ok":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["query","limit","offset","validation"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A search input field"},"QueryTypeOutput":{"type":"object","properties":{"type":{"anyOf":[{"type":"string","const":"and"},{"type":"string","const":"or"}],"default":"and"},"clauses":{"minItems":1,"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/QueryExpressionOutput"},{"$ref":"#/components/schemas/QueryTypeOutput"}]},"default":[{"eventType":"tennis-club-membership","status":{"type":"anyOf","terms":["CREATED","NOTIFIED","DECLARED","REGISTERED","ARCHIVED"]},"updatedAt":{"type":"range","gte":"2025-05-22","lte":"2025-05-29"},"data":{}}]}},"required":["type","clauses"],"additionalProperties":false},"QueryExpressionOutput":{"type":"object","properties":{"id":{"type":"string"},"eventType":{"type":"string"},"status":{"anyOf":[{"$ref":"#/components/schemas/AnyOfStatusOutput"},{"$ref":"#/components/schemas/ExactStatusOutput"}]},"createdAt":{"$ref":"#/components/schemas/DateConditionOutput"},"updatedAt":{"$ref":"#/components/schemas/DateConditionOutput"},"legalStatuses.DECLARED.createdAtLocation":{"anyOf":[{"$ref":"#/components/schemas/WithinOutput"},{"type":"null"}]},"legalStatuses.DECLARED.createdByRole":{"$ref":"#/components/schemas/AnyOfOutput"},"legalStatuses.REGISTERED.acceptedAt":{"$ref":"#/components/schemas/DateConditionOutput"},"legalStatuses.REGISTERED.createdAtLocation":{"anyOf":[{"$ref":"#/components/schemas/WithinOutput"},{"type":"null"}]},"legalStatuses.REGISTERED.createdByRole":{"$ref":"#/components/schemas/AnyOfOutput"},"legalStatuses.REGISTERED.registrationNumber":{"$ref":"#/components/schemas/ExactOutput"},"createdAtLocation":{"anyOf":[{"$ref":"#/components/schemas/WithinOutput"},{"$ref":"#/components/schemas/ExactOutput"}]},"updatedAtLocation":{"anyOf":[{"$ref":"#/components/schemas/WithinOutput"},{"$ref":"#/components/schemas/ExactOutput"}]},"assignedTo":{"$ref":"#/components/schemas/ExactOutput"},"createdByUserType":{"$ref":"#/components/schemas/ExactUserTypeOutput"},"updatedByUserRole":{"$ref":"#/components/schemas/ExactOutput"},"createdBy":{"$ref":"#/components/schemas/ExactOutput"},"updatedBy":{"$ref":"#/components/schemas/ExactOutput"},"trackingId":{"$ref":"#/components/schemas/ExactOutput"},"flags":{"$ref":"#/components/schemas/ContainsFlagsOutput"},"data":{"$ref":"#/components/schemas/QueryInputOutput"}},"additionalProperties":false},"AnyOfStatusOutput":{"type":"object","properties":{"type":{"type":"string","const":"anyOf"},"terms":{"type":"array","items":{"type":"string","enum":["CREATED","NOTIFIED","DECLARED","REGISTERED","ARCHIVED"]}}},"required":["type","terms"],"additionalProperties":false},"ExactStatusOutput":{"type":"object","properties":{"type":{"type":"string","const":"exact"},"term":{"type":"string","enum":["CREATED","NOTIFIED","DECLARED","REGISTERED","ARCHIVED"]}},"required":["type","term"],"additionalProperties":false},"DateConditionOutput":{"anyOf":[{"$ref":"#/components/schemas/ExactDateOutput"},{"$ref":"#/components/schemas/RangeDateOutput"},{"$ref":"#/components/schemas/TimePeriodOutput"}]},"ExactDateOutput":{"type":"object","properties":{"type":{"type":"string","const":"exact"},"term":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}]}},"required":["type","term"],"additionalProperties":false},"RangeDateOutput":{"type":"object","properties":{"type":{"type":"string","const":"range"},"gte":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}]},"lte":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}]}},"required":["type","gte","lte"],"additionalProperties":false},"TimePeriodOutput":{"type":"object","properties":{"type":{"type":"string","const":"timePeriod"},"term":{"type":"string","enum":["last7Days","last30Days","last90Days","last365Days"]}},"required":["type","term"],"additionalProperties":false},"WithinOutput":{"type":"object","properties":{"type":{"type":"string","const":"within"},"location":{"type":"string"}},"required":["type","location"],"additionalProperties":false},"AnyOfOutput":{"type":"object","properties":{"type":{"type":"string","const":"anyOf"},"terms":{"type":"array","items":{"type":"string"}}},"required":["type","terms"],"additionalProperties":false},"ExactOutput":{"type":"object","properties":{"type":{"type":"string","const":"exact"},"term":{"type":"string"}},"required":["type","term"],"additionalProperties":false},"ExactUserTypeOutput":{"type":"object","properties":{"type":{"type":"string","const":"exact"},"term":{"type":"string","enum":["user","system"]}},"required":["type","term"],"additionalProperties":false},"ContainsFlagsOutput":{"type":"object","properties":{"anyOf":{"type":"array","items":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"string","enum":["incomplete","rejected","correction-requested","potential-duplicate","edit-in-progress"]}]},{"type":"string","description":"Custom flag identifier defined by the country config."}]}},"noneOf":{"type":"array","items":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"string","enum":["incomplete","rejected","correction-requested","potential-duplicate","edit-in-progress"]}]},{"type":"string","description":"Custom flag identifier defined by the country config."}]}},"allOf":{"type":"array","items":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"string","enum":["incomplete","rejected","correction-requested","potential-duplicate","edit-in-progress"]}]},{"type":"string","description":"Custom flag identifier defined by the country config."}]}}},"additionalProperties":false},"QueryInputOutput":{"anyOf":[{"oneOf":[{"$ref":"#/components/schemas/FuzzyOutput"},{"$ref":"#/components/schemas/ExactOutput"},{"$ref":"#/components/schemas/RangeOutput"},{"$ref":"#/components/schemas/WithinOutput"},{"$ref":"#/components/schemas/AnyOfOutput"}],"type":"object","discriminator":{"propertyName":"type","mapping":{"fuzzy":"#/components/schemas/FuzzyOutput","exact":"#/components/schemas/ExactOutput","range":"#/components/schemas/RangeOutput","within":"#/components/schemas/WithinOutput","anyOf":"#/components/schemas/AnyOfOutput"}}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/QueryInputOutput"}}]},"FuzzyOutput":{"type":"object","properties":{"type":{"type":"string","const":"fuzzy"},"term":{"type":"string"}},"required":["type","term"],"additionalProperties":false},"RangeOutput":{"type":"object","properties":{"type":{"type":"string","const":"range"},"gte":{"type":"string"},"lte":{"type":"string"}},"required":["type","gte","lte"],"additionalProperties":false},"CustomField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"CUSTOM"},"defaultValue":{},"src":{"type":"string","description":"Module source path for the custom field component"},"configuration":{}},"required":["id","label","type","src"],"additionalProperties":false,"description":"An expiremental custom field that is defined by a module source path"},"HiddenField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"default":false,"type":"boolean"},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"ALPHA_HIDDEN"},"defaultValue":{"type":"string"}},"required":["id","label","type"],"additionalProperties":false,"description":"A non-interactive, hidden field that only hold a value in the form"},"UserRoleField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"USER_ROLE"},"defaultValue":{"type":"string"}},"required":["id","label","type"],"additionalProperties":false,"description":"A select dropdown that is automatically populated with available user roles"}}}}
```

## The PrintCertificateActionConfig object

```json
{"openapi":"3.1.0","info":{"title":"OpenCRVS API","version":"2.0.0"},"components":{"schemas":{"PrintCertificateActionConfig":{"type":"object","properties":{"label":{"description":"Human readable description of the action","$ref":"#/components/schemas/TranslationConfigOutput"},"flags":{"default":[],"description":"Flag actions which are executed when the action is performed.","type":"array","items":{"$ref":"#/components/schemas/ActionFlagConfig"}},"supportingCopy":{"description":"Text displayed on the confirmation dialog","$ref":"#/components/schemas/TranslationConfigOutput"},"icon":{"type":"string","description":"Icon representing the action"},"conditionals":{"description":"Conditionals which can disable or hide actions.","type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}},"type":{"type":"string","const":"PRINT_CERTIFICATE"},"printForm":{"type":"object","properties":{"label":{"description":"Human readable description of the form","$ref":"#/components/schemas/TranslationConfigOutput"},"pages":{"type":"array","items":{"$ref":"#/components/schemas/PageConfig"}}},"required":["label","pages"],"additionalProperties":false,"description":"Configuration of the form used for system actions beyond declaration, supporting a wider range of page types."}},"required":["label","flags","type","printForm"],"additionalProperties":false,"description":"Configuration for printing a certificate of a registered record."},"TranslationConfigOutput":{"type":"object","properties":{"id":{"type":"string","description":"The identifier of the translation referred in translation CSV files"},"defaultMessage":{"type":"string","description":"Default translation message"},"description":{"type":"string","description":"Describe the translation for a translator to be able to identify it."}},"required":["id","defaultMessage","description"],"additionalProperties":false,"description":"Translation configuration"},"ActionFlagConfig":{"type":"object","properties":{"id":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"string","enum":["incomplete","rejected","correction-requested","potential-duplicate","edit-in-progress"]}]},{"type":"string","description":"Custom flag identifier defined by the country config."}]},"operation":{"type":"string","enum":["add","remove"],"description":"Operation to perform on the flag."},"conditional":{"description":"When conditional is met, the operation is performed on the flag. If not provided, the operation is performed unconditionally.","$ref":"#/components/schemas/Conditional"}},"required":["id","operation"],"additionalProperties":false,"description":"Add or remove operation applied to a flag when the parent action is accepted. Optionally gated by a conditional."},"Conditional":{"description":"JSON schema conditional configuration"},"ActionConditional":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"SHOW"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'SHOW' conditional is defined, the component is shown to the user only if the condition is met"},{"type":"object","properties":{"type":{"type":"string","const":"ENABLE"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'ENABLE' conditional is defined, the component is enabled only if the condition is met"}],"description":"Conditional gating whether an action is shown (SHOW) or enabled (ENABLE). When omitted from an action, the action is shown and enabled for everyone.","type":"object"},"PageConfig":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the page"},"title":{"description":"Header title of the page","$ref":"#/components/schemas/TranslationConfigOutput"},"requireCompletionToContinue":{"default":false,"description":"If true, all required fields must be filled before continuing to the next page","type":"boolean"},"showClearButton":{"description":"If true, a \"Clear\" button is shown at the top of the page allowing the user to reset all fields on the page to their default state","type":"boolean"},"fields":{"type":"array","items":{"$ref":"#/components/schemas/FieldConfig"},"description":"Fields to be rendered on the page"},"conditional":{"description":"Page will be shown if condition is met. If conditional is not defined, the page will be always shown.","$ref":"#/components/schemas/Conditional"},"type":{"default":"FORM","type":"string","const":"FORM"}},"required":["id","title","requireCompletionToContinue","fields","type"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the page"},"title":{"description":"Header title of the page","$ref":"#/components/schemas/TranslationConfigOutput"},"requireCompletionToContinue":{"default":false,"description":"If true, all required fields must be filled before continuing to the next page","type":"boolean"},"showClearButton":{"description":"If true, a \"Clear\" button is shown at the top of the page allowing the user to reset all fields on the page to their default state","type":"boolean"},"fields":{"type":"array","items":{"$ref":"#/components/schemas/FieldConfig"},"description":"Fields to be rendered on the page"},"conditional":{"description":"Page will be shown if condition is met. If conditional is not defined, the page will be always shown.","$ref":"#/components/schemas/Conditional"},"type":{"type":"string","const":"VERIFICATION"},"actions":{"$ref":"#/components/schemas/VerificationActionConfig"}},"required":["id","title","requireCompletionToContinue","fields","type","actions"],"additionalProperties":false}],"description":"Configuration for a single page in a form. Either a form page with fields and a continue button, or a verification page with verify/cancel options.","type":"object"},"FieldConfig":{"oneOf":[{"$ref":"#/components/schemas/FieldGroup"},{"$ref":"#/components/schemas/Address"},{"$ref":"#/components/schemas/TextField"},{"$ref":"#/components/schemas/NumberField"},{"$ref":"#/components/schemas/NumberWithUnitField"},{"$ref":"#/components/schemas/TextAreaField"},{"$ref":"#/components/schemas/AgeField"},{"$ref":"#/components/schemas/DateField"},{"$ref":"#/components/schemas/TimeField"},{"$ref":"#/components/schemas/DateRangeField"},{"$ref":"#/components/schemas/SelectDateRangeField"},{"$ref":"#/components/schemas/ImageViewField"},{"$ref":"#/components/schemas/Paragraph"},{"$ref":"#/components/schemas/Heading"},{"$ref":"#/components/schemas/RadioGroup"},{"$ref":"#/components/schemas/BulletList"},{"$ref":"#/components/schemas/PageHeader"},{"$ref":"#/components/schemas/Select"},{"$ref":"#/components/schemas/NameField"},{"$ref":"#/components/schemas/PhoneField"},{"$ref":"#/components/schemas/IdField"},{"$ref":"#/components/schemas/Checkbox"},{"$ref":"#/components/schemas/File"},{"$ref":"#/components/schemas/Country"},{"$ref":"#/components/schemas/AdministrativeAreaField"},{"$ref":"#/components/schemas/Divider"},{"$ref":"#/components/schemas/LocationInput"},{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"FACILITY"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"allowedLocations":{"description":"Limits which location options are selectable depending on user jurisdiction and location.","type":"object","properties":{"$jurisdiction":{"anyOf":[{"type":"string","enum":["administrativeArea","location","all"],"description":"Filters based on user jurisdiction relative to their office location in hierarchy."},{"type":"object","properties":{"$scope":{"type":"string","enum":["organisation.read-locations","user.read","user.create","user.edit","user.search","record.search","record.create","record.read","record.declare","record.notify","record.edit","record.reject","record.archive","record.unarchive","record.review-duplicates","record.register","record.print-certified-copies","record.request-correction","record.correct","record.unassign-others","record.custom-action","record.action.accept","record.action.reject","bypassratelimit","record.reindex","user.data-seeding","integration.create","integration.audit.read","record.import","config.update-all","location.edit","attachment.upload","profile.electronic-signature","user.read-only-my-audit","performance.read","performance.read-dashboards","performance.vital-statistics-export","workqueue","dashboard.view"]},"$option":{"type":"string","enum":["event","placeOfEvent","createdBy","createdIn","notifiedIn","notifiedBy","declaredIn","declaredBy","status","registeredIn","registeredBy","flags","accessLevel","role","ids"]}},"required":["$scope","$option"],"additionalProperties":false}]}},"required":["$jurisdiction"],"additionalProperties":false},"activeOnly":{"type":"boolean"},"anchorToDateOfEvent":{"type":"boolean"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"Input field for a facility"},{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"OFFICE"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"allowedLocations":{"description":"Limits which location options are selectable depending on user jurisdiction and location.","type":"object","properties":{"$jurisdiction":{"anyOf":[{"type":"string","enum":["administrativeArea","location","all"],"description":"Filters based on user jurisdiction relative to their office location in hierarchy."},{"type":"object","properties":{"$scope":{"type":"string","enum":["organisation.read-locations","user.read","user.create","user.edit","user.search","record.search","record.create","record.read","record.declare","record.notify","record.edit","record.reject","record.archive","record.unarchive","record.review-duplicates","record.register","record.print-certified-copies","record.request-correction","record.correct","record.unassign-others","record.custom-action","record.action.accept","record.action.reject","bypassratelimit","record.reindex","user.data-seeding","integration.create","integration.audit.read","record.import","config.update-all","location.edit","attachment.upload","profile.electronic-signature","user.read-only-my-audit","performance.read","performance.read-dashboards","performance.vital-statistics-export","workqueue","dashboard.view"]},"$option":{"type":"string","enum":["event","placeOfEvent","createdBy","createdIn","notifiedIn","notifiedBy","declaredIn","declaredBy","status","registeredIn","registeredBy","flags","accessLevel","role","ids"]}},"required":["$scope","$option"],"additionalProperties":false}]}},"required":["$jurisdiction"],"additionalProperties":false},"activeOnly":{"type":"boolean"},"anchorToDateOfEvent":{"type":"boolean"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"Input field for an office"},{"$ref":"#/components/schemas/SignatureField"},{"$ref":"#/components/schemas/EmailField"},{"$ref":"#/components/schemas/FileUploadWithOptions"},{"$ref":"#/components/schemas/DataField"},{"$ref":"#/components/schemas/ButtonField"},{"$ref":"#/components/schemas/AlphaPrintButton"},{"$ref":"#/components/schemas/HttpField"},{"$ref":"#/components/schemas/AutocompleteField"},{"$ref":"#/components/schemas/LinkButtonField"},{"$ref":"#/components/schemas/VerificationStatus"},{"$ref":"#/components/schemas/QrReaderField"},{"$ref":"#/components/schemas/IdReaderField"},{"$ref":"#/components/schemas/QueryParamReaderField"},{"$ref":"#/components/schemas/LoaderField"},{"$ref":"#/components/schemas/SearchField"},{"$ref":"#/components/schemas/CustomField"},{"$ref":"#/components/schemas/HiddenField"},{"$ref":"#/components/schemas/UserRoleField"}],"description":"Form field configuration","type":"object"},"FieldGroup":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"FIELD_GROUP"},"fields":{"type":"array","items":{"$ref":"#/components/schemas/FieldConfig"}},"configuration":{"type":"object","properties":{"separator":{"description":"Joins the subfield values when the group is rendered as output, e.g. \", \". Defaults to one subfield per line.","type":"string"},"hideEmptyFields":{"description":"Leaves subfields without a value out of the output. Pair it with a separator so the separator does not double up around the gaps.","default":false,"type":"boolean"}},"additionalProperties":false}},"required":["id","label","type","fields"],"additionalProperties":false,"description":"A group of fields that are displayed together"},"FieldConditional":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"SHOW"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'SHOW' conditional is defined, the component is shown to the user only if the condition is met"},{"type":"object","properties":{"type":{"type":"string","const":"ENABLE"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'ENABLE' conditional is defined, the component is enabled only if the condition is met"},{"type":"object","properties":{"type":{"type":"string","const":"DISPLAY_ON_REVIEW"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'DISPLAY_ON_REVIEW' conditional is defined, the component is shown on the review page only if both the 'DISPLAY_ON_REVIEW' and 'SHOW' conditions are met. This should only be used for fields within declaration forms, as they are the only ones with review pages."}],"description":"Conditional gating whether a form field is shown (SHOW), enabled (ENABLE), or displayed on the review page (DISPLAY_ON_REVIEW). When omitted, the field is shown and enabled for everyone, and is displayed on review whenever it has a value.","type":"object"},"ValidationConfig":{"type":"object","properties":{"validator":{"description":"Conditional expression that must hold for the field value to be considered valid.","$ref":"#/components/schemas/Conditional"},"message":{"description":"Error message displayed when the validator does not hold.","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["validator","message"],"additionalProperties":false,"description":"Validation rule applied to a form field. The validator is a conditional expression that must hold for the field value to be considered valid."},"Address":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"ADDRESS"},"configuration":{"type":"object","properties":{"lineSeparator":{"type":"string"},"fields":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"type":{"type":"string","const":"COUNTRY"},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"optionOverrides":{"description":"Conditionals for specific countries. Countries not listed are always shown and enabled.","type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"The value of the option"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}}},"required":["value"],"additionalProperties":false}}},"required":["id","type"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"type":{"type":"string","const":"ADMINISTRATIVE_AREA"},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]}},"required":["id","type"],"additionalProperties":false}]}},"streetAddressForm":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"required":{"default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"label":{"$ref":"#/components/schemas/TranslationConfigOutput"},"type":{"type":"string","const":"TEXT"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"parent":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}},"required":["id","label","type"],"additionalProperties":false}},"allowedLocations":{"description":"Limits which location options are selectable depending on user jurisdiction and location.","type":"object","properties":{"$jurisdiction":{"anyOf":[{"type":"string","enum":["administrativeArea","location","all"],"description":"Filters based on user jurisdiction relative to their office location in hierarchy."},{"type":"object","properties":{"$scope":{"type":"string","enum":["organisation.read-locations","user.read","user.create","user.edit","user.search","record.search","record.create","record.read","record.declare","record.notify","record.edit","record.reject","record.archive","record.unarchive","record.review-duplicates","record.register","record.print-certified-copies","record.request-correction","record.correct","record.unassign-others","record.custom-action","record.action.accept","record.action.reject","bypassratelimit","record.reindex","user.data-seeding","integration.create","integration.audit.read","record.import","config.update-all","location.edit","attachment.upload","profile.electronic-signature","user.read-only-my-audit","performance.read","performance.read-dashboards","performance.vital-statistics-export","workqueue","dashboard.view"]},"$option":{"type":"string","enum":["event","placeOfEvent","createdBy","createdIn","notifiedIn","notifiedBy","declaredIn","declaredBy","status","registeredIn","registeredBy","flags","accessLevel","role","ids"]}},"required":["$scope","$option"],"additionalProperties":false}]}},"required":["$jurisdiction"],"additionalProperties":false},"activeOnly":{"description":"Offer only admin areas that are active at the resolved anchor date (today, or the date of event when anchorToDateOfEvent is set); inactive or not-yet-effective versions are excluded. Propagated to the embedded admin-area selectors.","type":"boolean"},"anchorToDateOfEvent":{"description":"Resolve selectable/displayed versions against the event's date of event (falling back to the record's creation date when empty) instead of today. Does not by itself exclude inactive versions; combine with activeOnly for that. Propagated to the embedded admin-area selectors.","type":"boolean"}},"additionalProperties":false},"defaultValue":{"anyOf":[{"type":"object","properties":{"country":{"type":"string"},"streetLevelDetails":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"addressType":{"type":"string","const":"DOMESTIC"},"administrativeArea":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false}]}},"required":["country","addressType"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]}},"required":["id","label","type"],"additionalProperties":false,"description":"Address input field – a combination of location and text fields"},"TextField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"TEXT"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"default":{"type":"text"},"type":"object","properties":{"maxLength":{"description":"Maximum length of the text","type":"number"},"type":{"type":"string","enum":["text","password"]},"prefix":{"$ref":"#/components/schemas/TranslationConfigOutput"},"postfix":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A text input field"},"NumberField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"NUMBER"},"defaultValue":{"anyOf":[{"type":"number"},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"min":{"description":"Minimum value","type":"number"},"max":{"description":"Maximum value","type":"number"},"integer":{"description":"When true, only whole numbers are allowed","type":"boolean"},"prefix":{"$ref":"#/components/schemas/TranslationConfigOutput"},"postfix":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A number input field"},"NumberWithUnitField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"NUMBER_WITH_UNIT"},"defaultValue":{"anyOf":[{"type":"object","properties":{"numericValue":{"type":"number"},"unit":{"type":"string"}},"required":["numericValue","unit"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"The value of the option"},"label":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/TranslationConfigOutput"}],"description":"The label of the option"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}}},"required":["value","label"],"additionalProperties":false},"description":"A list of options for the unit select"},"configuration":{"type":"object","properties":{"min":{"description":"Minimum value of the number field","type":"number"},"max":{"description":"Maximum value of the number field","type":"number"},"numberFieldPlaceholder":{"description":"Placeholder for the number field","$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type","options"],"additionalProperties":false,"description":"A number with unit input field"},"TextAreaField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"TEXTAREA"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"default":{"rows":4},"type":"object","properties":{"maxLength":{"description":"Maximum length of the text","type":"number"},"rows":{"description":"Number of visible text lines","type":"number"},"cols":{"description":"Number of visible columns","type":"number"},"prefix":{"$ref":"#/components/schemas/TranslationConfigOutput"},"postfix":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A multiline text input"},"AgeField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"AGE"},"defaultValue":{"anyOf":[{"type":"number"},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"asOfDate":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},"prefix":{"$ref":"#/components/schemas/TranslationConfigOutput"},"postfix":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["asOfDate"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"An age input field which uses the current date as the asOfDate"},"DateField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"DATE"},"defaultValue":{"description":"Default date value(yyyy-MM-dd)","anyOf":[{"anyOf":[{"type":"object","properties":{"$$now":{"type":"boolean","const":true}},"required":["$$now"],"additionalProperties":false},{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date in the format YYYY-MM-DD"}]},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"notice":{"description":"Text to display above the date input","$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A date input (yyyy-MM-dd)"},"TimeField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"TIME"},"defaultValue":{"description":"Default time value (HH-mm)","anyOf":[{"anyOf":[{"type":"object","properties":{"$$now":{"type":"boolean","const":true}},"required":["$$now"],"additionalProperties":false},{"type":"string","pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$"}]},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"use12HourFormat":{"description":"Whether to use 12-hour format","type":"boolean"},"notice":{"description":"Text to display above the time input","$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A single time input (HH-mm)"},"DateRangeField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"DATE_RANGE"},"defaultValue":{"anyOf":[{"anyOf":[{"type":"object","properties":{"start":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date in the format YYYY-MM-DD"},"end":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date in the format YYYY-MM-DD"}},"required":["start","end"],"additionalProperties":false},{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date in the format YYYY-MM-DD"}],"description":"Date range with start and end dates in the format YYYY-MM-DD. Inclusive start, exclusive end."},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"notice":{"description":"Text to display above the date input","$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A date range input ({ start: yyyy-MM-dd, end: yyyy-MM-dd })"},"SelectDateRangeField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"SELECT_DATE_RANGE"},"defaultValue":{"anyOf":[{"type":"string","enum":["last7Days","last30Days","last90Days","last365Days"]},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","enum":["last7Days","last30Days","last90Days","last365Days"],"description":"The value of the option"},"label":{"description":"The label of the option","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["value","label"],"additionalProperties":false},"description":"A list of options"}},"required":["id","label","type","options"],"additionalProperties":false,"description":"A date range selection field"},"ImageViewField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"IMAGE_VIEW"},"defaultValue":{"type":"string","minLength":1},"configuration":{"type":"object","properties":{"alt":{"description":"Alternative text for the image","type":"string"},"width":{"description":"CSS width value for the image","type":"string"},"height":{"description":"CSS height value for the image","type":"string"},"textAlign":{"description":"Text alignment for positioning the image in its container","type":"string","enum":["left","center","right","start","end"]},"objectFit":{"description":"How the image should be resized to fit the container","type":"string","enum":["contain","cover","fill","none","scale-down"]}},"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A read-only image component for form pages"},"Paragraph":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"PARAGRAPH"},"configuration":{"default":{},"type":"object","properties":{"styles":{"type":"object","properties":{"hint":{"description":"When true, paragraph is styled as a hint with grey color","type":"boolean"},"textAlign":{"description":"Text alignment for the paragraph","type":"string","enum":["left","center","right","start","end"]}},"additionalProperties":false}},"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A read-only HTML <p> paragraph"},"Heading":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"HEADING"},"configuration":{"default":{},"type":"object","properties":{"styles":{"type":"object","properties":{"fontVariant":{"description":"Font variant to use for the paragraph text","type":"string","enum":["reg12","reg14","reg16","reg18","h4","h3"]},"textAlign":{"description":"Text alignment for the paragraph","type":"string","enum":["left","center","right","start","end"]}},"additionalProperties":false}},"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A read-only heading component for form pages"},"RadioGroup":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"RADIO_GROUP"},"defaultValue":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"The value of the option"},"label":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/TranslationConfigOutput"}],"description":"The label of the option"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}}},"required":["value","label"],"additionalProperties":false},"description":"A list of options"},"configuration":{"type":"object","properties":{"styles":{"type":"object","properties":{"size":{"type":"string","enum":["NORMAL","LARGE"]}},"additionalProperties":false}},"additionalProperties":false}},"required":["id","label","type","options"],"additionalProperties":false,"description":"A grouped radio button field"},"BulletList":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"BULLET_LIST"},"items":{"type":"array","items":{"$ref":"#/components/schemas/TranslationConfigOutput"},"description":"A list of items"},"configuration":{"default":{},"type":"object","properties":{"styles":{"type":"object","properties":{"fontVariant":{"type":"string","enum":["reg12","reg14","reg16","reg18","h4","h3","h2","h1"]}},"additionalProperties":false}},"additionalProperties":false}},"required":["id","label","type","items","configuration"],"additionalProperties":false,"description":"A list of bullet points"},"PageHeader":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"PAGE_HEADER"}},"required":["id","label","type"],"additionalProperties":false,"description":"A read-only header component for form pages"},"Select":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"SELECT"},"defaultValue":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"The value of the option"},"label":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/TranslationConfigOutput"}],"description":"The label of the option"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}}},"required":["value","label"],"additionalProperties":false},"description":"A list of options"},"noOptionsMessage":{"description":"\n    A translation configuration object used to display a message when no options are available.\n    It must follow the shape: { id: string; defaultMessage: string; description?: string }.\n    The message is rendered via intl.formatMessage(noOptionsMessage, { input }),\n    where 'input' represents the text entered in the Select field.\n    You can reference this variable in your message, for example:\n    { ..., defaultMessage: \"'{input}' is not listed among the health facilities.\" }\n  ","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["id","label","type","options"],"additionalProperties":false,"description":"A select input field"},"NameField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"NAME"},"defaultValue":{"anyOf":[{"type":"object","properties":{"firstname":{"anyOf":[{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false},{"type":"string","minLength":1}]},"middlename":{"anyOf":[{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false},{"type":"string","minLength":1}]},"surname":{"anyOf":[{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false},{"type":"string","minLength":1}]}},"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"default":{"name":{"firstname":{"required":true},"surname":{"required":true}}},"type":"object","properties":{"name":{"default":{"firstname":{"required":true},"surname":{"required":true}},"type":"object","properties":{"firstname":{"type":"object","properties":{"required":{"default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"label":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false},"middlename":{"type":"object","properties":{"required":{"default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"label":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false},"surname":{"type":"object","properties":{"required":{"default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"label":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"additionalProperties":false},"order":{"type":"array","items":{"type":"string","enum":["firstname","middlename","surname"]}},"maxLength":{"description":"Maximum length of the text","type":"number"},"prefix":{"$ref":"#/components/schemas/TranslationConfigOutput"},"postfix":{"$ref":"#/components/schemas/TranslationConfigOutput"},"showParentFieldError":{"description":"If true, shows the parent field error and hides the subfield error","default":false,"type":"boolean"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A field for entering a persons name"},"PhoneField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"type":{"type":"string","const":"PHONE"}},"required":["id","label","type"],"additionalProperties":false,"description":"A field for entering a phone number"},"IdField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"type":{"type":"string","const":"ID"}},"required":["id","label","type"],"additionalProperties":false,"description":"A field for entering an ID"},"Checkbox":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"CHECKBOX"},"defaultValue":{"default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]}},"required":["id","label","type","defaultValue"],"additionalProperties":false,"description":"A boolean checkbox field"},"File":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"FILE"},"defaultValue":{"anyOf":[{"type":"object","properties":{"path":{"type":"string","description":"A relative path within the S3 bucket, never starting with /. e.g. document-id.jpg or directory/document-id.jpg. The document service constructs the full /bucket/path internally."},"originalFilename":{"type":"string"},"type":{"type":"string"}},"required":["path","originalFilename","type"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"default":{"maxFileSize":5242880},"type":"object","properties":{"maxFileSize":{"default":5242880,"type":"number","description":"Maximum file size in bytes"},"acceptedFileTypes":{"description":"List of allowed file formats for the signature","type":"array","items":{"type":"string","enum":["image/png","image/jpg","image/jpeg","image/svg+xml","application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.oasis.opendocument.text"]}},"maxImageSize":{"type":"object","properties":{"targetSize":{"type":"object","properties":{"width":{"type":"number"},"height":{"type":"number"}},"required":["width","height"],"additionalProperties":false}},"required":["targetSize"],"additionalProperties":false},"style":{"type":"object","properties":{"width":{"description":"Whether the file upload button should take the full width of the container or not","type":"string","enum":["full","auto"]}},"additionalProperties":false},"fileName":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["maxFileSize"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A file upload field"},"Country":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"COUNTRY"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"optionOverrides":{"description":"Conditionals for specific countries. Countries not listed are always shown and enabled.","type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"The value of the option"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}}},"required":["value"],"additionalProperties":false}}},"required":["id","label","type"],"additionalProperties":false,"description":"A field for selecting a country"},"AdministrativeAreaField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"ADMINISTRATIVE_AREA"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"partOf":{"description":"Parent location","type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false},"type":{"type":"string","enum":["ADMIN_STRUCTURE","HEALTH_FACILITY","CRVS_OFFICE"]},"allowedLocations":{"description":"Limits which location options are selectable depending on user jurisdiction and location.","type":"object","properties":{"$jurisdiction":{"anyOf":[{"type":"string","enum":["administrativeArea","location","all"],"description":"Filters based on user jurisdiction relative to their office location in hierarchy."},{"type":"object","properties":{"$scope":{"type":"string","enum":["organisation.read-locations","user.read","user.create","user.edit","user.search","record.search","record.create","record.read","record.declare","record.notify","record.edit","record.reject","record.archive","record.unarchive","record.review-duplicates","record.register","record.print-certified-copies","record.request-correction","record.correct","record.unassign-others","record.custom-action","record.action.accept","record.action.reject","bypassratelimit","record.reindex","user.data-seeding","integration.create","integration.audit.read","record.import","config.update-all","location.edit","attachment.upload","profile.electronic-signature","user.read-only-my-audit","performance.read","performance.read-dashboards","performance.vital-statistics-export","workqueue","dashboard.view"]},"$option":{"type":"string","enum":["event","placeOfEvent","createdBy","createdIn","notifiedIn","notifiedBy","declaredIn","declaredBy","status","registeredIn","registeredBy","flags","accessLevel","role","ids"]}},"required":["$scope","$option"],"additionalProperties":false}]}},"required":["$jurisdiction"],"additionalProperties":false},"activeOnly":{"description":"Offer only locations that are active at the resolved anchor date (today, or the date of event when anchorToDateOfEvent is set); inactive or not-yet-effective versions are excluded.","type":"boolean"},"anchorToDateOfEvent":{"description":"Resolve selectable/displayed versions against the event's date of event (falling back to the record's creation date when empty) instead of today. Does not by itself exclude inactive versions; combine with activeOnly for that.","type":"boolean"}},"required":["type"],"additionalProperties":false,"description":"Administrative area options"}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"Administrative area input field"},"Divider":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"DIVIDER"}},"required":["id","label","type"],"additionalProperties":false,"description":"A horizontal line divider"},"LocationInput":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"LOCATION"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"locationTypes":{"description":"Types of the locations that are available for selection.","type":"array","items":{"type":"string"}},"allowedLocations":{"description":"Limits which location options are selectable depending on user jurisdiction and location.","type":"object","properties":{"$jurisdiction":{"anyOf":[{"type":"string","enum":["administrativeArea","location","all"],"description":"Filters based on user jurisdiction relative to their office location in hierarchy."},{"type":"object","properties":{"$scope":{"type":"string","enum":["organisation.read-locations","user.read","user.create","user.edit","user.search","record.search","record.create","record.read","record.declare","record.notify","record.edit","record.reject","record.archive","record.unarchive","record.review-duplicates","record.register","record.print-certified-copies","record.request-correction","record.correct","record.unassign-others","record.custom-action","record.action.accept","record.action.reject","bypassratelimit","record.reindex","user.data-seeding","integration.create","integration.audit.read","record.import","config.update-all","location.edit","attachment.upload","profile.electronic-signature","user.read-only-my-audit","performance.read","performance.read-dashboards","performance.vital-statistics-export","workqueue","dashboard.view"]},"$option":{"type":"string","enum":["event","placeOfEvent","createdBy","createdIn","notifiedIn","notifiedBy","declaredIn","declaredBy","status","registeredIn","registeredBy","flags","accessLevel","role","ids"]}},"required":["$scope","$option"],"additionalProperties":false}]}},"required":["$jurisdiction"],"additionalProperties":false},"activeOnly":{"description":"Offer only locations that are active at the resolved anchor date (today, or the date of event when anchorToDateOfEvent is set); inactive or not-yet-effective versions are excluded.","type":"boolean"},"anchorToDateOfEvent":{"description":"Resolve selectable/displayed versions against the event's date of event (falling back to the record's creation date when empty) instead of today. Does not by itself exclude inactive versions; combine with activeOnly for that.","type":"boolean"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A field for selecting a location"},"SignatureField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"SIGNATURE"},"signaturePromptLabel":{"description":"Title of the signature modal","$ref":"#/components/schemas/TranslationConfigOutput"},"defaultValue":{"anyOf":[{"type":"object","properties":{"path":{"type":"string","description":"A relative path within the S3 bucket, never starting with /. e.g. document-id.jpg or directory/document-id.jpg. The document service constructs the full /bucket/path internally."},"originalFilename":{"type":"string"},"type":{"type":"string"}},"required":["path","originalFilename","type"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"default":{"maxFileSize":5242880},"type":"object","properties":{"maxFileSize":{"default":5242880,"type":"number","description":"Maximum file size in bytes"},"acceptedFileTypes":{"description":"List of allowed file formats for the signature","type":"array","items":{"type":"string","enum":["image/png","image/jpg","image/jpeg","image/svg+xml","application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.oasis.opendocument.text"]}}},"required":["maxFileSize"],"additionalProperties":false}},"required":["id","label","type","signaturePromptLabel","configuration"],"additionalProperties":false,"description":"A signature input field"},"EmailField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"EMAIL"},"configuration":{"default":{"maxLength":255},"type":"object","properties":{"maxLength":{"description":"Maximum length of the text","type":"number"}},"additionalProperties":false},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]}},"required":["id","label","type"],"additionalProperties":false,"description":"An email input field"},"FileUploadWithOptions":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"FILE_WITH_OPTIONS"},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"The value of the option"},"label":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/TranslationConfigOutput"}],"description":"The label of the option"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}}},"required":["value","label"],"additionalProperties":false},"description":"A list of options"},"defaultValue":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"A relative path within the S3 bucket, never starting with /. e.g. document-id.jpg or directory/document-id.jpg. The document service constructs the full /bucket/path internally."},"originalFilename":{"type":"string"},"type":{"type":"string"},"option":{"type":"string"}},"required":["path","originalFilename","type","option"],"additionalProperties":false}},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"default":{"maxFileSize":5242880},"type":"object","properties":{"maxFileSize":{"default":5242880,"type":"number","description":"Maximum file size in bytes"},"maxImageSize":{"type":"object","properties":{"targetSize":{"type":"object","properties":{"width":{"type":"number"},"height":{"type":"number"}},"required":["width","height"],"additionalProperties":false}},"required":["targetSize"],"additionalProperties":false},"acceptedFileTypes":{"description":"List of allowed file formats for the signature","type":"array","items":{"type":"string","enum":["image/png","image/jpg","image/jpeg","image/svg+xml","application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.oasis.opendocument.text"]}}},"required":["maxFileSize"],"additionalProperties":false}},"required":["id","label","type","options","configuration"],"additionalProperties":false,"description":"A field for uploading files with file type options"},"DataField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"DATA"},"configuration":{"type":"object","properties":{"subtitle":{"$ref":"#/components/schemas/TranslationConfigOutput"},"data":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","description":"ID for the data entry."},"label":{"$ref":"#/components/schemas/TranslationConfigOutput"},"value":{"anyOf":[{"anyOf":[{"$ref":"#/components/schemas/TranslationConfigOutput"},{"type":"string"}]},{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}]}},"required":["id","label","value"],"additionalProperties":false,"description":"Static data entry"},{"type":"object","properties":{"fieldId":{"type":"string"}},"required":["fieldId"],"additionalProperties":false}],"description":"Data entry can be either a static data entry, or a reference to another field in the current form or the declaration."}}},"required":["data"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A field for displaying a table of read-only data"},"ButtonField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"BUTTON"},"defaultValue":{"anyOf":[{"type":"number"},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"icon":{"description":"Icon for the button. You can find icons from OpenCRVS UI-Kit.","type":"string"},"loading":{"description":"Whether the button is in a loading state and shows a spinner","type":"boolean"},"buttonSize":{"description":"Size of the button.","type":"string","enum":["small","medium","large"]},"buttonType":{"description":"Type of the button.","type":"string","enum":["primary","secondary","tertiary","positive","negative","secondaryNegative","icon","iconPrimary"]},"textColor":{"description":"Color of the text.","type":"string","enum":["primary","copy"]},"textVariant":{"description":"Variant of the text.","type":"string","enum":["bold14","reg14"]},"text":{"description":"Text to display on the button","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["text"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A generic button that can be used to trigger an action"},"AlphaPrintButton":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"ALPHA_PRINT_BUTTON"},"configuration":{"type":"object","properties":{"template":{"type":"string","description":"Template ID from countryconfig templates to use for printing"},"buttonLabel":{"description":"Label for the print button","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["template"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"An experimental print button field for printing certificates during the declaration process"},"HttpField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"HTTP"},"defaultValue":{"anyOf":[{"type":"object","properties":{"loading":{"type":"boolean"},"error":{"anyOf":[{"type":"object","properties":{"statusCode":{"type":"number"},"message":{"type":"string"}},"required":["statusCode","message"],"additionalProperties":false},{"type":"null"}]},"data":{}},"required":["loading","data"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"trigger":{"description":"Reference to the field that triggers the HTTP request when its value changes. If not provided, the HTTP request is triggered once on component mount.","type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false},"url":{"type":"string","description":"URL to send the HTTP request to"},"method":{"type":"string","enum":["GET","POST","PUT","DELETE"]},"headers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"body":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"errorValue":{"description":"Value to set if the request fails"},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}]}},"timeout":{"default":15000,"description":"Request timeout in milliseconds","type":"number"}},"required":["url","method","timeout"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"Makes a background HTTP request to an external service and stores the response so other fields can use it. Has no visible UI — pair with LOADER to show request status."},"AutocompleteField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"AUTOCOMPLETE"},"configuration":{"type":"object","properties":{"url":{"type":"string","description":"URL to fetch autocomplete suggestions from. This should be a country config server endpoint."},"method":{"default":"GET","type":"string","enum":["GET","POST"]},"defaultOptions":{"description":"Manual entry is supported through configuration, allowing users to provide values not currently represented in the dataset.","type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"type":"string"}},"required":["label","value"],"additionalProperties":false}}},"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"Generic autocomplete component designed for use with large dictionary-based datasets. The component supports dynamic retrieval of options from configurable data sources and is intended for datasets that may contain tens or hundreds of thousands of records."},"LinkButtonField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"LINK_BUTTON"},"configuration":{"type":"object","properties":{"url":{"type":"string","description":"URL to open"},"text":{"description":"Text to display on the button","$ref":"#/components/schemas/TranslationConfigOutput"},"icon":{"description":"Icon for the button. You can find icons from OpenCRVS UI-Kit.","type":"string"}},"required":["url","text"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A button that opens a URL link"},"VerificationStatus":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"VERIFICATION_STATUS"},"defaultValue":{"anyOf":[{"type":"string","enum":["verified","authenticated","failed","pending"]},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"status":{"description":"Text to display on the status pill.","$ref":"#/components/schemas/TranslationConfigOutput"},"description":{"description":"Explaining text on the banner in form.","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["status","description"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"Displays a verification state (e.g. ID verified / pending). Often paired with ID_READER — it can read its value off an ID_READER rather than holding its own."},"QrReaderField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"QR_READER"},"defaultValue":{"anyOf":[{"type":"object","properties":{"data":{}},"required":["data"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"validator":{"$ref":"#/components/schemas/QrReaderFieldValidator"}},"required":["validator"],"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"QR code reader field, including optional JSON Schema validator."},"QrReaderFieldValidator":{"description":"JSON Schema to validate the scanned QR code data against before populating the form fields."},"IdReaderField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"ID_READER"},"defaultValue":{"anyOf":[{"type":"object","properties":{"data":{}},"required":["data"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"methods":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/QrReaderField"},{"$ref":"#/components/schemas/LinkButtonField"}],"description":"Methods for reading an ID"}}},"required":["id","label","type","methods"],"additionalProperties":false,"description":"A wrapper around nested form fields, specifically QR_READER and LINK_BUTTON. It can hold the QR_READERs value."},"QueryParamReaderField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"QUERY_PARAM_READER"},"configuration":{"type":"object","properties":{"pickParams":{"type":"array","items":{"type":"string"},"description":"List of query parameters to read from the URL"}},"required":["pickParams"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A field that maps URL query params into form values and clears them afterward"},"LoaderField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"description":"Loader field does not show a label by default","default":true,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"LOADER"},"variant":{"default":"default","type":"string","enum":["default","highlighted"]},"configuration":{"type":"object","properties":{"text":{"description":"Display text above the loading spinner","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["text"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A non-interactive field that indicates an in progress operation in form"},"SearchField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"SEARCH"},"defaultValue":{"anyOf":[{"type":"object","properties":{"loading":{"type":"boolean"},"error":{"anyOf":[{"type":"object","properties":{"statusCode":{"type":"number"},"message":{"type":"string"}},"required":["statusCode","message"],"additionalProperties":false},{"type":"null"}]},"data":{}},"required":["loading","data"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"query":{"default":{"type":"and","clauses":[{"eventType":"tennis-club-membership","status":{"type":"anyOf","terms":["CREATED","NOTIFIED","DECLARED","REGISTERED","ARCHIVED"]},"updatedAt":{"type":"range","gte":"2025-05-22","lte":"2025-05-29"},"data":{}}]},"$ref":"#/components/schemas/QueryTypeOutput"},"limit":{"default":100,"type":"number"},"offset":{"default":0,"type":"number"},"validation":{"$ref":"#/components/schemas/ValidationConfig"},"indicators":{"type":"object","properties":{"loading":{"description":"Text to display while the search is in progress","$ref":"#/components/schemas/TranslationConfigOutput"},"offline":{"description":"Text to display when the application is offline","$ref":"#/components/schemas/TranslationConfigOutput"},"noResultsError":{"description":"Text to display when no results are found during the search","$ref":"#/components/schemas/TranslationConfigOutput"},"httpError":{"description":"Text to display when there is an HTTP error during the search","$ref":"#/components/schemas/TranslationConfigOutput"},"confirmButton":{"$ref":"#/components/schemas/TranslationConfigOutput"},"clearButton":{"$ref":"#/components/schemas/TranslationConfigOutput"},"clearModal":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/TranslationConfigOutput"},"description":{"$ref":"#/components/schemas/TranslationConfigOutput"},"cancel":{"$ref":"#/components/schemas/TranslationConfigOutput"},"confirm":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false},"ok":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["query","limit","offset","validation"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A search input field"},"QueryTypeOutput":{"type":"object","properties":{"type":{"anyOf":[{"type":"string","const":"and"},{"type":"string","const":"or"}],"default":"and"},"clauses":{"minItems":1,"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/QueryExpressionOutput"},{"$ref":"#/components/schemas/QueryTypeOutput"}]},"default":[{"eventType":"tennis-club-membership","status":{"type":"anyOf","terms":["CREATED","NOTIFIED","DECLARED","REGISTERED","ARCHIVED"]},"updatedAt":{"type":"range","gte":"2025-05-22","lte":"2025-05-29"},"data":{}}]}},"required":["type","clauses"],"additionalProperties":false},"QueryExpressionOutput":{"type":"object","properties":{"id":{"type":"string"},"eventType":{"type":"string"},"status":{"anyOf":[{"$ref":"#/components/schemas/AnyOfStatusOutput"},{"$ref":"#/components/schemas/ExactStatusOutput"}]},"createdAt":{"$ref":"#/components/schemas/DateConditionOutput"},"updatedAt":{"$ref":"#/components/schemas/DateConditionOutput"},"legalStatuses.DECLARED.createdAtLocation":{"anyOf":[{"$ref":"#/components/schemas/WithinOutput"},{"type":"null"}]},"legalStatuses.DECLARED.createdByRole":{"$ref":"#/components/schemas/AnyOfOutput"},"legalStatuses.REGISTERED.acceptedAt":{"$ref":"#/components/schemas/DateConditionOutput"},"legalStatuses.REGISTERED.createdAtLocation":{"anyOf":[{"$ref":"#/components/schemas/WithinOutput"},{"type":"null"}]},"legalStatuses.REGISTERED.createdByRole":{"$ref":"#/components/schemas/AnyOfOutput"},"legalStatuses.REGISTERED.registrationNumber":{"$ref":"#/components/schemas/ExactOutput"},"createdAtLocation":{"anyOf":[{"$ref":"#/components/schemas/WithinOutput"},{"$ref":"#/components/schemas/ExactOutput"}]},"updatedAtLocation":{"anyOf":[{"$ref":"#/components/schemas/WithinOutput"},{"$ref":"#/components/schemas/ExactOutput"}]},"assignedTo":{"$ref":"#/components/schemas/ExactOutput"},"createdByUserType":{"$ref":"#/components/schemas/ExactUserTypeOutput"},"updatedByUserRole":{"$ref":"#/components/schemas/ExactOutput"},"createdBy":{"$ref":"#/components/schemas/ExactOutput"},"updatedBy":{"$ref":"#/components/schemas/ExactOutput"},"trackingId":{"$ref":"#/components/schemas/ExactOutput"},"flags":{"$ref":"#/components/schemas/ContainsFlagsOutput"},"data":{"$ref":"#/components/schemas/QueryInputOutput"}},"additionalProperties":false},"AnyOfStatusOutput":{"type":"object","properties":{"type":{"type":"string","const":"anyOf"},"terms":{"type":"array","items":{"type":"string","enum":["CREATED","NOTIFIED","DECLARED","REGISTERED","ARCHIVED"]}}},"required":["type","terms"],"additionalProperties":false},"ExactStatusOutput":{"type":"object","properties":{"type":{"type":"string","const":"exact"},"term":{"type":"string","enum":["CREATED","NOTIFIED","DECLARED","REGISTERED","ARCHIVED"]}},"required":["type","term"],"additionalProperties":false},"DateConditionOutput":{"anyOf":[{"$ref":"#/components/schemas/ExactDateOutput"},{"$ref":"#/components/schemas/RangeDateOutput"},{"$ref":"#/components/schemas/TimePeriodOutput"}]},"ExactDateOutput":{"type":"object","properties":{"type":{"type":"string","const":"exact"},"term":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}]}},"required":["type","term"],"additionalProperties":false},"RangeDateOutput":{"type":"object","properties":{"type":{"type":"string","const":"range"},"gte":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}]},"lte":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}]}},"required":["type","gte","lte"],"additionalProperties":false},"TimePeriodOutput":{"type":"object","properties":{"type":{"type":"string","const":"timePeriod"},"term":{"type":"string","enum":["last7Days","last30Days","last90Days","last365Days"]}},"required":["type","term"],"additionalProperties":false},"WithinOutput":{"type":"object","properties":{"type":{"type":"string","const":"within"},"location":{"type":"string"}},"required":["type","location"],"additionalProperties":false},"AnyOfOutput":{"type":"object","properties":{"type":{"type":"string","const":"anyOf"},"terms":{"type":"array","items":{"type":"string"}}},"required":["type","terms"],"additionalProperties":false},"ExactOutput":{"type":"object","properties":{"type":{"type":"string","const":"exact"},"term":{"type":"string"}},"required":["type","term"],"additionalProperties":false},"ExactUserTypeOutput":{"type":"object","properties":{"type":{"type":"string","const":"exact"},"term":{"type":"string","enum":["user","system"]}},"required":["type","term"],"additionalProperties":false},"ContainsFlagsOutput":{"type":"object","properties":{"anyOf":{"type":"array","items":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"string","enum":["incomplete","rejected","correction-requested","potential-duplicate","edit-in-progress"]}]},{"type":"string","description":"Custom flag identifier defined by the country config."}]}},"noneOf":{"type":"array","items":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"string","enum":["incomplete","rejected","correction-requested","potential-duplicate","edit-in-progress"]}]},{"type":"string","description":"Custom flag identifier defined by the country config."}]}},"allOf":{"type":"array","items":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"string","enum":["incomplete","rejected","correction-requested","potential-duplicate","edit-in-progress"]}]},{"type":"string","description":"Custom flag identifier defined by the country config."}]}}},"additionalProperties":false},"QueryInputOutput":{"anyOf":[{"oneOf":[{"$ref":"#/components/schemas/FuzzyOutput"},{"$ref":"#/components/schemas/ExactOutput"},{"$ref":"#/components/schemas/RangeOutput"},{"$ref":"#/components/schemas/WithinOutput"},{"$ref":"#/components/schemas/AnyOfOutput"}],"type":"object","discriminator":{"propertyName":"type","mapping":{"fuzzy":"#/components/schemas/FuzzyOutput","exact":"#/components/schemas/ExactOutput","range":"#/components/schemas/RangeOutput","within":"#/components/schemas/WithinOutput","anyOf":"#/components/schemas/AnyOfOutput"}}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/QueryInputOutput"}}]},"FuzzyOutput":{"type":"object","properties":{"type":{"type":"string","const":"fuzzy"},"term":{"type":"string"}},"required":["type","term"],"additionalProperties":false},"RangeOutput":{"type":"object","properties":{"type":{"type":"string","const":"range"},"gte":{"type":"string"},"lte":{"type":"string"}},"required":["type","gte","lte"],"additionalProperties":false},"CustomField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"CUSTOM"},"defaultValue":{},"src":{"type":"string","description":"Module source path for the custom field component"},"configuration":{}},"required":["id","label","type","src"],"additionalProperties":false,"description":"An expiremental custom field that is defined by a module source path"},"HiddenField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"default":false,"type":"boolean"},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"ALPHA_HIDDEN"},"defaultValue":{"type":"string"}},"required":["id","label","type"],"additionalProperties":false,"description":"A non-interactive, hidden field that only hold a value in the form"},"UserRoleField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"USER_ROLE"},"defaultValue":{"type":"string"}},"required":["id","label","type"],"additionalProperties":false,"description":"A select dropdown that is automatically populated with available user roles"},"VerificationActionConfig":{"type":"object","properties":{"verify":{"type":"object","properties":{"label":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["label"],"additionalProperties":false},"cancel":{"type":"object","properties":{"label":{"$ref":"#/components/schemas/TranslationConfigOutput"},"confirmation":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/TranslationConfigOutput"},"body":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["title","body"],"additionalProperties":false}},"required":["label","confirmation"],"additionalProperties":false}},"required":["verify","cancel"],"additionalProperties":false,"description":"Verification action configuration"}}}}
```

## The RequestCorrectionActionConfig object

```json
{"openapi":"3.1.0","info":{"title":"OpenCRVS API","version":"2.0.0"},"components":{"schemas":{"RequestCorrectionActionConfig":{"type":"object","properties":{"label":{"description":"Human readable description of the action","$ref":"#/components/schemas/TranslationConfigOutput"},"flags":{"default":[],"description":"Flag actions which are executed when the action is performed.","type":"array","items":{"$ref":"#/components/schemas/ActionFlagConfig"}},"supportingCopy":{"description":"Text displayed on the confirmation dialog","$ref":"#/components/schemas/TranslationConfigOutput"},"icon":{"type":"string","description":"Icon representing the action"},"conditionals":{"description":"Conditionals which can disable or hide actions.","type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}},"type":{"type":"string","const":"REQUEST_CORRECTION"},"correctionForm":{"type":"object","properties":{"label":{"description":"Human readable description of the form","$ref":"#/components/schemas/TranslationConfigOutput"},"pages":{"type":"array","items":{"$ref":"#/components/schemas/PageConfig"}}},"required":["label","pages"],"additionalProperties":false,"description":"Configuration of the form used for system actions beyond declaration, supporting a wider range of page types."}},"required":["label","flags","type","correctionForm"],"additionalProperties":false,"description":"Configuration for requesting a correction on a registered record."},"TranslationConfigOutput":{"type":"object","properties":{"id":{"type":"string","description":"The identifier of the translation referred in translation CSV files"},"defaultMessage":{"type":"string","description":"Default translation message"},"description":{"type":"string","description":"Describe the translation for a translator to be able to identify it."}},"required":["id","defaultMessage","description"],"additionalProperties":false,"description":"Translation configuration"},"ActionFlagConfig":{"type":"object","properties":{"id":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"string","enum":["incomplete","rejected","correction-requested","potential-duplicate","edit-in-progress"]}]},{"type":"string","description":"Custom flag identifier defined by the country config."}]},"operation":{"type":"string","enum":["add","remove"],"description":"Operation to perform on the flag."},"conditional":{"description":"When conditional is met, the operation is performed on the flag. If not provided, the operation is performed unconditionally.","$ref":"#/components/schemas/Conditional"}},"required":["id","operation"],"additionalProperties":false,"description":"Add or remove operation applied to a flag when the parent action is accepted. Optionally gated by a conditional."},"Conditional":{"description":"JSON schema conditional configuration"},"ActionConditional":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"SHOW"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'SHOW' conditional is defined, the component is shown to the user only if the condition is met"},{"type":"object","properties":{"type":{"type":"string","const":"ENABLE"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'ENABLE' conditional is defined, the component is enabled only if the condition is met"}],"description":"Conditional gating whether an action is shown (SHOW) or enabled (ENABLE). When omitted from an action, the action is shown and enabled for everyone.","type":"object"},"PageConfig":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the page"},"title":{"description":"Header title of the page","$ref":"#/components/schemas/TranslationConfigOutput"},"requireCompletionToContinue":{"default":false,"description":"If true, all required fields must be filled before continuing to the next page","type":"boolean"},"showClearButton":{"description":"If true, a \"Clear\" button is shown at the top of the page allowing the user to reset all fields on the page to their default state","type":"boolean"},"fields":{"type":"array","items":{"$ref":"#/components/schemas/FieldConfig"},"description":"Fields to be rendered on the page"},"conditional":{"description":"Page will be shown if condition is met. If conditional is not defined, the page will be always shown.","$ref":"#/components/schemas/Conditional"},"type":{"default":"FORM","type":"string","const":"FORM"}},"required":["id","title","requireCompletionToContinue","fields","type"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the page"},"title":{"description":"Header title of the page","$ref":"#/components/schemas/TranslationConfigOutput"},"requireCompletionToContinue":{"default":false,"description":"If true, all required fields must be filled before continuing to the next page","type":"boolean"},"showClearButton":{"description":"If true, a \"Clear\" button is shown at the top of the page allowing the user to reset all fields on the page to their default state","type":"boolean"},"fields":{"type":"array","items":{"$ref":"#/components/schemas/FieldConfig"},"description":"Fields to be rendered on the page"},"conditional":{"description":"Page will be shown if condition is met. If conditional is not defined, the page will be always shown.","$ref":"#/components/schemas/Conditional"},"type":{"type":"string","const":"VERIFICATION"},"actions":{"$ref":"#/components/schemas/VerificationActionConfig"}},"required":["id","title","requireCompletionToContinue","fields","type","actions"],"additionalProperties":false}],"description":"Configuration for a single page in a form. Either a form page with fields and a continue button, or a verification page with verify/cancel options.","type":"object"},"FieldConfig":{"oneOf":[{"$ref":"#/components/schemas/FieldGroup"},{"$ref":"#/components/schemas/Address"},{"$ref":"#/components/schemas/TextField"},{"$ref":"#/components/schemas/NumberField"},{"$ref":"#/components/schemas/NumberWithUnitField"},{"$ref":"#/components/schemas/TextAreaField"},{"$ref":"#/components/schemas/AgeField"},{"$ref":"#/components/schemas/DateField"},{"$ref":"#/components/schemas/TimeField"},{"$ref":"#/components/schemas/DateRangeField"},{"$ref":"#/components/schemas/SelectDateRangeField"},{"$ref":"#/components/schemas/ImageViewField"},{"$ref":"#/components/schemas/Paragraph"},{"$ref":"#/components/schemas/Heading"},{"$ref":"#/components/schemas/RadioGroup"},{"$ref":"#/components/schemas/BulletList"},{"$ref":"#/components/schemas/PageHeader"},{"$ref":"#/components/schemas/Select"},{"$ref":"#/components/schemas/NameField"},{"$ref":"#/components/schemas/PhoneField"},{"$ref":"#/components/schemas/IdField"},{"$ref":"#/components/schemas/Checkbox"},{"$ref":"#/components/schemas/File"},{"$ref":"#/components/schemas/Country"},{"$ref":"#/components/schemas/AdministrativeAreaField"},{"$ref":"#/components/schemas/Divider"},{"$ref":"#/components/schemas/LocationInput"},{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"FACILITY"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"allowedLocations":{"description":"Limits which location options are selectable depending on user jurisdiction and location.","type":"object","properties":{"$jurisdiction":{"anyOf":[{"type":"string","enum":["administrativeArea","location","all"],"description":"Filters based on user jurisdiction relative to their office location in hierarchy."},{"type":"object","properties":{"$scope":{"type":"string","enum":["organisation.read-locations","user.read","user.create","user.edit","user.search","record.search","record.create","record.read","record.declare","record.notify","record.edit","record.reject","record.archive","record.unarchive","record.review-duplicates","record.register","record.print-certified-copies","record.request-correction","record.correct","record.unassign-others","record.custom-action","record.action.accept","record.action.reject","bypassratelimit","record.reindex","user.data-seeding","integration.create","integration.audit.read","record.import","config.update-all","location.edit","attachment.upload","profile.electronic-signature","user.read-only-my-audit","performance.read","performance.read-dashboards","performance.vital-statistics-export","workqueue","dashboard.view"]},"$option":{"type":"string","enum":["event","placeOfEvent","createdBy","createdIn","notifiedIn","notifiedBy","declaredIn","declaredBy","status","registeredIn","registeredBy","flags","accessLevel","role","ids"]}},"required":["$scope","$option"],"additionalProperties":false}]}},"required":["$jurisdiction"],"additionalProperties":false},"activeOnly":{"type":"boolean"},"anchorToDateOfEvent":{"type":"boolean"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"Input field for a facility"},{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"OFFICE"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"allowedLocations":{"description":"Limits which location options are selectable depending on user jurisdiction and location.","type":"object","properties":{"$jurisdiction":{"anyOf":[{"type":"string","enum":["administrativeArea","location","all"],"description":"Filters based on user jurisdiction relative to their office location in hierarchy."},{"type":"object","properties":{"$scope":{"type":"string","enum":["organisation.read-locations","user.read","user.create","user.edit","user.search","record.search","record.create","record.read","record.declare","record.notify","record.edit","record.reject","record.archive","record.unarchive","record.review-duplicates","record.register","record.print-certified-copies","record.request-correction","record.correct","record.unassign-others","record.custom-action","record.action.accept","record.action.reject","bypassratelimit","record.reindex","user.data-seeding","integration.create","integration.audit.read","record.import","config.update-all","location.edit","attachment.upload","profile.electronic-signature","user.read-only-my-audit","performance.read","performance.read-dashboards","performance.vital-statistics-export","workqueue","dashboard.view"]},"$option":{"type":"string","enum":["event","placeOfEvent","createdBy","createdIn","notifiedIn","notifiedBy","declaredIn","declaredBy","status","registeredIn","registeredBy","flags","accessLevel","role","ids"]}},"required":["$scope","$option"],"additionalProperties":false}]}},"required":["$jurisdiction"],"additionalProperties":false},"activeOnly":{"type":"boolean"},"anchorToDateOfEvent":{"type":"boolean"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"Input field for an office"},{"$ref":"#/components/schemas/SignatureField"},{"$ref":"#/components/schemas/EmailField"},{"$ref":"#/components/schemas/FileUploadWithOptions"},{"$ref":"#/components/schemas/DataField"},{"$ref":"#/components/schemas/ButtonField"},{"$ref":"#/components/schemas/AlphaPrintButton"},{"$ref":"#/components/schemas/HttpField"},{"$ref":"#/components/schemas/AutocompleteField"},{"$ref":"#/components/schemas/LinkButtonField"},{"$ref":"#/components/schemas/VerificationStatus"},{"$ref":"#/components/schemas/QrReaderField"},{"$ref":"#/components/schemas/IdReaderField"},{"$ref":"#/components/schemas/QueryParamReaderField"},{"$ref":"#/components/schemas/LoaderField"},{"$ref":"#/components/schemas/SearchField"},{"$ref":"#/components/schemas/CustomField"},{"$ref":"#/components/schemas/HiddenField"},{"$ref":"#/components/schemas/UserRoleField"}],"description":"Form field configuration","type":"object"},"FieldGroup":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"FIELD_GROUP"},"fields":{"type":"array","items":{"$ref":"#/components/schemas/FieldConfig"}},"configuration":{"type":"object","properties":{"separator":{"description":"Joins the subfield values when the group is rendered as output, e.g. \", \". Defaults to one subfield per line.","type":"string"},"hideEmptyFields":{"description":"Leaves subfields without a value out of the output. Pair it with a separator so the separator does not double up around the gaps.","default":false,"type":"boolean"}},"additionalProperties":false}},"required":["id","label","type","fields"],"additionalProperties":false,"description":"A group of fields that are displayed together"},"FieldConditional":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"SHOW"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'SHOW' conditional is defined, the component is shown to the user only if the condition is met"},{"type":"object","properties":{"type":{"type":"string","const":"ENABLE"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'ENABLE' conditional is defined, the component is enabled only if the condition is met"},{"type":"object","properties":{"type":{"type":"string","const":"DISPLAY_ON_REVIEW"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'DISPLAY_ON_REVIEW' conditional is defined, the component is shown on the review page only if both the 'DISPLAY_ON_REVIEW' and 'SHOW' conditions are met. This should only be used for fields within declaration forms, as they are the only ones with review pages."}],"description":"Conditional gating whether a form field is shown (SHOW), enabled (ENABLE), or displayed on the review page (DISPLAY_ON_REVIEW). When omitted, the field is shown and enabled for everyone, and is displayed on review whenever it has a value.","type":"object"},"ValidationConfig":{"type":"object","properties":{"validator":{"description":"Conditional expression that must hold for the field value to be considered valid.","$ref":"#/components/schemas/Conditional"},"message":{"description":"Error message displayed when the validator does not hold.","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["validator","message"],"additionalProperties":false,"description":"Validation rule applied to a form field. The validator is a conditional expression that must hold for the field value to be considered valid."},"Address":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"ADDRESS"},"configuration":{"type":"object","properties":{"lineSeparator":{"type":"string"},"fields":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"type":{"type":"string","const":"COUNTRY"},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"optionOverrides":{"description":"Conditionals for specific countries. Countries not listed are always shown and enabled.","type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"The value of the option"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}}},"required":["value"],"additionalProperties":false}}},"required":["id","type"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"type":{"type":"string","const":"ADMINISTRATIVE_AREA"},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]}},"required":["id","type"],"additionalProperties":false}]}},"streetAddressForm":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"required":{"default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"label":{"$ref":"#/components/schemas/TranslationConfigOutput"},"type":{"type":"string","const":"TEXT"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"parent":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}},"required":["id","label","type"],"additionalProperties":false}},"allowedLocations":{"description":"Limits which location options are selectable depending on user jurisdiction and location.","type":"object","properties":{"$jurisdiction":{"anyOf":[{"type":"string","enum":["administrativeArea","location","all"],"description":"Filters based on user jurisdiction relative to their office location in hierarchy."},{"type":"object","properties":{"$scope":{"type":"string","enum":["organisation.read-locations","user.read","user.create","user.edit","user.search","record.search","record.create","record.read","record.declare","record.notify","record.edit","record.reject","record.archive","record.unarchive","record.review-duplicates","record.register","record.print-certified-copies","record.request-correction","record.correct","record.unassign-others","record.custom-action","record.action.accept","record.action.reject","bypassratelimit","record.reindex","user.data-seeding","integration.create","integration.audit.read","record.import","config.update-all","location.edit","attachment.upload","profile.electronic-signature","user.read-only-my-audit","performance.read","performance.read-dashboards","performance.vital-statistics-export","workqueue","dashboard.view"]},"$option":{"type":"string","enum":["event","placeOfEvent","createdBy","createdIn","notifiedIn","notifiedBy","declaredIn","declaredBy","status","registeredIn","registeredBy","flags","accessLevel","role","ids"]}},"required":["$scope","$option"],"additionalProperties":false}]}},"required":["$jurisdiction"],"additionalProperties":false},"activeOnly":{"description":"Offer only admin areas that are active at the resolved anchor date (today, or the date of event when anchorToDateOfEvent is set); inactive or not-yet-effective versions are excluded. Propagated to the embedded admin-area selectors.","type":"boolean"},"anchorToDateOfEvent":{"description":"Resolve selectable/displayed versions against the event's date of event (falling back to the record's creation date when empty) instead of today. Does not by itself exclude inactive versions; combine with activeOnly for that. Propagated to the embedded admin-area selectors.","type":"boolean"}},"additionalProperties":false},"defaultValue":{"anyOf":[{"type":"object","properties":{"country":{"type":"string"},"streetLevelDetails":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"addressType":{"type":"string","const":"DOMESTIC"},"administrativeArea":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false}]}},"required":["country","addressType"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]}},"required":["id","label","type"],"additionalProperties":false,"description":"Address input field – a combination of location and text fields"},"TextField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"TEXT"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"default":{"type":"text"},"type":"object","properties":{"maxLength":{"description":"Maximum length of the text","type":"number"},"type":{"type":"string","enum":["text","password"]},"prefix":{"$ref":"#/components/schemas/TranslationConfigOutput"},"postfix":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A text input field"},"NumberField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"NUMBER"},"defaultValue":{"anyOf":[{"type":"number"},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"min":{"description":"Minimum value","type":"number"},"max":{"description":"Maximum value","type":"number"},"integer":{"description":"When true, only whole numbers are allowed","type":"boolean"},"prefix":{"$ref":"#/components/schemas/TranslationConfigOutput"},"postfix":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A number input field"},"NumberWithUnitField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"NUMBER_WITH_UNIT"},"defaultValue":{"anyOf":[{"type":"object","properties":{"numericValue":{"type":"number"},"unit":{"type":"string"}},"required":["numericValue","unit"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"The value of the option"},"label":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/TranslationConfigOutput"}],"description":"The label of the option"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}}},"required":["value","label"],"additionalProperties":false},"description":"A list of options for the unit select"},"configuration":{"type":"object","properties":{"min":{"description":"Minimum value of the number field","type":"number"},"max":{"description":"Maximum value of the number field","type":"number"},"numberFieldPlaceholder":{"description":"Placeholder for the number field","$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type","options"],"additionalProperties":false,"description":"A number with unit input field"},"TextAreaField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"TEXTAREA"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"default":{"rows":4},"type":"object","properties":{"maxLength":{"description":"Maximum length of the text","type":"number"},"rows":{"description":"Number of visible text lines","type":"number"},"cols":{"description":"Number of visible columns","type":"number"},"prefix":{"$ref":"#/components/schemas/TranslationConfigOutput"},"postfix":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A multiline text input"},"AgeField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"AGE"},"defaultValue":{"anyOf":[{"type":"number"},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"asOfDate":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},"prefix":{"$ref":"#/components/schemas/TranslationConfigOutput"},"postfix":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["asOfDate"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"An age input field which uses the current date as the asOfDate"},"DateField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"DATE"},"defaultValue":{"description":"Default date value(yyyy-MM-dd)","anyOf":[{"anyOf":[{"type":"object","properties":{"$$now":{"type":"boolean","const":true}},"required":["$$now"],"additionalProperties":false},{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date in the format YYYY-MM-DD"}]},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"notice":{"description":"Text to display above the date input","$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A date input (yyyy-MM-dd)"},"TimeField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"TIME"},"defaultValue":{"description":"Default time value (HH-mm)","anyOf":[{"anyOf":[{"type":"object","properties":{"$$now":{"type":"boolean","const":true}},"required":["$$now"],"additionalProperties":false},{"type":"string","pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$"}]},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"use12HourFormat":{"description":"Whether to use 12-hour format","type":"boolean"},"notice":{"description":"Text to display above the time input","$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A single time input (HH-mm)"},"DateRangeField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"DATE_RANGE"},"defaultValue":{"anyOf":[{"anyOf":[{"type":"object","properties":{"start":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date in the format YYYY-MM-DD"},"end":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date in the format YYYY-MM-DD"}},"required":["start","end"],"additionalProperties":false},{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date in the format YYYY-MM-DD"}],"description":"Date range with start and end dates in the format YYYY-MM-DD. Inclusive start, exclusive end."},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"notice":{"description":"Text to display above the date input","$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A date range input ({ start: yyyy-MM-dd, end: yyyy-MM-dd })"},"SelectDateRangeField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"SELECT_DATE_RANGE"},"defaultValue":{"anyOf":[{"type":"string","enum":["last7Days","last30Days","last90Days","last365Days"]},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","enum":["last7Days","last30Days","last90Days","last365Days"],"description":"The value of the option"},"label":{"description":"The label of the option","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["value","label"],"additionalProperties":false},"description":"A list of options"}},"required":["id","label","type","options"],"additionalProperties":false,"description":"A date range selection field"},"ImageViewField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"IMAGE_VIEW"},"defaultValue":{"type":"string","minLength":1},"configuration":{"type":"object","properties":{"alt":{"description":"Alternative text for the image","type":"string"},"width":{"description":"CSS width value for the image","type":"string"},"height":{"description":"CSS height value for the image","type":"string"},"textAlign":{"description":"Text alignment for positioning the image in its container","type":"string","enum":["left","center","right","start","end"]},"objectFit":{"description":"How the image should be resized to fit the container","type":"string","enum":["contain","cover","fill","none","scale-down"]}},"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A read-only image component for form pages"},"Paragraph":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"PARAGRAPH"},"configuration":{"default":{},"type":"object","properties":{"styles":{"type":"object","properties":{"hint":{"description":"When true, paragraph is styled as a hint with grey color","type":"boolean"},"textAlign":{"description":"Text alignment for the paragraph","type":"string","enum":["left","center","right","start","end"]}},"additionalProperties":false}},"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A read-only HTML <p> paragraph"},"Heading":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"HEADING"},"configuration":{"default":{},"type":"object","properties":{"styles":{"type":"object","properties":{"fontVariant":{"description":"Font variant to use for the paragraph text","type":"string","enum":["reg12","reg14","reg16","reg18","h4","h3"]},"textAlign":{"description":"Text alignment for the paragraph","type":"string","enum":["left","center","right","start","end"]}},"additionalProperties":false}},"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A read-only heading component for form pages"},"RadioGroup":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"RADIO_GROUP"},"defaultValue":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"The value of the option"},"label":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/TranslationConfigOutput"}],"description":"The label of the option"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}}},"required":["value","label"],"additionalProperties":false},"description":"A list of options"},"configuration":{"type":"object","properties":{"styles":{"type":"object","properties":{"size":{"type":"string","enum":["NORMAL","LARGE"]}},"additionalProperties":false}},"additionalProperties":false}},"required":["id","label","type","options"],"additionalProperties":false,"description":"A grouped radio button field"},"BulletList":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"BULLET_LIST"},"items":{"type":"array","items":{"$ref":"#/components/schemas/TranslationConfigOutput"},"description":"A list of items"},"configuration":{"default":{},"type":"object","properties":{"styles":{"type":"object","properties":{"fontVariant":{"type":"string","enum":["reg12","reg14","reg16","reg18","h4","h3","h2","h1"]}},"additionalProperties":false}},"additionalProperties":false}},"required":["id","label","type","items","configuration"],"additionalProperties":false,"description":"A list of bullet points"},"PageHeader":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"PAGE_HEADER"}},"required":["id","label","type"],"additionalProperties":false,"description":"A read-only header component for form pages"},"Select":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"SELECT"},"defaultValue":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"The value of the option"},"label":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/TranslationConfigOutput"}],"description":"The label of the option"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}}},"required":["value","label"],"additionalProperties":false},"description":"A list of options"},"noOptionsMessage":{"description":"\n    A translation configuration object used to display a message when no options are available.\n    It must follow the shape: { id: string; defaultMessage: string; description?: string }.\n    The message is rendered via intl.formatMessage(noOptionsMessage, { input }),\n    where 'input' represents the text entered in the Select field.\n    You can reference this variable in your message, for example:\n    { ..., defaultMessage: \"'{input}' is not listed among the health facilities.\" }\n  ","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["id","label","type","options"],"additionalProperties":false,"description":"A select input field"},"NameField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"NAME"},"defaultValue":{"anyOf":[{"type":"object","properties":{"firstname":{"anyOf":[{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false},{"type":"string","minLength":1}]},"middlename":{"anyOf":[{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false},{"type":"string","minLength":1}]},"surname":{"anyOf":[{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false},{"type":"string","minLength":1}]}},"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"default":{"name":{"firstname":{"required":true},"surname":{"required":true}}},"type":"object","properties":{"name":{"default":{"firstname":{"required":true},"surname":{"required":true}},"type":"object","properties":{"firstname":{"type":"object","properties":{"required":{"default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"label":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false},"middlename":{"type":"object","properties":{"required":{"default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"label":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false},"surname":{"type":"object","properties":{"required":{"default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"label":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"additionalProperties":false},"order":{"type":"array","items":{"type":"string","enum":["firstname","middlename","surname"]}},"maxLength":{"description":"Maximum length of the text","type":"number"},"prefix":{"$ref":"#/components/schemas/TranslationConfigOutput"},"postfix":{"$ref":"#/components/schemas/TranslationConfigOutput"},"showParentFieldError":{"description":"If true, shows the parent field error and hides the subfield error","default":false,"type":"boolean"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A field for entering a persons name"},"PhoneField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"type":{"type":"string","const":"PHONE"}},"required":["id","label","type"],"additionalProperties":false,"description":"A field for entering a phone number"},"IdField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"type":{"type":"string","const":"ID"}},"required":["id","label","type"],"additionalProperties":false,"description":"A field for entering an ID"},"Checkbox":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"CHECKBOX"},"defaultValue":{"default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]}},"required":["id","label","type","defaultValue"],"additionalProperties":false,"description":"A boolean checkbox field"},"File":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"FILE"},"defaultValue":{"anyOf":[{"type":"object","properties":{"path":{"type":"string","description":"A relative path within the S3 bucket, never starting with /. e.g. document-id.jpg or directory/document-id.jpg. The document service constructs the full /bucket/path internally."},"originalFilename":{"type":"string"},"type":{"type":"string"}},"required":["path","originalFilename","type"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"default":{"maxFileSize":5242880},"type":"object","properties":{"maxFileSize":{"default":5242880,"type":"number","description":"Maximum file size in bytes"},"acceptedFileTypes":{"description":"List of allowed file formats for the signature","type":"array","items":{"type":"string","enum":["image/png","image/jpg","image/jpeg","image/svg+xml","application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.oasis.opendocument.text"]}},"maxImageSize":{"type":"object","properties":{"targetSize":{"type":"object","properties":{"width":{"type":"number"},"height":{"type":"number"}},"required":["width","height"],"additionalProperties":false}},"required":["targetSize"],"additionalProperties":false},"style":{"type":"object","properties":{"width":{"description":"Whether the file upload button should take the full width of the container or not","type":"string","enum":["full","auto"]}},"additionalProperties":false},"fileName":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["maxFileSize"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A file upload field"},"Country":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"COUNTRY"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"optionOverrides":{"description":"Conditionals for specific countries. Countries not listed are always shown and enabled.","type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"The value of the option"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}}},"required":["value"],"additionalProperties":false}}},"required":["id","label","type"],"additionalProperties":false,"description":"A field for selecting a country"},"AdministrativeAreaField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"ADMINISTRATIVE_AREA"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"partOf":{"description":"Parent location","type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false},"type":{"type":"string","enum":["ADMIN_STRUCTURE","HEALTH_FACILITY","CRVS_OFFICE"]},"allowedLocations":{"description":"Limits which location options are selectable depending on user jurisdiction and location.","type":"object","properties":{"$jurisdiction":{"anyOf":[{"type":"string","enum":["administrativeArea","location","all"],"description":"Filters based on user jurisdiction relative to their office location in hierarchy."},{"type":"object","properties":{"$scope":{"type":"string","enum":["organisation.read-locations","user.read","user.create","user.edit","user.search","record.search","record.create","record.read","record.declare","record.notify","record.edit","record.reject","record.archive","record.unarchive","record.review-duplicates","record.register","record.print-certified-copies","record.request-correction","record.correct","record.unassign-others","record.custom-action","record.action.accept","record.action.reject","bypassratelimit","record.reindex","user.data-seeding","integration.create","integration.audit.read","record.import","config.update-all","location.edit","attachment.upload","profile.electronic-signature","user.read-only-my-audit","performance.read","performance.read-dashboards","performance.vital-statistics-export","workqueue","dashboard.view"]},"$option":{"type":"string","enum":["event","placeOfEvent","createdBy","createdIn","notifiedIn","notifiedBy","declaredIn","declaredBy","status","registeredIn","registeredBy","flags","accessLevel","role","ids"]}},"required":["$scope","$option"],"additionalProperties":false}]}},"required":["$jurisdiction"],"additionalProperties":false},"activeOnly":{"description":"Offer only locations that are active at the resolved anchor date (today, or the date of event when anchorToDateOfEvent is set); inactive or not-yet-effective versions are excluded.","type":"boolean"},"anchorToDateOfEvent":{"description":"Resolve selectable/displayed versions against the event's date of event (falling back to the record's creation date when empty) instead of today. Does not by itself exclude inactive versions; combine with activeOnly for that.","type":"boolean"}},"required":["type"],"additionalProperties":false,"description":"Administrative area options"}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"Administrative area input field"},"Divider":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"DIVIDER"}},"required":["id","label","type"],"additionalProperties":false,"description":"A horizontal line divider"},"LocationInput":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"LOCATION"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"locationTypes":{"description":"Types of the locations that are available for selection.","type":"array","items":{"type":"string"}},"allowedLocations":{"description":"Limits which location options are selectable depending on user jurisdiction and location.","type":"object","properties":{"$jurisdiction":{"anyOf":[{"type":"string","enum":["administrativeArea","location","all"],"description":"Filters based on user jurisdiction relative to their office location in hierarchy."},{"type":"object","properties":{"$scope":{"type":"string","enum":["organisation.read-locations","user.read","user.create","user.edit","user.search","record.search","record.create","record.read","record.declare","record.notify","record.edit","record.reject","record.archive","record.unarchive","record.review-duplicates","record.register","record.print-certified-copies","record.request-correction","record.correct","record.unassign-others","record.custom-action","record.action.accept","record.action.reject","bypassratelimit","record.reindex","user.data-seeding","integration.create","integration.audit.read","record.import","config.update-all","location.edit","attachment.upload","profile.electronic-signature","user.read-only-my-audit","performance.read","performance.read-dashboards","performance.vital-statistics-export","workqueue","dashboard.view"]},"$option":{"type":"string","enum":["event","placeOfEvent","createdBy","createdIn","notifiedIn","notifiedBy","declaredIn","declaredBy","status","registeredIn","registeredBy","flags","accessLevel","role","ids"]}},"required":["$scope","$option"],"additionalProperties":false}]}},"required":["$jurisdiction"],"additionalProperties":false},"activeOnly":{"description":"Offer only locations that are active at the resolved anchor date (today, or the date of event when anchorToDateOfEvent is set); inactive or not-yet-effective versions are excluded.","type":"boolean"},"anchorToDateOfEvent":{"description":"Resolve selectable/displayed versions against the event's date of event (falling back to the record's creation date when empty) instead of today. Does not by itself exclude inactive versions; combine with activeOnly for that.","type":"boolean"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A field for selecting a location"},"SignatureField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"SIGNATURE"},"signaturePromptLabel":{"description":"Title of the signature modal","$ref":"#/components/schemas/TranslationConfigOutput"},"defaultValue":{"anyOf":[{"type":"object","properties":{"path":{"type":"string","description":"A relative path within the S3 bucket, never starting with /. e.g. document-id.jpg or directory/document-id.jpg. The document service constructs the full /bucket/path internally."},"originalFilename":{"type":"string"},"type":{"type":"string"}},"required":["path","originalFilename","type"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"default":{"maxFileSize":5242880},"type":"object","properties":{"maxFileSize":{"default":5242880,"type":"number","description":"Maximum file size in bytes"},"acceptedFileTypes":{"description":"List of allowed file formats for the signature","type":"array","items":{"type":"string","enum":["image/png","image/jpg","image/jpeg","image/svg+xml","application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.oasis.opendocument.text"]}}},"required":["maxFileSize"],"additionalProperties":false}},"required":["id","label","type","signaturePromptLabel","configuration"],"additionalProperties":false,"description":"A signature input field"},"EmailField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"EMAIL"},"configuration":{"default":{"maxLength":255},"type":"object","properties":{"maxLength":{"description":"Maximum length of the text","type":"number"}},"additionalProperties":false},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]}},"required":["id","label","type"],"additionalProperties":false,"description":"An email input field"},"FileUploadWithOptions":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"FILE_WITH_OPTIONS"},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"The value of the option"},"label":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/TranslationConfigOutput"}],"description":"The label of the option"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}}},"required":["value","label"],"additionalProperties":false},"description":"A list of options"},"defaultValue":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"A relative path within the S3 bucket, never starting with /. e.g. document-id.jpg or directory/document-id.jpg. The document service constructs the full /bucket/path internally."},"originalFilename":{"type":"string"},"type":{"type":"string"},"option":{"type":"string"}},"required":["path","originalFilename","type","option"],"additionalProperties":false}},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"default":{"maxFileSize":5242880},"type":"object","properties":{"maxFileSize":{"default":5242880,"type":"number","description":"Maximum file size in bytes"},"maxImageSize":{"type":"object","properties":{"targetSize":{"type":"object","properties":{"width":{"type":"number"},"height":{"type":"number"}},"required":["width","height"],"additionalProperties":false}},"required":["targetSize"],"additionalProperties":false},"acceptedFileTypes":{"description":"List of allowed file formats for the signature","type":"array","items":{"type":"string","enum":["image/png","image/jpg","image/jpeg","image/svg+xml","application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.oasis.opendocument.text"]}}},"required":["maxFileSize"],"additionalProperties":false}},"required":["id","label","type","options","configuration"],"additionalProperties":false,"description":"A field for uploading files with file type options"},"DataField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"DATA"},"configuration":{"type":"object","properties":{"subtitle":{"$ref":"#/components/schemas/TranslationConfigOutput"},"data":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","description":"ID for the data entry."},"label":{"$ref":"#/components/schemas/TranslationConfigOutput"},"value":{"anyOf":[{"anyOf":[{"$ref":"#/components/schemas/TranslationConfigOutput"},{"type":"string"}]},{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}]}},"required":["id","label","value"],"additionalProperties":false,"description":"Static data entry"},{"type":"object","properties":{"fieldId":{"type":"string"}},"required":["fieldId"],"additionalProperties":false}],"description":"Data entry can be either a static data entry, or a reference to another field in the current form or the declaration."}}},"required":["data"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A field for displaying a table of read-only data"},"ButtonField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"BUTTON"},"defaultValue":{"anyOf":[{"type":"number"},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"icon":{"description":"Icon for the button. You can find icons from OpenCRVS UI-Kit.","type":"string"},"loading":{"description":"Whether the button is in a loading state and shows a spinner","type":"boolean"},"buttonSize":{"description":"Size of the button.","type":"string","enum":["small","medium","large"]},"buttonType":{"description":"Type of the button.","type":"string","enum":["primary","secondary","tertiary","positive","negative","secondaryNegative","icon","iconPrimary"]},"textColor":{"description":"Color of the text.","type":"string","enum":["primary","copy"]},"textVariant":{"description":"Variant of the text.","type":"string","enum":["bold14","reg14"]},"text":{"description":"Text to display on the button","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["text"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A generic button that can be used to trigger an action"},"AlphaPrintButton":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"ALPHA_PRINT_BUTTON"},"configuration":{"type":"object","properties":{"template":{"type":"string","description":"Template ID from countryconfig templates to use for printing"},"buttonLabel":{"description":"Label for the print button","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["template"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"An experimental print button field for printing certificates during the declaration process"},"HttpField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"HTTP"},"defaultValue":{"anyOf":[{"type":"object","properties":{"loading":{"type":"boolean"},"error":{"anyOf":[{"type":"object","properties":{"statusCode":{"type":"number"},"message":{"type":"string"}},"required":["statusCode","message"],"additionalProperties":false},{"type":"null"}]},"data":{}},"required":["loading","data"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"trigger":{"description":"Reference to the field that triggers the HTTP request when its value changes. If not provided, the HTTP request is triggered once on component mount.","type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false},"url":{"type":"string","description":"URL to send the HTTP request to"},"method":{"type":"string","enum":["GET","POST","PUT","DELETE"]},"headers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"body":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"errorValue":{"description":"Value to set if the request fails"},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}]}},"timeout":{"default":15000,"description":"Request timeout in milliseconds","type":"number"}},"required":["url","method","timeout"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"Makes a background HTTP request to an external service and stores the response so other fields can use it. Has no visible UI — pair with LOADER to show request status."},"AutocompleteField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"AUTOCOMPLETE"},"configuration":{"type":"object","properties":{"url":{"type":"string","description":"URL to fetch autocomplete suggestions from. This should be a country config server endpoint."},"method":{"default":"GET","type":"string","enum":["GET","POST"]},"defaultOptions":{"description":"Manual entry is supported through configuration, allowing users to provide values not currently represented in the dataset.","type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"type":"string"}},"required":["label","value"],"additionalProperties":false}}},"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"Generic autocomplete component designed for use with large dictionary-based datasets. The component supports dynamic retrieval of options from configurable data sources and is intended for datasets that may contain tens or hundreds of thousands of records."},"LinkButtonField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"LINK_BUTTON"},"configuration":{"type":"object","properties":{"url":{"type":"string","description":"URL to open"},"text":{"description":"Text to display on the button","$ref":"#/components/schemas/TranslationConfigOutput"},"icon":{"description":"Icon for the button. You can find icons from OpenCRVS UI-Kit.","type":"string"}},"required":["url","text"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A button that opens a URL link"},"VerificationStatus":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"VERIFICATION_STATUS"},"defaultValue":{"anyOf":[{"type":"string","enum":["verified","authenticated","failed","pending"]},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"status":{"description":"Text to display on the status pill.","$ref":"#/components/schemas/TranslationConfigOutput"},"description":{"description":"Explaining text on the banner in form.","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["status","description"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"Displays a verification state (e.g. ID verified / pending). Often paired with ID_READER — it can read its value off an ID_READER rather than holding its own."},"QrReaderField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"QR_READER"},"defaultValue":{"anyOf":[{"type":"object","properties":{"data":{}},"required":["data"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"validator":{"$ref":"#/components/schemas/QrReaderFieldValidator"}},"required":["validator"],"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"QR code reader field, including optional JSON Schema validator."},"QrReaderFieldValidator":{"description":"JSON Schema to validate the scanned QR code data against before populating the form fields."},"IdReaderField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"ID_READER"},"defaultValue":{"anyOf":[{"type":"object","properties":{"data":{}},"required":["data"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"methods":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/QrReaderField"},{"$ref":"#/components/schemas/LinkButtonField"}],"description":"Methods for reading an ID"}}},"required":["id","label","type","methods"],"additionalProperties":false,"description":"A wrapper around nested form fields, specifically QR_READER and LINK_BUTTON. It can hold the QR_READERs value."},"QueryParamReaderField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"QUERY_PARAM_READER"},"configuration":{"type":"object","properties":{"pickParams":{"type":"array","items":{"type":"string"},"description":"List of query parameters to read from the URL"}},"required":["pickParams"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A field that maps URL query params into form values and clears them afterward"},"LoaderField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"description":"Loader field does not show a label by default","default":true,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"LOADER"},"variant":{"default":"default","type":"string","enum":["default","highlighted"]},"configuration":{"type":"object","properties":{"text":{"description":"Display text above the loading spinner","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["text"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A non-interactive field that indicates an in progress operation in form"},"SearchField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"SEARCH"},"defaultValue":{"anyOf":[{"type":"object","properties":{"loading":{"type":"boolean"},"error":{"anyOf":[{"type":"object","properties":{"statusCode":{"type":"number"},"message":{"type":"string"}},"required":["statusCode","message"],"additionalProperties":false},{"type":"null"}]},"data":{}},"required":["loading","data"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"query":{"default":{"type":"and","clauses":[{"eventType":"tennis-club-membership","status":{"type":"anyOf","terms":["CREATED","NOTIFIED","DECLARED","REGISTERED","ARCHIVED"]},"updatedAt":{"type":"range","gte":"2025-05-22","lte":"2025-05-29"},"data":{}}]},"$ref":"#/components/schemas/QueryTypeOutput"},"limit":{"default":100,"type":"number"},"offset":{"default":0,"type":"number"},"validation":{"$ref":"#/components/schemas/ValidationConfig"},"indicators":{"type":"object","properties":{"loading":{"description":"Text to display while the search is in progress","$ref":"#/components/schemas/TranslationConfigOutput"},"offline":{"description":"Text to display when the application is offline","$ref":"#/components/schemas/TranslationConfigOutput"},"noResultsError":{"description":"Text to display when no results are found during the search","$ref":"#/components/schemas/TranslationConfigOutput"},"httpError":{"description":"Text to display when there is an HTTP error during the search","$ref":"#/components/schemas/TranslationConfigOutput"},"confirmButton":{"$ref":"#/components/schemas/TranslationConfigOutput"},"clearButton":{"$ref":"#/components/schemas/TranslationConfigOutput"},"clearModal":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/TranslationConfigOutput"},"description":{"$ref":"#/components/schemas/TranslationConfigOutput"},"cancel":{"$ref":"#/components/schemas/TranslationConfigOutput"},"confirm":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false},"ok":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["query","limit","offset","validation"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A search input field"},"QueryTypeOutput":{"type":"object","properties":{"type":{"anyOf":[{"type":"string","const":"and"},{"type":"string","const":"or"}],"default":"and"},"clauses":{"minItems":1,"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/QueryExpressionOutput"},{"$ref":"#/components/schemas/QueryTypeOutput"}]},"default":[{"eventType":"tennis-club-membership","status":{"type":"anyOf","terms":["CREATED","NOTIFIED","DECLARED","REGISTERED","ARCHIVED"]},"updatedAt":{"type":"range","gte":"2025-05-22","lte":"2025-05-29"},"data":{}}]}},"required":["type","clauses"],"additionalProperties":false},"QueryExpressionOutput":{"type":"object","properties":{"id":{"type":"string"},"eventType":{"type":"string"},"status":{"anyOf":[{"$ref":"#/components/schemas/AnyOfStatusOutput"},{"$ref":"#/components/schemas/ExactStatusOutput"}]},"createdAt":{"$ref":"#/components/schemas/DateConditionOutput"},"updatedAt":{"$ref":"#/components/schemas/DateConditionOutput"},"legalStatuses.DECLARED.createdAtLocation":{"anyOf":[{"$ref":"#/components/schemas/WithinOutput"},{"type":"null"}]},"legalStatuses.DECLARED.createdByRole":{"$ref":"#/components/schemas/AnyOfOutput"},"legalStatuses.REGISTERED.acceptedAt":{"$ref":"#/components/schemas/DateConditionOutput"},"legalStatuses.REGISTERED.createdAtLocation":{"anyOf":[{"$ref":"#/components/schemas/WithinOutput"},{"type":"null"}]},"legalStatuses.REGISTERED.createdByRole":{"$ref":"#/components/schemas/AnyOfOutput"},"legalStatuses.REGISTERED.registrationNumber":{"$ref":"#/components/schemas/ExactOutput"},"createdAtLocation":{"anyOf":[{"$ref":"#/components/schemas/WithinOutput"},{"$ref":"#/components/schemas/ExactOutput"}]},"updatedAtLocation":{"anyOf":[{"$ref":"#/components/schemas/WithinOutput"},{"$ref":"#/components/schemas/ExactOutput"}]},"assignedTo":{"$ref":"#/components/schemas/ExactOutput"},"createdByUserType":{"$ref":"#/components/schemas/ExactUserTypeOutput"},"updatedByUserRole":{"$ref":"#/components/schemas/ExactOutput"},"createdBy":{"$ref":"#/components/schemas/ExactOutput"},"updatedBy":{"$ref":"#/components/schemas/ExactOutput"},"trackingId":{"$ref":"#/components/schemas/ExactOutput"},"flags":{"$ref":"#/components/schemas/ContainsFlagsOutput"},"data":{"$ref":"#/components/schemas/QueryInputOutput"}},"additionalProperties":false},"AnyOfStatusOutput":{"type":"object","properties":{"type":{"type":"string","const":"anyOf"},"terms":{"type":"array","items":{"type":"string","enum":["CREATED","NOTIFIED","DECLARED","REGISTERED","ARCHIVED"]}}},"required":["type","terms"],"additionalProperties":false},"ExactStatusOutput":{"type":"object","properties":{"type":{"type":"string","const":"exact"},"term":{"type":"string","enum":["CREATED","NOTIFIED","DECLARED","REGISTERED","ARCHIVED"]}},"required":["type","term"],"additionalProperties":false},"DateConditionOutput":{"anyOf":[{"$ref":"#/components/schemas/ExactDateOutput"},{"$ref":"#/components/schemas/RangeDateOutput"},{"$ref":"#/components/schemas/TimePeriodOutput"}]},"ExactDateOutput":{"type":"object","properties":{"type":{"type":"string","const":"exact"},"term":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}]}},"required":["type","term"],"additionalProperties":false},"RangeDateOutput":{"type":"object","properties":{"type":{"type":"string","const":"range"},"gte":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}]},"lte":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}]}},"required":["type","gte","lte"],"additionalProperties":false},"TimePeriodOutput":{"type":"object","properties":{"type":{"type":"string","const":"timePeriod"},"term":{"type":"string","enum":["last7Days","last30Days","last90Days","last365Days"]}},"required":["type","term"],"additionalProperties":false},"WithinOutput":{"type":"object","properties":{"type":{"type":"string","const":"within"},"location":{"type":"string"}},"required":["type","location"],"additionalProperties":false},"AnyOfOutput":{"type":"object","properties":{"type":{"type":"string","const":"anyOf"},"terms":{"type":"array","items":{"type":"string"}}},"required":["type","terms"],"additionalProperties":false},"ExactOutput":{"type":"object","properties":{"type":{"type":"string","const":"exact"},"term":{"type":"string"}},"required":["type","term"],"additionalProperties":false},"ExactUserTypeOutput":{"type":"object","properties":{"type":{"type":"string","const":"exact"},"term":{"type":"string","enum":["user","system"]}},"required":["type","term"],"additionalProperties":false},"ContainsFlagsOutput":{"type":"object","properties":{"anyOf":{"type":"array","items":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"string","enum":["incomplete","rejected","correction-requested","potential-duplicate","edit-in-progress"]}]},{"type":"string","description":"Custom flag identifier defined by the country config."}]}},"noneOf":{"type":"array","items":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"string","enum":["incomplete","rejected","correction-requested","potential-duplicate","edit-in-progress"]}]},{"type":"string","description":"Custom flag identifier defined by the country config."}]}},"allOf":{"type":"array","items":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"string","enum":["incomplete","rejected","correction-requested","potential-duplicate","edit-in-progress"]}]},{"type":"string","description":"Custom flag identifier defined by the country config."}]}}},"additionalProperties":false},"QueryInputOutput":{"anyOf":[{"oneOf":[{"$ref":"#/components/schemas/FuzzyOutput"},{"$ref":"#/components/schemas/ExactOutput"},{"$ref":"#/components/schemas/RangeOutput"},{"$ref":"#/components/schemas/WithinOutput"},{"$ref":"#/components/schemas/AnyOfOutput"}],"type":"object","discriminator":{"propertyName":"type","mapping":{"fuzzy":"#/components/schemas/FuzzyOutput","exact":"#/components/schemas/ExactOutput","range":"#/components/schemas/RangeOutput","within":"#/components/schemas/WithinOutput","anyOf":"#/components/schemas/AnyOfOutput"}}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/QueryInputOutput"}}]},"FuzzyOutput":{"type":"object","properties":{"type":{"type":"string","const":"fuzzy"},"term":{"type":"string"}},"required":["type","term"],"additionalProperties":false},"RangeOutput":{"type":"object","properties":{"type":{"type":"string","const":"range"},"gte":{"type":"string"},"lte":{"type":"string"}},"required":["type","gte","lte"],"additionalProperties":false},"CustomField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"CUSTOM"},"defaultValue":{},"src":{"type":"string","description":"Module source path for the custom field component"},"configuration":{}},"required":["id","label","type","src"],"additionalProperties":false,"description":"An expiremental custom field that is defined by a module source path"},"HiddenField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"default":false,"type":"boolean"},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"ALPHA_HIDDEN"},"defaultValue":{"type":"string"}},"required":["id","label","type"],"additionalProperties":false,"description":"A non-interactive, hidden field that only hold a value in the form"},"UserRoleField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"USER_ROLE"},"defaultValue":{"type":"string"}},"required":["id","label","type"],"additionalProperties":false,"description":"A select dropdown that is automatically populated with available user roles"},"VerificationActionConfig":{"type":"object","properties":{"verify":{"type":"object","properties":{"label":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["label"],"additionalProperties":false},"cancel":{"type":"object","properties":{"label":{"$ref":"#/components/schemas/TranslationConfigOutput"},"confirmation":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/TranslationConfigOutput"},"body":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["title","body"],"additionalProperties":false}},"required":["label","confirmation"],"additionalProperties":false}},"required":["verify","cancel"],"additionalProperties":false,"description":"Verification action configuration"}}}}
```

## The ApproveCorrectionActionConfig object

```json
{"openapi":"3.1.0","info":{"title":"OpenCRVS API","version":"2.0.0"},"components":{"schemas":{"ApproveCorrectionActionConfig":{"type":"object","properties":{"label":{"description":"Human readable description of the action","$ref":"#/components/schemas/TranslationConfigOutput"},"flags":{"default":[],"description":"Flag actions which are executed when the action is performed.","type":"array","items":{"$ref":"#/components/schemas/ActionFlagConfig"}},"supportingCopy":{"description":"Text displayed on the confirmation dialog","$ref":"#/components/schemas/TranslationConfigOutput"},"icon":{"type":"string","description":"Icon representing the action"},"conditionals":{"description":"Conditionals which can disable or hide actions.","type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}},"type":{"type":"string","const":"APPROVE_CORRECTION"}},"required":["label","flags","type"],"additionalProperties":false,"description":"Configuration for approving a requested correction."},"TranslationConfigOutput":{"type":"object","properties":{"id":{"type":"string","description":"The identifier of the translation referred in translation CSV files"},"defaultMessage":{"type":"string","description":"Default translation message"},"description":{"type":"string","description":"Describe the translation for a translator to be able to identify it."}},"required":["id","defaultMessage","description"],"additionalProperties":false,"description":"Translation configuration"},"ActionFlagConfig":{"type":"object","properties":{"id":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"string","enum":["incomplete","rejected","correction-requested","potential-duplicate","edit-in-progress"]}]},{"type":"string","description":"Custom flag identifier defined by the country config."}]},"operation":{"type":"string","enum":["add","remove"],"description":"Operation to perform on the flag."},"conditional":{"description":"When conditional is met, the operation is performed on the flag. If not provided, the operation is performed unconditionally.","$ref":"#/components/schemas/Conditional"}},"required":["id","operation"],"additionalProperties":false,"description":"Add or remove operation applied to a flag when the parent action is accepted. Optionally gated by a conditional."},"Conditional":{"description":"JSON schema conditional configuration"},"ActionConditional":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"SHOW"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'SHOW' conditional is defined, the component is shown to the user only if the condition is met"},{"type":"object","properties":{"type":{"type":"string","const":"ENABLE"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'ENABLE' conditional is defined, the component is enabled only if the condition is met"}],"description":"Conditional gating whether an action is shown (SHOW) or enabled (ENABLE). When omitted from an action, the action is shown and enabled for everyone.","type":"object"}}}}
```

## The RejectCorrectionActionConfig object

```json
{"openapi":"3.1.0","info":{"title":"OpenCRVS API","version":"2.0.0"},"components":{"schemas":{"RejectCorrectionActionConfig":{"type":"object","properties":{"label":{"description":"Human readable description of the action","$ref":"#/components/schemas/TranslationConfigOutput"},"flags":{"default":[],"description":"Flag actions which are executed when the action is performed.","type":"array","items":{"$ref":"#/components/schemas/ActionFlagConfig"}},"supportingCopy":{"description":"Text displayed on the confirmation dialog","$ref":"#/components/schemas/TranslationConfigOutput"},"icon":{"type":"string","description":"Icon representing the action"},"conditionals":{"description":"Conditionals which can disable or hide actions.","type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}},"type":{"type":"string","const":"REJECT_CORRECTION"}},"required":["label","flags","type"],"additionalProperties":false,"description":"Configuration for rejecting a requested correction."},"TranslationConfigOutput":{"type":"object","properties":{"id":{"type":"string","description":"The identifier of the translation referred in translation CSV files"},"defaultMessage":{"type":"string","description":"Default translation message"},"description":{"type":"string","description":"Describe the translation for a translator to be able to identify it."}},"required":["id","defaultMessage","description"],"additionalProperties":false,"description":"Translation configuration"},"ActionFlagConfig":{"type":"object","properties":{"id":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"string","enum":["incomplete","rejected","correction-requested","potential-duplicate","edit-in-progress"]}]},{"type":"string","description":"Custom flag identifier defined by the country config."}]},"operation":{"type":"string","enum":["add","remove"],"description":"Operation to perform on the flag."},"conditional":{"description":"When conditional is met, the operation is performed on the flag. If not provided, the operation is performed unconditionally.","$ref":"#/components/schemas/Conditional"}},"required":["id","operation"],"additionalProperties":false,"description":"Add or remove operation applied to a flag when the parent action is accepted. Optionally gated by a conditional."},"Conditional":{"description":"JSON schema conditional configuration"},"ActionConditional":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"SHOW"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'SHOW' conditional is defined, the component is shown to the user only if the condition is met"},{"type":"object","properties":{"type":{"type":"string","const":"ENABLE"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'ENABLE' conditional is defined, the component is enabled only if the condition is met"}],"description":"Conditional gating whether an action is shown (SHOW) or enabled (ENABLE). When omitted from an action, the action is shown and enabled for everyone.","type":"object"}}}}
```

## The ArchiveActionConfig object

```json
{"openapi":"3.1.0","info":{"title":"OpenCRVS API","version":"2.0.0"},"components":{"schemas":{"ArchiveActionConfig":{"type":"object","properties":{"label":{"description":"Human readable description of the action","$ref":"#/components/schemas/TranslationConfigOutput"},"flags":{"default":[],"description":"Flag actions which are executed when the action is performed.","type":"array","items":{"$ref":"#/components/schemas/ActionFlagConfig"}},"supportingCopy":{"description":"Text displayed on the confirmation dialog","$ref":"#/components/schemas/TranslationConfigOutput"},"icon":{"type":"string","description":"Icon representing the action"},"conditionals":{"description":"Conditionals which can disable or hide actions.","type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}},"type":{"type":"string","const":"ARCHIVE"},"form":{"description":"Fields rendered on the action confirmation dialog. Submitted values are stored in the action annotation and shown in the audit history.","type":"array","items":{"$ref":"#/components/schemas/FieldConfig"}}},"required":["label","flags","type"],"additionalProperties":false,"description":"Configuration for archiving a record."},"TranslationConfigOutput":{"type":"object","properties":{"id":{"type":"string","description":"The identifier of the translation referred in translation CSV files"},"defaultMessage":{"type":"string","description":"Default translation message"},"description":{"type":"string","description":"Describe the translation for a translator to be able to identify it."}},"required":["id","defaultMessage","description"],"additionalProperties":false,"description":"Translation configuration"},"ActionFlagConfig":{"type":"object","properties":{"id":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"string","enum":["incomplete","rejected","correction-requested","potential-duplicate","edit-in-progress"]}]},{"type":"string","description":"Custom flag identifier defined by the country config."}]},"operation":{"type":"string","enum":["add","remove"],"description":"Operation to perform on the flag."},"conditional":{"description":"When conditional is met, the operation is performed on the flag. If not provided, the operation is performed unconditionally.","$ref":"#/components/schemas/Conditional"}},"required":["id","operation"],"additionalProperties":false,"description":"Add or remove operation applied to a flag when the parent action is accepted. Optionally gated by a conditional."},"Conditional":{"description":"JSON schema conditional configuration"},"ActionConditional":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"SHOW"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'SHOW' conditional is defined, the component is shown to the user only if the condition is met"},{"type":"object","properties":{"type":{"type":"string","const":"ENABLE"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'ENABLE' conditional is defined, the component is enabled only if the condition is met"}],"description":"Conditional gating whether an action is shown (SHOW) or enabled (ENABLE). When omitted from an action, the action is shown and enabled for everyone.","type":"object"},"FieldConfig":{"oneOf":[{"$ref":"#/components/schemas/FieldGroup"},{"$ref":"#/components/schemas/Address"},{"$ref":"#/components/schemas/TextField"},{"$ref":"#/components/schemas/NumberField"},{"$ref":"#/components/schemas/NumberWithUnitField"},{"$ref":"#/components/schemas/TextAreaField"},{"$ref":"#/components/schemas/AgeField"},{"$ref":"#/components/schemas/DateField"},{"$ref":"#/components/schemas/TimeField"},{"$ref":"#/components/schemas/DateRangeField"},{"$ref":"#/components/schemas/SelectDateRangeField"},{"$ref":"#/components/schemas/ImageViewField"},{"$ref":"#/components/schemas/Paragraph"},{"$ref":"#/components/schemas/Heading"},{"$ref":"#/components/schemas/RadioGroup"},{"$ref":"#/components/schemas/BulletList"},{"$ref":"#/components/schemas/PageHeader"},{"$ref":"#/components/schemas/Select"},{"$ref":"#/components/schemas/NameField"},{"$ref":"#/components/schemas/PhoneField"},{"$ref":"#/components/schemas/IdField"},{"$ref":"#/components/schemas/Checkbox"},{"$ref":"#/components/schemas/File"},{"$ref":"#/components/schemas/Country"},{"$ref":"#/components/schemas/AdministrativeAreaField"},{"$ref":"#/components/schemas/Divider"},{"$ref":"#/components/schemas/LocationInput"},{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"FACILITY"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"allowedLocations":{"description":"Limits which location options are selectable depending on user jurisdiction and location.","type":"object","properties":{"$jurisdiction":{"anyOf":[{"type":"string","enum":["administrativeArea","location","all"],"description":"Filters based on user jurisdiction relative to their office location in hierarchy."},{"type":"object","properties":{"$scope":{"type":"string","enum":["organisation.read-locations","user.read","user.create","user.edit","user.search","record.search","record.create","record.read","record.declare","record.notify","record.edit","record.reject","record.archive","record.unarchive","record.review-duplicates","record.register","record.print-certified-copies","record.request-correction","record.correct","record.unassign-others","record.custom-action","record.action.accept","record.action.reject","bypassratelimit","record.reindex","user.data-seeding","integration.create","integration.audit.read","record.import","config.update-all","location.edit","attachment.upload","profile.electronic-signature","user.read-only-my-audit","performance.read","performance.read-dashboards","performance.vital-statistics-export","workqueue","dashboard.view"]},"$option":{"type":"string","enum":["event","placeOfEvent","createdBy","createdIn","notifiedIn","notifiedBy","declaredIn","declaredBy","status","registeredIn","registeredBy","flags","accessLevel","role","ids"]}},"required":["$scope","$option"],"additionalProperties":false}]}},"required":["$jurisdiction"],"additionalProperties":false},"activeOnly":{"type":"boolean"},"anchorToDateOfEvent":{"type":"boolean"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"Input field for a facility"},{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"OFFICE"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"allowedLocations":{"description":"Limits which location options are selectable depending on user jurisdiction and location.","type":"object","properties":{"$jurisdiction":{"anyOf":[{"type":"string","enum":["administrativeArea","location","all"],"description":"Filters based on user jurisdiction relative to their office location in hierarchy."},{"type":"object","properties":{"$scope":{"type":"string","enum":["organisation.read-locations","user.read","user.create","user.edit","user.search","record.search","record.create","record.read","record.declare","record.notify","record.edit","record.reject","record.archive","record.unarchive","record.review-duplicates","record.register","record.print-certified-copies","record.request-correction","record.correct","record.unassign-others","record.custom-action","record.action.accept","record.action.reject","bypassratelimit","record.reindex","user.data-seeding","integration.create","integration.audit.read","record.import","config.update-all","location.edit","attachment.upload","profile.electronic-signature","user.read-only-my-audit","performance.read","performance.read-dashboards","performance.vital-statistics-export","workqueue","dashboard.view"]},"$option":{"type":"string","enum":["event","placeOfEvent","createdBy","createdIn","notifiedIn","notifiedBy","declaredIn","declaredBy","status","registeredIn","registeredBy","flags","accessLevel","role","ids"]}},"required":["$scope","$option"],"additionalProperties":false}]}},"required":["$jurisdiction"],"additionalProperties":false},"activeOnly":{"type":"boolean"},"anchorToDateOfEvent":{"type":"boolean"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"Input field for an office"},{"$ref":"#/components/schemas/SignatureField"},{"$ref":"#/components/schemas/EmailField"},{"$ref":"#/components/schemas/FileUploadWithOptions"},{"$ref":"#/components/schemas/DataField"},{"$ref":"#/components/schemas/ButtonField"},{"$ref":"#/components/schemas/AlphaPrintButton"},{"$ref":"#/components/schemas/HttpField"},{"$ref":"#/components/schemas/AutocompleteField"},{"$ref":"#/components/schemas/LinkButtonField"},{"$ref":"#/components/schemas/VerificationStatus"},{"$ref":"#/components/schemas/QrReaderField"},{"$ref":"#/components/schemas/IdReaderField"},{"$ref":"#/components/schemas/QueryParamReaderField"},{"$ref":"#/components/schemas/LoaderField"},{"$ref":"#/components/schemas/SearchField"},{"$ref":"#/components/schemas/CustomField"},{"$ref":"#/components/schemas/HiddenField"},{"$ref":"#/components/schemas/UserRoleField"}],"description":"Form field configuration","type":"object"},"FieldGroup":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"FIELD_GROUP"},"fields":{"type":"array","items":{"$ref":"#/components/schemas/FieldConfig"}},"configuration":{"type":"object","properties":{"separator":{"description":"Joins the subfield values when the group is rendered as output, e.g. \", \". Defaults to one subfield per line.","type":"string"},"hideEmptyFields":{"description":"Leaves subfields without a value out of the output. Pair it with a separator so the separator does not double up around the gaps.","default":false,"type":"boolean"}},"additionalProperties":false}},"required":["id","label","type","fields"],"additionalProperties":false,"description":"A group of fields that are displayed together"},"FieldConditional":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"SHOW"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'SHOW' conditional is defined, the component is shown to the user only if the condition is met"},{"type":"object","properties":{"type":{"type":"string","const":"ENABLE"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'ENABLE' conditional is defined, the component is enabled only if the condition is met"},{"type":"object","properties":{"type":{"type":"string","const":"DISPLAY_ON_REVIEW"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'DISPLAY_ON_REVIEW' conditional is defined, the component is shown on the review page only if both the 'DISPLAY_ON_REVIEW' and 'SHOW' conditions are met. This should only be used for fields within declaration forms, as they are the only ones with review pages."}],"description":"Conditional gating whether a form field is shown (SHOW), enabled (ENABLE), or displayed on the review page (DISPLAY_ON_REVIEW). When omitted, the field is shown and enabled for everyone, and is displayed on review whenever it has a value.","type":"object"},"ValidationConfig":{"type":"object","properties":{"validator":{"description":"Conditional expression that must hold for the field value to be considered valid.","$ref":"#/components/schemas/Conditional"},"message":{"description":"Error message displayed when the validator does not hold.","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["validator","message"],"additionalProperties":false,"description":"Validation rule applied to a form field. The validator is a conditional expression that must hold for the field value to be considered valid."},"Address":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"ADDRESS"},"configuration":{"type":"object","properties":{"lineSeparator":{"type":"string"},"fields":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"type":{"type":"string","const":"COUNTRY"},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"optionOverrides":{"description":"Conditionals for specific countries. Countries not listed are always shown and enabled.","type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"The value of the option"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}}},"required":["value"],"additionalProperties":false}}},"required":["id","type"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"type":{"type":"string","const":"ADMINISTRATIVE_AREA"},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]}},"required":["id","type"],"additionalProperties":false}]}},"streetAddressForm":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"required":{"default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"label":{"$ref":"#/components/schemas/TranslationConfigOutput"},"type":{"type":"string","const":"TEXT"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"parent":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}},"required":["id","label","type"],"additionalProperties":false}},"allowedLocations":{"description":"Limits which location options are selectable depending on user jurisdiction and location.","type":"object","properties":{"$jurisdiction":{"anyOf":[{"type":"string","enum":["administrativeArea","location","all"],"description":"Filters based on user jurisdiction relative to their office location in hierarchy."},{"type":"object","properties":{"$scope":{"type":"string","enum":["organisation.read-locations","user.read","user.create","user.edit","user.search","record.search","record.create","record.read","record.declare","record.notify","record.edit","record.reject","record.archive","record.unarchive","record.review-duplicates","record.register","record.print-certified-copies","record.request-correction","record.correct","record.unassign-others","record.custom-action","record.action.accept","record.action.reject","bypassratelimit","record.reindex","user.data-seeding","integration.create","integration.audit.read","record.import","config.update-all","location.edit","attachment.upload","profile.electronic-signature","user.read-only-my-audit","performance.read","performance.read-dashboards","performance.vital-statistics-export","workqueue","dashboard.view"]},"$option":{"type":"string","enum":["event","placeOfEvent","createdBy","createdIn","notifiedIn","notifiedBy","declaredIn","declaredBy","status","registeredIn","registeredBy","flags","accessLevel","role","ids"]}},"required":["$scope","$option"],"additionalProperties":false}]}},"required":["$jurisdiction"],"additionalProperties":false},"activeOnly":{"description":"Offer only admin areas that are active at the resolved anchor date (today, or the date of event when anchorToDateOfEvent is set); inactive or not-yet-effective versions are excluded. Propagated to the embedded admin-area selectors.","type":"boolean"},"anchorToDateOfEvent":{"description":"Resolve selectable/displayed versions against the event's date of event (falling back to the record's creation date when empty) instead of today. Does not by itself exclude inactive versions; combine with activeOnly for that. Propagated to the embedded admin-area selectors.","type":"boolean"}},"additionalProperties":false},"defaultValue":{"anyOf":[{"type":"object","properties":{"country":{"type":"string"},"streetLevelDetails":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"addressType":{"type":"string","const":"DOMESTIC"},"administrativeArea":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false}]}},"required":["country","addressType"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]}},"required":["id","label","type"],"additionalProperties":false,"description":"Address input field – a combination of location and text fields"},"TextField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"TEXT"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"default":{"type":"text"},"type":"object","properties":{"maxLength":{"description":"Maximum length of the text","type":"number"},"type":{"type":"string","enum":["text","password"]},"prefix":{"$ref":"#/components/schemas/TranslationConfigOutput"},"postfix":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A text input field"},"NumberField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"NUMBER"},"defaultValue":{"anyOf":[{"type":"number"},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"min":{"description":"Minimum value","type":"number"},"max":{"description":"Maximum value","type":"number"},"integer":{"description":"When true, only whole numbers are allowed","type":"boolean"},"prefix":{"$ref":"#/components/schemas/TranslationConfigOutput"},"postfix":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A number input field"},"NumberWithUnitField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"NUMBER_WITH_UNIT"},"defaultValue":{"anyOf":[{"type":"object","properties":{"numericValue":{"type":"number"},"unit":{"type":"string"}},"required":["numericValue","unit"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"The value of the option"},"label":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/TranslationConfigOutput"}],"description":"The label of the option"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}}},"required":["value","label"],"additionalProperties":false},"description":"A list of options for the unit select"},"configuration":{"type":"object","properties":{"min":{"description":"Minimum value of the number field","type":"number"},"max":{"description":"Maximum value of the number field","type":"number"},"numberFieldPlaceholder":{"description":"Placeholder for the number field","$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type","options"],"additionalProperties":false,"description":"A number with unit input field"},"TextAreaField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"TEXTAREA"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"default":{"rows":4},"type":"object","properties":{"maxLength":{"description":"Maximum length of the text","type":"number"},"rows":{"description":"Number of visible text lines","type":"number"},"cols":{"description":"Number of visible columns","type":"number"},"prefix":{"$ref":"#/components/schemas/TranslationConfigOutput"},"postfix":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A multiline text input"},"AgeField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"AGE"},"defaultValue":{"anyOf":[{"type":"number"},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"asOfDate":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},"prefix":{"$ref":"#/components/schemas/TranslationConfigOutput"},"postfix":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["asOfDate"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"An age input field which uses the current date as the asOfDate"},"DateField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"DATE"},"defaultValue":{"description":"Default date value(yyyy-MM-dd)","anyOf":[{"anyOf":[{"type":"object","properties":{"$$now":{"type":"boolean","const":true}},"required":["$$now"],"additionalProperties":false},{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date in the format YYYY-MM-DD"}]},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"notice":{"description":"Text to display above the date input","$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A date input (yyyy-MM-dd)"},"TimeField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"TIME"},"defaultValue":{"description":"Default time value (HH-mm)","anyOf":[{"anyOf":[{"type":"object","properties":{"$$now":{"type":"boolean","const":true}},"required":["$$now"],"additionalProperties":false},{"type":"string","pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$"}]},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"use12HourFormat":{"description":"Whether to use 12-hour format","type":"boolean"},"notice":{"description":"Text to display above the time input","$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A single time input (HH-mm)"},"DateRangeField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"DATE_RANGE"},"defaultValue":{"anyOf":[{"anyOf":[{"type":"object","properties":{"start":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date in the format YYYY-MM-DD"},"end":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date in the format YYYY-MM-DD"}},"required":["start","end"],"additionalProperties":false},{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date in the format YYYY-MM-DD"}],"description":"Date range with start and end dates in the format YYYY-MM-DD. Inclusive start, exclusive end."},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"notice":{"description":"Text to display above the date input","$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A date range input ({ start: yyyy-MM-dd, end: yyyy-MM-dd })"},"SelectDateRangeField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"SELECT_DATE_RANGE"},"defaultValue":{"anyOf":[{"type":"string","enum":["last7Days","last30Days","last90Days","last365Days"]},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","enum":["last7Days","last30Days","last90Days","last365Days"],"description":"The value of the option"},"label":{"description":"The label of the option","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["value","label"],"additionalProperties":false},"description":"A list of options"}},"required":["id","label","type","options"],"additionalProperties":false,"description":"A date range selection field"},"ImageViewField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"IMAGE_VIEW"},"defaultValue":{"type":"string","minLength":1},"configuration":{"type":"object","properties":{"alt":{"description":"Alternative text for the image","type":"string"},"width":{"description":"CSS width value for the image","type":"string"},"height":{"description":"CSS height value for the image","type":"string"},"textAlign":{"description":"Text alignment for positioning the image in its container","type":"string","enum":["left","center","right","start","end"]},"objectFit":{"description":"How the image should be resized to fit the container","type":"string","enum":["contain","cover","fill","none","scale-down"]}},"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A read-only image component for form pages"},"Paragraph":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"PARAGRAPH"},"configuration":{"default":{},"type":"object","properties":{"styles":{"type":"object","properties":{"hint":{"description":"When true, paragraph is styled as a hint with grey color","type":"boolean"},"textAlign":{"description":"Text alignment for the paragraph","type":"string","enum":["left","center","right","start","end"]}},"additionalProperties":false}},"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A read-only HTML <p> paragraph"},"Heading":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"HEADING"},"configuration":{"default":{},"type":"object","properties":{"styles":{"type":"object","properties":{"fontVariant":{"description":"Font variant to use for the paragraph text","type":"string","enum":["reg12","reg14","reg16","reg18","h4","h3"]},"textAlign":{"description":"Text alignment for the paragraph","type":"string","enum":["left","center","right","start","end"]}},"additionalProperties":false}},"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A read-only heading component for form pages"},"RadioGroup":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"RADIO_GROUP"},"defaultValue":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"The value of the option"},"label":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/TranslationConfigOutput"}],"description":"The label of the option"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}}},"required":["value","label"],"additionalProperties":false},"description":"A list of options"},"configuration":{"type":"object","properties":{"styles":{"type":"object","properties":{"size":{"type":"string","enum":["NORMAL","LARGE"]}},"additionalProperties":false}},"additionalProperties":false}},"required":["id","label","type","options"],"additionalProperties":false,"description":"A grouped radio button field"},"BulletList":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"BULLET_LIST"},"items":{"type":"array","items":{"$ref":"#/components/schemas/TranslationConfigOutput"},"description":"A list of items"},"configuration":{"default":{},"type":"object","properties":{"styles":{"type":"object","properties":{"fontVariant":{"type":"string","enum":["reg12","reg14","reg16","reg18","h4","h3","h2","h1"]}},"additionalProperties":false}},"additionalProperties":false}},"required":["id","label","type","items","configuration"],"additionalProperties":false,"description":"A list of bullet points"},"PageHeader":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"PAGE_HEADER"}},"required":["id","label","type"],"additionalProperties":false,"description":"A read-only header component for form pages"},"Select":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"SELECT"},"defaultValue":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"The value of the option"},"label":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/TranslationConfigOutput"}],"description":"The label of the option"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}}},"required":["value","label"],"additionalProperties":false},"description":"A list of options"},"noOptionsMessage":{"description":"\n    A translation configuration object used to display a message when no options are available.\n    It must follow the shape: { id: string; defaultMessage: string; description?: string }.\n    The message is rendered via intl.formatMessage(noOptionsMessage, { input }),\n    where 'input' represents the text entered in the Select field.\n    You can reference this variable in your message, for example:\n    { ..., defaultMessage: \"'{input}' is not listed among the health facilities.\" }\n  ","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["id","label","type","options"],"additionalProperties":false,"description":"A select input field"},"NameField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"NAME"},"defaultValue":{"anyOf":[{"type":"object","properties":{"firstname":{"anyOf":[{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false},{"type":"string","minLength":1}]},"middlename":{"anyOf":[{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false},{"type":"string","minLength":1}]},"surname":{"anyOf":[{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false},{"type":"string","minLength":1}]}},"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"default":{"name":{"firstname":{"required":true},"surname":{"required":true}}},"type":"object","properties":{"name":{"default":{"firstname":{"required":true},"surname":{"required":true}},"type":"object","properties":{"firstname":{"type":"object","properties":{"required":{"default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"label":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false},"middlename":{"type":"object","properties":{"required":{"default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"label":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false},"surname":{"type":"object","properties":{"required":{"default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"label":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"additionalProperties":false},"order":{"type":"array","items":{"type":"string","enum":["firstname","middlename","surname"]}},"maxLength":{"description":"Maximum length of the text","type":"number"},"prefix":{"$ref":"#/components/schemas/TranslationConfigOutput"},"postfix":{"$ref":"#/components/schemas/TranslationConfigOutput"},"showParentFieldError":{"description":"If true, shows the parent field error and hides the subfield error","default":false,"type":"boolean"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A field for entering a persons name"},"PhoneField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"type":{"type":"string","const":"PHONE"}},"required":["id","label","type"],"additionalProperties":false,"description":"A field for entering a phone number"},"IdField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"type":{"type":"string","const":"ID"}},"required":["id","label","type"],"additionalProperties":false,"description":"A field for entering an ID"},"Checkbox":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"CHECKBOX"},"defaultValue":{"default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]}},"required":["id","label","type","defaultValue"],"additionalProperties":false,"description":"A boolean checkbox field"},"File":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"FILE"},"defaultValue":{"anyOf":[{"type":"object","properties":{"path":{"type":"string","description":"A relative path within the S3 bucket, never starting with /. e.g. document-id.jpg or directory/document-id.jpg. The document service constructs the full /bucket/path internally."},"originalFilename":{"type":"string"},"type":{"type":"string"}},"required":["path","originalFilename","type"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"default":{"maxFileSize":5242880},"type":"object","properties":{"maxFileSize":{"default":5242880,"type":"number","description":"Maximum file size in bytes"},"acceptedFileTypes":{"description":"List of allowed file formats for the signature","type":"array","items":{"type":"string","enum":["image/png","image/jpg","image/jpeg","image/svg+xml","application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.oasis.opendocument.text"]}},"maxImageSize":{"type":"object","properties":{"targetSize":{"type":"object","properties":{"width":{"type":"number"},"height":{"type":"number"}},"required":["width","height"],"additionalProperties":false}},"required":["targetSize"],"additionalProperties":false},"style":{"type":"object","properties":{"width":{"description":"Whether the file upload button should take the full width of the container or not","type":"string","enum":["full","auto"]}},"additionalProperties":false},"fileName":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["maxFileSize"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A file upload field"},"Country":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"COUNTRY"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"optionOverrides":{"description":"Conditionals for specific countries. Countries not listed are always shown and enabled.","type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"The value of the option"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}}},"required":["value"],"additionalProperties":false}}},"required":["id","label","type"],"additionalProperties":false,"description":"A field for selecting a country"},"AdministrativeAreaField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"ADMINISTRATIVE_AREA"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"partOf":{"description":"Parent location","type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false},"type":{"type":"string","enum":["ADMIN_STRUCTURE","HEALTH_FACILITY","CRVS_OFFICE"]},"allowedLocations":{"description":"Limits which location options are selectable depending on user jurisdiction and location.","type":"object","properties":{"$jurisdiction":{"anyOf":[{"type":"string","enum":["administrativeArea","location","all"],"description":"Filters based on user jurisdiction relative to their office location in hierarchy."},{"type":"object","properties":{"$scope":{"type":"string","enum":["organisation.read-locations","user.read","user.create","user.edit","user.search","record.search","record.create","record.read","record.declare","record.notify","record.edit","record.reject","record.archive","record.unarchive","record.review-duplicates","record.register","record.print-certified-copies","record.request-correction","record.correct","record.unassign-others","record.custom-action","record.action.accept","record.action.reject","bypassratelimit","record.reindex","user.data-seeding","integration.create","integration.audit.read","record.import","config.update-all","location.edit","attachment.upload","profile.electronic-signature","user.read-only-my-audit","performance.read","performance.read-dashboards","performance.vital-statistics-export","workqueue","dashboard.view"]},"$option":{"type":"string","enum":["event","placeOfEvent","createdBy","createdIn","notifiedIn","notifiedBy","declaredIn","declaredBy","status","registeredIn","registeredBy","flags","accessLevel","role","ids"]}},"required":["$scope","$option"],"additionalProperties":false}]}},"required":["$jurisdiction"],"additionalProperties":false},"activeOnly":{"description":"Offer only locations that are active at the resolved anchor date (today, or the date of event when anchorToDateOfEvent is set); inactive or not-yet-effective versions are excluded.","type":"boolean"},"anchorToDateOfEvent":{"description":"Resolve selectable/displayed versions against the event's date of event (falling back to the record's creation date when empty) instead of today. Does not by itself exclude inactive versions; combine with activeOnly for that.","type":"boolean"}},"required":["type"],"additionalProperties":false,"description":"Administrative area options"}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"Administrative area input field"},"Divider":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"DIVIDER"}},"required":["id","label","type"],"additionalProperties":false,"description":"A horizontal line divider"},"LocationInput":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"LOCATION"},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$userField":{"type":"string","enum":["id","name","role","fullHonorificName","device","firstname","middlename","surname","signature","avatar","primaryOfficeId","administrativeAreaId"]},"$location":{"type":"string"}},"required":["$userField"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"locationTypes":{"description":"Types of the locations that are available for selection.","type":"array","items":{"type":"string"}},"allowedLocations":{"description":"Limits which location options are selectable depending on user jurisdiction and location.","type":"object","properties":{"$jurisdiction":{"anyOf":[{"type":"string","enum":["administrativeArea","location","all"],"description":"Filters based on user jurisdiction relative to their office location in hierarchy."},{"type":"object","properties":{"$scope":{"type":"string","enum":["organisation.read-locations","user.read","user.create","user.edit","user.search","record.search","record.create","record.read","record.declare","record.notify","record.edit","record.reject","record.archive","record.unarchive","record.review-duplicates","record.register","record.print-certified-copies","record.request-correction","record.correct","record.unassign-others","record.custom-action","record.action.accept","record.action.reject","bypassratelimit","record.reindex","user.data-seeding","integration.create","integration.audit.read","record.import","config.update-all","location.edit","attachment.upload","profile.electronic-signature","user.read-only-my-audit","performance.read","performance.read-dashboards","performance.vital-statistics-export","workqueue","dashboard.view"]},"$option":{"type":"string","enum":["event","placeOfEvent","createdBy","createdIn","notifiedIn","notifiedBy","declaredIn","declaredBy","status","registeredIn","registeredBy","flags","accessLevel","role","ids"]}},"required":["$scope","$option"],"additionalProperties":false}]}},"required":["$jurisdiction"],"additionalProperties":false},"activeOnly":{"description":"Offer only locations that are active at the resolved anchor date (today, or the date of event when anchorToDateOfEvent is set); inactive or not-yet-effective versions are excluded.","type":"boolean"},"anchorToDateOfEvent":{"description":"Resolve selectable/displayed versions against the event's date of event (falling back to the record's creation date when empty) instead of today. Does not by itself exclude inactive versions; combine with activeOnly for that.","type":"boolean"}},"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"A field for selecting a location"},"SignatureField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"SIGNATURE"},"signaturePromptLabel":{"description":"Title of the signature modal","$ref":"#/components/schemas/TranslationConfigOutput"},"defaultValue":{"anyOf":[{"type":"object","properties":{"path":{"type":"string","description":"A relative path within the S3 bucket, never starting with /. e.g. document-id.jpg or directory/document-id.jpg. The document service constructs the full /bucket/path internally."},"originalFilename":{"type":"string"},"type":{"type":"string"}},"required":["path","originalFilename","type"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"default":{"maxFileSize":5242880},"type":"object","properties":{"maxFileSize":{"default":5242880,"type":"number","description":"Maximum file size in bytes"},"acceptedFileTypes":{"description":"List of allowed file formats for the signature","type":"array","items":{"type":"string","enum":["image/png","image/jpg","image/jpeg","image/svg+xml","application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.oasis.opendocument.text"]}}},"required":["maxFileSize"],"additionalProperties":false}},"required":["id","label","type","signaturePromptLabel","configuration"],"additionalProperties":false,"description":"A signature input field"},"EmailField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"EMAIL"},"configuration":{"default":{"maxLength":255},"type":"object","properties":{"maxLength":{"description":"Maximum length of the text","type":"number"}},"additionalProperties":false},"defaultValue":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]}},"required":["id","label","type"],"additionalProperties":false,"description":"An email input field"},"FileUploadWithOptions":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"FILE_WITH_OPTIONS"},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"The value of the option"},"label":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/TranslationConfigOutput"}],"description":"The label of the option"},"conditionals":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}}},"required":["value","label"],"additionalProperties":false},"description":"A list of options"},"defaultValue":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"A relative path within the S3 bucket, never starting with /. e.g. document-id.jpg or directory/document-id.jpg. The document service constructs the full /bucket/path internally."},"originalFilename":{"type":"string"},"type":{"type":"string"},"option":{"type":"string"}},"required":["path","originalFilename","type","option"],"additionalProperties":false}},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"default":{"maxFileSize":5242880},"type":"object","properties":{"maxFileSize":{"default":5242880,"type":"number","description":"Maximum file size in bytes"},"maxImageSize":{"type":"object","properties":{"targetSize":{"type":"object","properties":{"width":{"type":"number"},"height":{"type":"number"}},"required":["width","height"],"additionalProperties":false}},"required":["targetSize"],"additionalProperties":false},"acceptedFileTypes":{"description":"List of allowed file formats for the signature","type":"array","items":{"type":"string","enum":["image/png","image/jpg","image/jpeg","image/svg+xml","application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.oasis.opendocument.text"]}}},"required":["maxFileSize"],"additionalProperties":false}},"required":["id","label","type","options","configuration"],"additionalProperties":false,"description":"A field for uploading files with file type options"},"DataField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"DATA"},"configuration":{"type":"object","properties":{"subtitle":{"$ref":"#/components/schemas/TranslationConfigOutput"},"data":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","description":"ID for the data entry."},"label":{"$ref":"#/components/schemas/TranslationConfigOutput"},"value":{"anyOf":[{"anyOf":[{"$ref":"#/components/schemas/TranslationConfigOutput"},{"type":"string"}]},{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}]}},"required":["id","label","value"],"additionalProperties":false,"description":"Static data entry"},{"type":"object","properties":{"fieldId":{"type":"string"}},"required":["fieldId"],"additionalProperties":false}],"description":"Data entry can be either a static data entry, or a reference to another field in the current form or the declaration."}}},"required":["data"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A field for displaying a table of read-only data"},"ButtonField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"BUTTON"},"defaultValue":{"anyOf":[{"type":"number"},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"icon":{"description":"Icon for the button. You can find icons from OpenCRVS UI-Kit.","type":"string"},"loading":{"description":"Whether the button is in a loading state and shows a spinner","type":"boolean"},"buttonSize":{"description":"Size of the button.","type":"string","enum":["small","medium","large"]},"buttonType":{"description":"Type of the button.","type":"string","enum":["primary","secondary","tertiary","positive","negative","secondaryNegative","icon","iconPrimary"]},"textColor":{"description":"Color of the text.","type":"string","enum":["primary","copy"]},"textVariant":{"description":"Variant of the text.","type":"string","enum":["bold14","reg14"]},"text":{"description":"Text to display on the button","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["text"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A generic button that can be used to trigger an action"},"AlphaPrintButton":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"ALPHA_PRINT_BUTTON"},"configuration":{"type":"object","properties":{"template":{"type":"string","description":"Template ID from countryconfig templates to use for printing"},"buttonLabel":{"description":"Label for the print button","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["template"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"An experimental print button field for printing certificates during the declaration process"},"HttpField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"HTTP"},"defaultValue":{"anyOf":[{"type":"object","properties":{"loading":{"type":"boolean"},"error":{"anyOf":[{"type":"object","properties":{"statusCode":{"type":"number"},"message":{"type":"string"}},"required":["statusCode","message"],"additionalProperties":false},{"type":"null"}]},"data":{}},"required":["loading","data"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"trigger":{"description":"Reference to the field that triggers the HTTP request when its value changes. If not provided, the HTTP request is triggered once on component mount.","type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false},"url":{"type":"string","description":"URL to send the HTTP request to"},"method":{"type":"string","enum":["GET","POST","PUT","DELETE"]},"headers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"body":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"errorValue":{"description":"Value to set if the request fails"},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}]}},"timeout":{"default":15000,"description":"Request timeout in milliseconds","type":"number"}},"required":["url","method","timeout"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"Makes a background HTTP request to an external service and stores the response so other fields can use it. Has no visible UI — pair with LOADER to show request status."},"AutocompleteField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"AUTOCOMPLETE"},"configuration":{"type":"object","properties":{"url":{"type":"string","description":"URL to fetch autocomplete suggestions from. This should be a country config server endpoint."},"method":{"default":"GET","type":"string","enum":["GET","POST"]},"defaultOptions":{"description":"Manual entry is supported through configuration, allowing users to provide values not currently represented in the dataset.","type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"type":"string"}},"required":["label","value"],"additionalProperties":false}}},"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"Generic autocomplete component designed for use with large dictionary-based datasets. The component supports dynamic retrieval of options from configurable data sources and is intended for datasets that may contain tens or hundreds of thousands of records."},"LinkButtonField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"LINK_BUTTON"},"configuration":{"type":"object","properties":{"url":{"type":"string","description":"URL to open"},"text":{"description":"Text to display on the button","$ref":"#/components/schemas/TranslationConfigOutput"},"icon":{"description":"Icon for the button. You can find icons from OpenCRVS UI-Kit.","type":"string"}},"required":["url","text"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A button that opens a URL link"},"VerificationStatus":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"VERIFICATION_STATUS"},"defaultValue":{"anyOf":[{"type":"string","enum":["verified","authenticated","failed","pending"]},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"status":{"description":"Text to display on the status pill.","$ref":"#/components/schemas/TranslationConfigOutput"},"description":{"description":"Explaining text on the banner in form.","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["status","description"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"Displays a verification state (e.g. ID verified / pending). Often paired with ID_READER — it can read its value off an ID_READER rather than holding its own."},"QrReaderField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"QR_READER"},"defaultValue":{"anyOf":[{"type":"object","properties":{"data":{}},"required":["data"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"validator":{"$ref":"#/components/schemas/QrReaderFieldValidator"}},"required":["validator"],"additionalProperties":false}},"required":["id","label","type"],"additionalProperties":false,"description":"QR code reader field, including optional JSON Schema validator."},"QrReaderFieldValidator":{"description":"JSON Schema to validate the scanned QR code data against before populating the form fields."},"IdReaderField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"ID_READER"},"defaultValue":{"anyOf":[{"type":"object","properties":{"data":{}},"required":["data"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"methods":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/QrReaderField"},{"$ref":"#/components/schemas/LinkButtonField"}],"description":"Methods for reading an ID"}}},"required":["id","label","type","methods"],"additionalProperties":false,"description":"A wrapper around nested form fields, specifically QR_READER and LINK_BUTTON. It can hold the QR_READERs value."},"QueryParamReaderField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"QUERY_PARAM_READER"},"configuration":{"type":"object","properties":{"pickParams":{"type":"array","items":{"type":"string"},"description":"List of query parameters to read from the URL"}},"required":["pickParams"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A field that maps URL query params into form values and clears them afterward"},"LoaderField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"description":"Loader field does not show a label by default","default":true,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"LOADER"},"variant":{"default":"default","type":"string","enum":["default","highlighted"]},"configuration":{"type":"object","properties":{"text":{"description":"Display text above the loading spinner","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["text"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A non-interactive field that indicates an in progress operation in form"},"SearchField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"SEARCH"},"defaultValue":{"anyOf":[{"type":"object","properties":{"loading":{"type":"boolean"},"error":{"anyOf":[{"type":"object","properties":{"statusCode":{"type":"number"},"message":{"type":"string"}},"required":["statusCode","message"],"additionalProperties":false},{"type":"null"}]},"data":{}},"required":["loading","data"],"additionalProperties":false},{"type":"object","properties":{"$$code":{"type":"string","description":"Serialised client-side function body. Receives (undefined, context) where context includes $now, $online, and system variables."}},"required":["$$code"],"additionalProperties":false,"description":"A context-only computation used as a field default value."}]},"configuration":{"type":"object","properties":{"query":{"default":{"type":"and","clauses":[{"eventType":"tennis-club-membership","status":{"type":"anyOf","terms":["CREATED","NOTIFIED","DECLARED","REGISTERED","ARCHIVED"]},"updatedAt":{"type":"range","gte":"2025-05-22","lte":"2025-05-29"},"data":{}}]},"$ref":"#/components/schemas/QueryTypeOutput"},"limit":{"default":100,"type":"number"},"offset":{"default":0,"type":"number"},"validation":{"$ref":"#/components/schemas/ValidationConfig"},"indicators":{"type":"object","properties":{"loading":{"description":"Text to display while the search is in progress","$ref":"#/components/schemas/TranslationConfigOutput"},"offline":{"description":"Text to display when the application is offline","$ref":"#/components/schemas/TranslationConfigOutput"},"noResultsError":{"description":"Text to display when no results are found during the search","$ref":"#/components/schemas/TranslationConfigOutput"},"httpError":{"description":"Text to display when there is an HTTP error during the search","$ref":"#/components/schemas/TranslationConfigOutput"},"confirmButton":{"$ref":"#/components/schemas/TranslationConfigOutput"},"clearButton":{"$ref":"#/components/schemas/TranslationConfigOutput"},"clearModal":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/TranslationConfigOutput"},"description":{"$ref":"#/components/schemas/TranslationConfigOutput"},"cancel":{"$ref":"#/components/schemas/TranslationConfigOutput"},"confirm":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false},"ok":{"$ref":"#/components/schemas/TranslationConfigOutput"}},"additionalProperties":false}},"required":["query","limit","offset","validation"],"additionalProperties":false}},"required":["id","label","type","configuration"],"additionalProperties":false,"description":"A search input field"},"QueryTypeOutput":{"type":"object","properties":{"type":{"anyOf":[{"type":"string","const":"and"},{"type":"string","const":"or"}],"default":"and"},"clauses":{"minItems":1,"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/QueryExpressionOutput"},{"$ref":"#/components/schemas/QueryTypeOutput"}]},"default":[{"eventType":"tennis-club-membership","status":{"type":"anyOf","terms":["CREATED","NOTIFIED","DECLARED","REGISTERED","ARCHIVED"]},"updatedAt":{"type":"range","gte":"2025-05-22","lte":"2025-05-29"},"data":{}}]}},"required":["type","clauses"],"additionalProperties":false},"QueryExpressionOutput":{"type":"object","properties":{"id":{"type":"string"},"eventType":{"type":"string"},"status":{"anyOf":[{"$ref":"#/components/schemas/AnyOfStatusOutput"},{"$ref":"#/components/schemas/ExactStatusOutput"}]},"createdAt":{"$ref":"#/components/schemas/DateConditionOutput"},"updatedAt":{"$ref":"#/components/schemas/DateConditionOutput"},"legalStatuses.DECLARED.createdAtLocation":{"anyOf":[{"$ref":"#/components/schemas/WithinOutput"},{"type":"null"}]},"legalStatuses.DECLARED.createdByRole":{"$ref":"#/components/schemas/AnyOfOutput"},"legalStatuses.REGISTERED.acceptedAt":{"$ref":"#/components/schemas/DateConditionOutput"},"legalStatuses.REGISTERED.createdAtLocation":{"anyOf":[{"$ref":"#/components/schemas/WithinOutput"},{"type":"null"}]},"legalStatuses.REGISTERED.createdByRole":{"$ref":"#/components/schemas/AnyOfOutput"},"legalStatuses.REGISTERED.registrationNumber":{"$ref":"#/components/schemas/ExactOutput"},"createdAtLocation":{"anyOf":[{"$ref":"#/components/schemas/WithinOutput"},{"$ref":"#/components/schemas/ExactOutput"}]},"updatedAtLocation":{"anyOf":[{"$ref":"#/components/schemas/WithinOutput"},{"$ref":"#/components/schemas/ExactOutput"}]},"assignedTo":{"$ref":"#/components/schemas/ExactOutput"},"createdByUserType":{"$ref":"#/components/schemas/ExactUserTypeOutput"},"updatedByUserRole":{"$ref":"#/components/schemas/ExactOutput"},"createdBy":{"$ref":"#/components/schemas/ExactOutput"},"updatedBy":{"$ref":"#/components/schemas/ExactOutput"},"trackingId":{"$ref":"#/components/schemas/ExactOutput"},"flags":{"$ref":"#/components/schemas/ContainsFlagsOutput"},"data":{"$ref":"#/components/schemas/QueryInputOutput"}},"additionalProperties":false},"AnyOfStatusOutput":{"type":"object","properties":{"type":{"type":"string","const":"anyOf"},"terms":{"type":"array","items":{"type":"string","enum":["CREATED","NOTIFIED","DECLARED","REGISTERED","ARCHIVED"]}}},"required":["type","terms"],"additionalProperties":false},"ExactStatusOutput":{"type":"object","properties":{"type":{"type":"string","const":"exact"},"term":{"type":"string","enum":["CREATED","NOTIFIED","DECLARED","REGISTERED","ARCHIVED"]}},"required":["type","term"],"additionalProperties":false},"DateConditionOutput":{"anyOf":[{"$ref":"#/components/schemas/ExactDateOutput"},{"$ref":"#/components/schemas/RangeDateOutput"},{"$ref":"#/components/schemas/TimePeriodOutput"}]},"ExactDateOutput":{"type":"object","properties":{"type":{"type":"string","const":"exact"},"term":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}]}},"required":["type","term"],"additionalProperties":false},"RangeDateOutput":{"type":"object","properties":{"type":{"type":"string","const":"range"},"gte":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}]},"lte":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}]}},"required":["type","gte","lte"],"additionalProperties":false},"TimePeriodOutput":{"type":"object","properties":{"type":{"type":"string","const":"timePeriod"},"term":{"type":"string","enum":["last7Days","last30Days","last90Days","last365Days"]}},"required":["type","term"],"additionalProperties":false},"WithinOutput":{"type":"object","properties":{"type":{"type":"string","const":"within"},"location":{"type":"string"}},"required":["type","location"],"additionalProperties":false},"AnyOfOutput":{"type":"object","properties":{"type":{"type":"string","const":"anyOf"},"terms":{"type":"array","items":{"type":"string"}}},"required":["type","terms"],"additionalProperties":false},"ExactOutput":{"type":"object","properties":{"type":{"type":"string","const":"exact"},"term":{"type":"string"}},"required":["type","term"],"additionalProperties":false},"ExactUserTypeOutput":{"type":"object","properties":{"type":{"type":"string","const":"exact"},"term":{"type":"string","enum":["user","system"]}},"required":["type","term"],"additionalProperties":false},"ContainsFlagsOutput":{"type":"object","properties":{"anyOf":{"type":"array","items":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"string","enum":["incomplete","rejected","correction-requested","potential-duplicate","edit-in-progress"]}]},{"type":"string","description":"Custom flag identifier defined by the country config."}]}},"noneOf":{"type":"array","items":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"string","enum":["incomplete","rejected","correction-requested","potential-duplicate","edit-in-progress"]}]},{"type":"string","description":"Custom flag identifier defined by the country config."}]}},"allOf":{"type":"array","items":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"string","enum":["incomplete","rejected","correction-requested","potential-duplicate","edit-in-progress"]}]},{"type":"string","description":"Custom flag identifier defined by the country config."}]}}},"additionalProperties":false},"QueryInputOutput":{"anyOf":[{"oneOf":[{"$ref":"#/components/schemas/FuzzyOutput"},{"$ref":"#/components/schemas/ExactOutput"},{"$ref":"#/components/schemas/RangeOutput"},{"$ref":"#/components/schemas/WithinOutput"},{"$ref":"#/components/schemas/AnyOfOutput"}],"type":"object","discriminator":{"propertyName":"type","mapping":{"fuzzy":"#/components/schemas/FuzzyOutput","exact":"#/components/schemas/ExactOutput","range":"#/components/schemas/RangeOutput","within":"#/components/schemas/WithinOutput","anyOf":"#/components/schemas/AnyOfOutput"}}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/QueryInputOutput"}}]},"FuzzyOutput":{"type":"object","properties":{"type":{"type":"string","const":"fuzzy"},"term":{"type":"string"}},"required":["type","term"],"additionalProperties":false},"RangeOutput":{"type":"object","properties":{"type":{"type":"string","const":"range"},"gte":{"type":"string"},"lte":{"type":"string"}},"required":["type","gte","lte"],"additionalProperties":false},"CustomField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"CUSTOM"},"defaultValue":{},"src":{"type":"string","description":"Module source path for the custom field component"},"configuration":{}},"required":["id","label","type","src"],"additionalProperties":false,"description":"An expiremental custom field that is defined by a module source path"},"HiddenField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"default":false,"type":"boolean"},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"ALPHA_HIDDEN"},"defaultValue":{"type":"string"}},"required":["id","label","type"],"additionalProperties":false,"description":"A non-interactive, hidden field that only hold a value in the form"},"UserRoleField":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the field."},"label":{"description":"Human-readable label of the field.","$ref":"#/components/schemas/TranslationConfigOutput"},"parent":{"description":"Reference to the parent field or fields. When a parent field changes, this field is reset.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"required":{"description":"Indicates whether the field is mandatory.","default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"message":{"description":"Custom required validation message","$ref":"#/components/schemas/TranslationConfigOutput"}},"required":["message"],"additionalProperties":false}]},"conditionals":{"description":"Conditions determining when the field is shown or enabled. By default, the field is always shown and enabled.","default":[],"type":"array","items":{"$ref":"#/components/schemas/FieldConditional"}},"secured":{"description":"Indicates whether the field is secured, either always (boolean) or conditionally, evaluated against the event (a JSONSchema conditional, e.g. flag('sealed')). Secured fields are not indexed for search and are only visible when explicitly assigned.","default":false,"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/Conditional"}]},"placeholder":{"$ref":"#/components/schemas/TranslationConfigOutput"},"validation":{"description":"Additional validation rules applied to the field.","default":[],"type":"array","items":{"$ref":"#/components/schemas/ValidationConfig"}},"helperText":{"$ref":"#/components/schemas/TranslationConfigOutput"},"hideLabel":{"default":false,"type":"boolean"},"uncorrectable":{"description":"Indicates whether the field can be modified during record correction.","default":false,"type":"boolean"},"value":{"description":"Reference to the source field or fields. When a value is defined, it is copied from the parent field when changed. If multiple references are provided, the first truthy value is used. A FieldReference with $$code computes the value via a custom client-side function.","anyOf":[{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."},{"type":"array","items":{"type":"object","properties":{"$$field":{"type":"string","description":"Id of the field to reference"},"$$subfield":{"default":[],"description":"If the FieldValue is an object, subfield can be used to refer to e.g. `[\"foo\", \"bar\"]` in `{ foo: { bar: 3 } }`","type":"array","items":{"type":"string"}},"$$code":{"description":"Serialised client-side function body. When present the expression is evaluated rather than dereferenced.","type":"string"}},"required":["$$field","$$subfield"],"additionalProperties":false,"description":"Reference to a field value, with an optional client-side computation applied."}}]},"analytics":{"description":"Indicates whether the field is included in analytics. When enabled, its value becomes available in the analytics dashboard.","default":false,"type":"boolean"},"type":{"type":"string","const":"USER_ROLE"},"defaultValue":{"type":"string"}},"required":["id","label","type"],"additionalProperties":false,"description":"A select dropdown that is automatically populated with available user roles"}}}}
```

## The UnarchiveActionConfig object

```json
{"openapi":"3.1.0","info":{"title":"OpenCRVS API","version":"2.0.0"},"components":{"schemas":{"UnarchiveActionConfig":{"type":"object","properties":{"label":{"description":"Human readable description of the action","$ref":"#/components/schemas/TranslationConfigOutput"},"flags":{"default":[],"description":"Flag actions which are executed when the action is performed.","type":"array","items":{"$ref":"#/components/schemas/ActionFlagConfig"}},"supportingCopy":{"description":"Text displayed on the confirmation dialog","$ref":"#/components/schemas/TranslationConfigOutput"},"icon":{"type":"string","description":"Icon representing the action"},"conditionals":{"description":"Conditionals which can disable or hide actions.","type":"array","items":{"$ref":"#/components/schemas/ActionConditional"}},"type":{"type":"string","const":"UNARCHIVE"}},"required":["label","flags","type"],"additionalProperties":false,"description":"Configuration for unarchiving a record."},"TranslationConfigOutput":{"type":"object","properties":{"id":{"type":"string","description":"The identifier of the translation referred in translation CSV files"},"defaultMessage":{"type":"string","description":"Default translation message"},"description":{"type":"string","description":"Describe the translation for a translator to be able to identify it."}},"required":["id","defaultMessage","description"],"additionalProperties":false,"description":"Translation configuration"},"ActionFlagConfig":{"type":"object","properties":{"id":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"string","enum":["incomplete","rejected","correction-requested","potential-duplicate","edit-in-progress"]}]},{"type":"string","description":"Custom flag identifier defined by the country config."}]},"operation":{"type":"string","enum":["add","remove"],"description":"Operation to perform on the flag."},"conditional":{"description":"When conditional is met, the operation is performed on the flag. If not provided, the operation is performed unconditionally.","$ref":"#/components/schemas/Conditional"}},"required":["id","operation"],"additionalProperties":false,"description":"Add or remove operation applied to a flag when the parent action is accepted. Optionally gated by a conditional."},"Conditional":{"description":"JSON schema conditional configuration"},"ActionConditional":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"SHOW"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'SHOW' conditional is defined, the component is shown to the user only if the condition is met"},{"type":"object","properties":{"type":{"type":"string","const":"ENABLE"},"conditional":{"$ref":"#/components/schemas/Conditional"}},"required":["type","conditional"],"additionalProperties":false,"description":"If 'ENABLE' conditional is defined, the component is enabled only if the condition is met"}],"description":"Conditional gating whether an action is shown (SHOW) or enabled (ENABLE). When omitted from an action, the action is shown and enabled for everyone.","type":"object"}}}}
```

[^1]: Partial ActionDocument with relevant fields only.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://documentation.opencrvs.org/v2.1/technical/guides/configuration/events/actions/core-actions.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
