@jinshuju/cli 0.29.1 → 0.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import { JSON_OPTION, UsageError } from '../options.js';
2
2
  import { call } from '../spec.js';
3
- import { overriding, payload } from './shared.js';
3
+ import { YES_OPTION, confirmed, overriding, payload } from './shared.js';
4
4
  import { uploadFormImage } from './upload.js';
5
5
  export const OPENSEARCH = [
6
6
  {
@@ -70,5 +70,18 @@ export const OPENSEARCH = [
70
70
  return client.request(call('updateOpensearchQuery', { path: { query_token: input.args.query }, body }));
71
71
  },
72
72
  examples: ['jinshuju opensearch edit Qy7nR3 --disable', 'jinshuju opensearch edit Qy7nR3 --header ./banner.png']
73
+ },
74
+ {
75
+ path: ['opensearch', 'delete'],
76
+ summary: 'Delete a public query',
77
+ description: 'Its link stops working for good and nothing restores it. To close the link for now and keep ' +
78
+ 'the query, `opensearch edit <query> --disable` instead.',
79
+ args: [{ name: 'query', required: true, description: 'Public query token' }],
80
+ options: [YES_OPTION],
81
+ request: (input) => {
82
+ confirmed(input, `Deleting public query ${input.args.query}`);
83
+ return call('deleteOpensearchQuery', { path: { query_token: input.args.query } });
84
+ },
85
+ examples: ['jinshuju opensearch delete Qy7nR3 --yes']
73
86
  }
74
87
  ];
@@ -17,18 +17,46 @@ export function onContainer(input, form, table, parts = {}) {
17
17
  }
18
18
  /** The conditions themselves. A read sends them as a query string, a write as a body. */
19
19
  export function filterConditions(input) {
20
- const compact = input.options.filter ?? [];
20
+ const given = input.options.filter ?? [];
21
+ // JSON handed to --filter is what --filters takes, and can mean nothing else;
22
+ // refusing it only sent the caller off to read help.
23
+ const json = given.filter(looksLikeJson);
24
+ const compact = given.filter((item) => !looksLikeJson(item));
21
25
  const raw = input.options.filters;
22
- if (raw !== undefined && compact.length > 0) {
26
+ if ([raw !== undefined, json.length > 0, compact.length > 0].filter(Boolean).length > 1) {
23
27
  throw new UsageError('--filter and --filters are alternatives, not both');
24
28
  }
25
29
  if (raw !== undefined)
26
- return raw;
30
+ return Array.isArray(raw) ? raw.map(withOperator) : raw;
31
+ if (json.length > 0)
32
+ return json.flatMap(parseJsonFilter).map(withOperator);
27
33
  if (compact.length === 0)
28
34
  return undefined;
29
35
  const conditions = compact.map(parseFilter);
30
36
  return conditions;
31
37
  }
38
+ function looksLikeJson(value) {
39
+ return /^\s*[[{]/.test(value);
40
+ }
41
+ /** One condition or a list of them, as JSON. */
42
+ function parseJsonFilter(value) {
43
+ try {
44
+ return [JSON.parse(value)].flat();
45
+ }
46
+ catch {
47
+ throw new UsageError(`--filter looks like JSON but does not parse: ${JSON.stringify(value)}`);
48
+ }
49
+ }
50
+ /**
51
+ * The API names the key `operator`. `op` is written for it often enough, and
52
+ * means nothing else, so it is renamed rather than refused.
53
+ */
54
+ function withOperator(condition) {
55
+ if (!isRecord(condition) || !('op' in condition) || 'operator' in condition)
56
+ return condition;
57
+ const { op, ...rest } = condition;
58
+ return { ...rest, operator: op };
59
+ }
32
60
  export function filters(input) {
33
61
  const conditions = filterConditions(input);
34
62
  return conditions === undefined ? undefined : JSON.stringify(conditions);
@@ -7,6 +7,8 @@ export interface ArgSpec {
7
7
  /** Takes the rest of the words; only the last argument may. */
8
8
  readonly variadic?: boolean;
9
9
  readonly description: string;
10
+ /** Flags that may carry it instead, for the spellings a caller reaches for first. */
11
+ readonly flags?: readonly string[];
10
12
  }
11
13
  /** How a listing returns its next page, which is what `--all` follows. */
12
14
  export interface Pagination {
@@ -49,6 +51,13 @@ export interface Command {
49
51
  */
50
52
  readonly run?: (input: CommandInput, client: HttpClient) => Promise<unknown>;
51
53
  readonly paginate?: Pagination;
54
+ /**
55
+ * Reshapes each row of a listing, on every page `--all` reads as on the one a
56
+ * plain call answers. `select` sees one response and so cannot reach the rows
57
+ * of a listing read page by page; this is for a narrowing the API could not
58
+ * do itself, which has to hold however the listing was read.
59
+ */
60
+ readonly row?: (row: unknown, input: CommandInput) => unknown;
52
61
  /**
53
62
  * Narrows the response to what the command is about. `field list` asks for a
54
63
  * form because that is where fields live, but a caller asked for the fields.
@@ -3,7 +3,7 @@ import type { Operation, Schema } from '../spec.js';
3
3
  export declare const BASE_PATH = "/api/v1";
4
4
  /** The day spec/openapi.yaml was fetched from the API, when scripts/fetch-spec.mjs recorded it. */
5
5
  export declare const SPEC_DATE: string | undefined;
6
- export type OperationId = 'aggregateEntries' | 'aggregateFormViewEntries' | 'aggregateTableEntries' | 'aggregateTableViewEntries' | 'aggregateTradeTransactions' | 'checkFormFieldData' | 'checkTableFieldData' | 'copyForm' | 'countEntries' | 'countEntriesAcrossForms' | 'countFormViewEntries' | 'countTableEntries' | 'countTableViewEntries' | 'createCheckinCampaign' | 'createEmailTask' | 'createEntriesBatch' | 'createEntry' | 'createEntryComment' | 'createEntryImport' | 'createEntryLegacy' | 'createFillFormEntry' | 'createFillPseudoFormEntry' | 'createFillViewEntry' | 'createFolder' | 'createForm' | 'createFormCooperators' | 'createFormView' | 'createFormWebhook' | 'createMemoryNote' | 'createMessageChannel' | 'createNotificationRule' | 'createOpenResult' | 'createOpensearchQuery' | 'createPseudoForm' | 'createPseudoFormsBatch' | 'createRoutine' | 'createSmsSignature' | 'createSmsTask' | 'createSmsTemplate' | 'createTable' | 'createTableEntry' | 'createTableEntryComment' | 'createTableView' | 'createTemplateUsage' | 'createWeixinOauthSession' | 'deleteCheckinCampaign' | 'deleteEntry' | 'deleteEntryComment' | 'deleteForm' | 'deleteFormView' | 'deleteFormWebhook' | 'deleteMemoryNotes' | 'deleteMessageChannel' | 'deleteNotificationRule' | 'deleteOpenResult' | 'deletePseudoForm' | 'deletePseudoFormsBatch' | 'deleteRoutine' | 'deleteSmsSignature' | 'deleteSmsTemplate' | 'deleteTable' | 'deleteTableEntry' | 'deleteTableEntryComment' | 'deleteTableView' | 'estimateEmailTask' | 'estimateEmailTaskResend' | 'estimateMessage' | 'estimateSmsTask' | 'estimateSmsTaskChange' | 'estimateSmsTaskResend' | 'exportRemainingVouchers' | 'getBillingAccount' | 'getCheckinCampaign' | 'getCurrentUser' | 'getEmailTask' | 'getEntry' | 'getEntryImport' | 'getEntryStateFlow' | 'getEntryStats' | 'getEvaluationSetting' | 'getExamSetting' | 'getFieldType' | 'getFillFormPage' | 'getFillPseudoFormPage' | 'getFillViewPage' | 'getFolder' | 'getForm' | 'getFormSetting' | 'getFormView' | 'getManuallyCloseRule' | 'getMemory' | 'getMessage' | 'getMessageChannel' | 'getNotificationRule' | 'getOpenResult' | 'getOpensearchQuery' | 'getPublishedArtifact' | 'getQuickpaySetting' | 'getRoutine' | 'getSmsTask' | 'getTable' | 'getTableEntry' | 'getTableView' | 'getTradeMerchant' | 'getUserFormSetting' | 'getWheelFortune' | 'listArtifactDataSources' | 'listArtifacts' | 'listBillingAccountInvoices' | 'listBillingAccountPaidFeatures' | 'listBillingAccountPaymentHistories' | 'listBillingAccountUsers' | 'listCheckinCampaigns' | 'listContacts' | 'listEmailTaskActivities' | 'listEmailTasks' | 'listEntries' | 'listEntryComments' | 'listExtendedAttributes' | 'listFieldRules' | 'listFieldTypes' | 'listFolders' | 'listFormConditionTriggerableFields' | 'listFormCooperators' | 'listFormPublishedArtifacts' | 'listFormViewEntries' | 'listFormViews' | 'listForms' | 'listMessageChannels' | 'listMessages' | 'listMyFilledForms' | 'listMySubmittedEntries' | 'listNotificationRuleNotifications' | 'listNotificationRules' | 'listOpenResults' | 'listOpensearchQueries' | 'listOpensearchQuerySuggestions' | 'listPseudoForms' | 'listRedirectRules' | 'listRoutineRuns' | 'listRoutines' | 'listSmsAuditStatuses' | 'listSmsSignatures' | 'listSmsTaskActivities' | 'listSmsTasks' | 'listSmsTemplates' | 'listSmtpAccounts' | 'listTableConditionTriggerableFields' | 'listTableEntries' | 'listTableEntryComments' | 'listTablePublishedArtifacts' | 'listTableViewEntries' | 'listTableViews' | 'listTables' | 'listTradePayouts' | 'listTradeRefunds' | 'listTradeTransactions' | 'moveFormToFolder' | 'moveTableToFolder' | 'patchEntriesBatch' | 'pauseRoutine' | 'prepareEntryAttachmentUpload' | 'prepareFormImageUpload' | 'prepareGoodsDeliverableAttachmentUpload' | 'prepareImportFileUpload' | 'previewFormDeletion' | 'previewFormFieldTypeChange' | 'previewTableDeletion' | 'previewTableFieldTypeChange' | 'replaceEntry' | 'replaceTableEntry' | 'resendEmailTask' | 'resendSmsTask' | 'restoreFormPublishedArtifactDataGrant' | 'restoreTablePublishedArtifactDataGrant' | 'resumeRoutine' | 'revokeFormPublishedArtifactDataGrant' | 'revokeTablePublishedArtifactDataGrant' | 'runRoutine' | 'searchEntriesAcrossForms' | 'searchMySubmittedEntries' | 'sendMessage' | 'sendSmsTask' | 'summarizeEntries' | 'summarizeFormViewEntries' | 'summarizeTableEntries' | 'summarizeTableViewEntries' | 'updateAccessPolicy' | 'updateCheckinCampaign' | 'updateEntry' | 'updateEntryComment' | 'updateEntryStateFlow' | 'updateEntryViaPost' | 'updateEvaluationSetting' | 'updateExamSetting' | 'updateForm' | 'updateFormSetting' | 'updateFormTheme' | 'updateFormView' | 'updateManuallyCloseRule' | 'updateMemoryNote' | 'updateNotificationRule' | 'updateOpenResult' | 'updateOpensearchQuery' | 'updatePseudoForm' | 'updatePublishedArtifact' | 'updateQuickpaySetting' | 'updateRoutine' | 'updateSmsSignature' | 'updateSmsTask' | 'updateSmsTemplate' | 'updateTable' | 'updateTableEntry' | 'updateTableEntryComment' | 'updateTableEntryViaPost' | 'updateTableView' | 'updateUserFormSetting' | 'updateWheelFortune' | 'uploadEntryAttachment' | 'uploadFormImage' | 'uploadGoodsDeliverableAttachment' | 'uploadImportFile' | 'uploadUserLicenseAttachment' | 'verifyRedirectParams';
6
+ export type OperationId = 'aggregateEntries' | 'aggregateFormViewEntries' | 'aggregateTableEntries' | 'aggregateTableViewEntries' | 'aggregateTradeTransactions' | 'checkFormFieldData' | 'checkTableFieldData' | 'copyForm' | 'countEntries' | 'countEntriesAcrossForms' | 'countFormViewEntries' | 'countTableEntries' | 'countTableViewEntries' | 'createCheckinCampaign' | 'createEmailTask' | 'createEntriesBatch' | 'createEntry' | 'createEntryComment' | 'createEntryImport' | 'createEntryLegacy' | 'createFillFormEntry' | 'createFillPseudoFormEntry' | 'createFillViewEntry' | 'createFolder' | 'createForm' | 'createFormCooperators' | 'createFormView' | 'createFormWebhook' | 'createMemoryNote' | 'createMessageChannel' | 'createNotificationRule' | 'createOpenResult' | 'createOpensearchQuery' | 'createPseudoForm' | 'createPseudoFormsBatch' | 'createRoutine' | 'createSmsSignature' | 'createSmsTask' | 'createSmsTemplate' | 'createTable' | 'createTableEntry' | 'createTableEntryComment' | 'createTableView' | 'createTemplateUsage' | 'createWeixinOauthSession' | 'deleteCheckinCampaign' | 'deleteEntry' | 'deleteEntryComment' | 'deleteForm' | 'deleteFormCooperator' | 'deleteFormView' | 'deleteFormWebhook' | 'deleteMemoryNotes' | 'deleteMessageChannel' | 'deleteNotificationRule' | 'deleteOpenResult' | 'deleteOpensearchQuery' | 'deletePseudoForm' | 'deletePseudoFormsBatch' | 'deleteRoutine' | 'deleteSmsSignature' | 'deleteSmsTemplate' | 'deleteTable' | 'deleteTableEntry' | 'deleteTableEntryComment' | 'deleteTableView' | 'estimateEmailTask' | 'estimateEmailTaskResend' | 'estimateMessage' | 'estimateSmsTask' | 'estimateSmsTaskChange' | 'estimateSmsTaskResend' | 'exportRemainingVouchers' | 'getBillingAccount' | 'getCheckinCampaign' | 'getCurrentUser' | 'getEmailTask' | 'getEntry' | 'getEntryImport' | 'getEntryStateFlow' | 'getEntryStats' | 'getEvaluationSetting' | 'getExamSetting' | 'getFieldType' | 'getFillFormPage' | 'getFillPseudoFormPage' | 'getFillViewPage' | 'getFolder' | 'getForm' | 'getFormSetting' | 'getFormView' | 'getManuallyCloseRule' | 'getMemory' | 'getMessage' | 'getMessageChannel' | 'getNotificationRule' | 'getOpenResult' | 'getOpensearchQuery' | 'getPublishedArtifact' | 'getQuickpaySetting' | 'getRoutine' | 'getSmsTask' | 'getTable' | 'getTableEntry' | 'getTableView' | 'getTradeMerchant' | 'getUserFormSetting' | 'getWheelFortune' | 'listArtifactDataSources' | 'listArtifacts' | 'listBillingAccountInvoices' | 'listBillingAccountPaidFeatures' | 'listBillingAccountPaymentHistories' | 'listBillingAccountUsers' | 'listCheckinCampaigns' | 'listContacts' | 'listEmailTaskActivities' | 'listEmailTasks' | 'listEntries' | 'listEntryComments' | 'listExtendedAttributes' | 'listFieldRules' | 'listFieldTypes' | 'listFolders' | 'listFormConditionTriggerableFields' | 'listFormCooperators' | 'listFormPublishedArtifacts' | 'listFormViewEntries' | 'listFormViews' | 'listForms' | 'listMessageChannels' | 'listMessages' | 'listMyFilledForms' | 'listMySubmittedEntries' | 'listNotificationRuleNotifications' | 'listNotificationRules' | 'listOpenResults' | 'listOpensearchQueries' | 'listOpensearchQuerySuggestions' | 'listPseudoForms' | 'listRedirectRules' | 'listRoutineRuns' | 'listRoutines' | 'listSmsAuditStatuses' | 'listSmsSignatures' | 'listSmsTaskActivities' | 'listSmsTasks' | 'listSmsTemplates' | 'listSmtpAccounts' | 'listTableConditionTriggerableFields' | 'listTableEntries' | 'listTableEntryComments' | 'listTablePublishedArtifacts' | 'listTableViewEntries' | 'listTableViews' | 'listTables' | 'listTradePayouts' | 'listTradeRefunds' | 'listTradeTransactions' | 'moveFormToFolder' | 'moveTableToFolder' | 'patchEntriesBatch' | 'pauseRoutine' | 'prepareEntryAttachmentUpload' | 'prepareFormImageUpload' | 'prepareGoodsDeliverableAttachmentUpload' | 'prepareImportFileUpload' | 'previewFormDeletion' | 'previewFormFieldTypeChange' | 'previewTableDeletion' | 'previewTableFieldTypeChange' | 'replaceEntry' | 'replaceTableEntry' | 'resendEmailTask' | 'resendSmsTask' | 'restoreFormPublishedArtifactDataGrant' | 'restoreTablePublishedArtifactDataGrant' | 'resumeRoutine' | 'revokeFormPublishedArtifactDataGrant' | 'revokeTablePublishedArtifactDataGrant' | 'runRoutine' | 'searchEntriesAcrossForms' | 'searchMySubmittedEntries' | 'sendMessage' | 'sendSmsTask' | 'summarizeEntries' | 'summarizeFormViewEntries' | 'summarizeTableEntries' | 'summarizeTableViewEntries' | 'updateAccessPolicy' | 'updateCheckinCampaign' | 'updateEntry' | 'updateEntryComment' | 'updateEntryStateFlow' | 'updateEntryViaPost' | 'updateEvaluationSetting' | 'updateExamSetting' | 'updateForm' | 'updateFormCooperator' | 'updateFormSetting' | 'updateFormTheme' | 'updateFormView' | 'updateManuallyCloseRule' | 'updateMemoryNote' | 'updateNotificationRule' | 'updateOpenResult' | 'updateOpensearchQuery' | 'updatePseudoForm' | 'updatePublishedArtifact' | 'updateQuickpaySetting' | 'updateRoutine' | 'updateSmsSignature' | 'updateSmsTask' | 'updateSmsTemplate' | 'updateTable' | 'updateTableEntry' | 'updateTableEntryComment' | 'updateTableEntryViaPost' | 'updateTableView' | 'updateUserFormSetting' | 'updateWheelFortune' | 'uploadEntryAttachment' | 'uploadFormImage' | 'uploadGoodsDeliverableAttachment' | 'uploadImportFile' | 'uploadUserLicenseAttachment' | 'verifyRedirectParams';
7
7
  export declare const OPERATIONS: {
8
8
  readonly [id in OperationId]: Operation;
9
9
  };
@@ -3,7 +3,7 @@
3
3
  /** The path every operation's path is relative to, from `servers`. */
4
4
  export const BASE_PATH = '/api/v1';
5
5
  /** The day spec/openapi.yaml was fetched from the API, when scripts/fetch-spec.mjs recorded it. */
6
- export const SPEC_DATE = '2026-11-24';
6
+ export const SPEC_DATE = '2026-11-26';
7
7
  export const OPERATIONS = {
8
8
  aggregateEntries: {
9
9
  method: 'GET',
@@ -550,6 +550,14 @@ export const OPERATIONS = {
550
550
  path: '/forms/{form_token}',
551
551
  parameters: [{ name: 'form_token', in: 'path', required: true, schema: { type: 'string' } }]
552
552
  },
553
+ deleteFormCooperator: {
554
+ method: 'DELETE',
555
+ path: '/forms/{form_token}/cooperators/{user_id}',
556
+ parameters: [
557
+ { name: 'form_token', in: 'path', required: true, schema: { type: 'string' } },
558
+ { name: 'user_id', in: 'path', required: true, schema: { type: 'string', pattern: '^[0-9a-f]{24}$' } }
559
+ ]
560
+ },
553
561
  deleteFormView: {
554
562
  method: 'DELETE',
555
563
  path: '/forms/{form_token}/views/{view_token}',
@@ -597,6 +605,11 @@ export const OPERATIONS = {
597
605
  { name: 'token', in: 'path', required: true, schema: { type: 'string' } }
598
606
  ]
599
607
  },
608
+ deleteOpensearchQuery: {
609
+ method: 'DELETE',
610
+ path: '/opensearch/queries/{query_token}',
611
+ parameters: [{ name: 'query_token', in: 'path', required: true, schema: { type: 'string' } }]
612
+ },
600
613
  deletePseudoForm: {
601
614
  method: 'DELETE',
602
615
  path: '/forms/{form_token}/pseudo_forms/{pseudo_form_token}',
@@ -1957,6 +1970,15 @@ export const OPERATIONS = {
1957
1970
  parameters: [{ name: 'form_token', in: 'path', required: true, schema: { type: 'string' } }],
1958
1971
  body: { required: true, content: { 'application/json': { $ref: 'FormUpdateInput' } } }
1959
1972
  },
1973
+ updateFormCooperator: {
1974
+ method: 'PATCH',
1975
+ path: '/forms/{form_token}/cooperators/{user_id}',
1976
+ parameters: [
1977
+ { name: 'form_token', in: 'path', required: true, schema: { type: 'string' } },
1978
+ { name: 'user_id', in: 'path', required: true, schema: { type: 'string', pattern: '^[0-9a-f]{24}$' } }
1979
+ ],
1980
+ body: { required: true, content: { 'application/json': { $ref: 'CooperatorUpdateInput' } } }
1981
+ },
1960
1982
  updateFormSetting: {
1961
1983
  method: 'PATCH',
1962
1984
  path: '/forms/{form_token}/setting',
@@ -2279,6 +2301,7 @@ export const SCHEMAS = {
2279
2301
  label: { type: ['string', 'null'] },
2280
2302
  cid: { type: 'string' },
2281
2303
  notes: { type: ['string', 'null'] },
2304
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
2282
2305
  private: { type: 'boolean' },
2283
2306
  required: { type: 'boolean' },
2284
2307
  position: { type: 'integer', minimum: 0 },
@@ -2370,6 +2393,7 @@ export const SCHEMAS = {
2370
2393
  label: { type: ['string', 'null'] },
2371
2394
  cid: { type: 'string' },
2372
2395
  notes: { type: ['string', 'null'] },
2396
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
2373
2397
  private: { type: 'boolean' },
2374
2398
  required: { type: 'boolean' },
2375
2399
  position: { type: 'integer', minimum: 0 },
@@ -2397,6 +2421,7 @@ export const SCHEMAS = {
2397
2421
  label: { type: ['string', 'null'] },
2398
2422
  cid: { type: 'string' },
2399
2423
  notes: { type: ['string', 'null'] },
2424
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
2400
2425
  private: { type: 'boolean' },
2401
2426
  required: { type: 'boolean' },
2402
2427
  position: { type: 'integer', minimum: 0 },
@@ -2484,6 +2509,7 @@ export const SCHEMAS = {
2484
2509
  label: { type: ['string', 'null'] },
2485
2510
  cid: { type: 'string' },
2486
2511
  notes: { type: ['string', 'null'] },
2512
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
2487
2513
  private: { type: 'boolean' },
2488
2514
  required: { type: 'boolean' },
2489
2515
  position: { type: 'integer', minimum: 0 },
@@ -2537,6 +2563,7 @@ export const SCHEMAS = {
2537
2563
  label: { type: ['string', 'null'] },
2538
2564
  cid: { type: 'string' },
2539
2565
  notes: { type: ['string', 'null'] },
2566
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
2540
2567
  private: { type: 'boolean' },
2541
2568
  required: { type: 'boolean' },
2542
2569
  position: { type: 'integer', minimum: 0 },
@@ -2544,6 +2571,7 @@ export const SCHEMAS = {
2544
2571
  choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' }, maxItems: 1000 },
2545
2572
  calculable: { type: 'boolean' },
2546
2573
  choices_layout: { type: ['string', 'null'] },
2574
+ presentation_style: { type: ['string', 'null'], enum: ['list', 'dropdown', null] },
2547
2575
  random_choices: { type: 'boolean' },
2548
2576
  minimum_length: { type: ['integer', 'null'], minimum: 0 },
2549
2577
  maximum_length: { type: ['integer', 'null'], minimum: 0 },
@@ -2646,7 +2674,11 @@ export const SCHEMAS = {
2646
2674
  selected: { type: 'boolean' },
2647
2675
  description_text: { type: ['string', 'null'] },
2648
2676
  description_url: { type: ['string', 'null'] },
2649
- is_other: { type: 'boolean' }
2677
+ is_other: { type: 'boolean' },
2678
+ allow_extended_text: { type: 'boolean' },
2679
+ extended_text_required: { type: 'boolean' },
2680
+ extended_text_placeholder: { type: 'string', maxLength: 500 },
2681
+ position: { type: 'integer', minimum: 0 }
2650
2682
  }
2651
2683
  },
2652
2684
  ChoiceUpdateInput: {
@@ -2672,7 +2704,11 @@ export const SCHEMAS = {
2672
2704
  quota: { type: ['integer', 'null'], minimum: 0 },
2673
2705
  recover_quota: { type: 'integer', minimum: 1 },
2674
2706
  description_text: { type: ['string', 'null'] },
2675
- description_url: { type: ['string', 'null'] }
2707
+ description_url: { type: ['string', 'null'] },
2708
+ allow_extended_text: { type: 'boolean' },
2709
+ extended_text_required: { type: 'boolean' },
2710
+ extended_text_placeholder: { type: ['string', 'null'], maxLength: 500 },
2711
+ position: { type: 'integer', minimum: 0 }
2676
2712
  },
2677
2713
  additionalProperties: false
2678
2714
  }
@@ -2689,6 +2725,12 @@ export const SCHEMAS = {
2689
2725
  },
2690
2726
  additionalProperties: false
2691
2727
  },
2728
+ CooperatorUpdateInput: {
2729
+ type: 'object',
2730
+ required: ['role'],
2731
+ properties: { role: { type: 'string', enum: ['manager', 'data_maintainer', 'data_viewer'] } },
2732
+ additionalProperties: false
2733
+ },
2692
2734
  CopyFormInput: {
2693
2735
  type: 'object',
2694
2736
  properties: {
@@ -2742,6 +2784,7 @@ export const SCHEMAS = {
2742
2784
  label: { type: ['string', 'null'] },
2743
2785
  cid: { type: 'string' },
2744
2786
  notes: { type: ['string', 'null'] },
2787
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
2745
2788
  private: { type: 'boolean' },
2746
2789
  required: { type: 'boolean' },
2747
2790
  position: { type: 'integer', minimum: 0 },
@@ -2762,6 +2805,7 @@ export const SCHEMAS = {
2762
2805
  label: { type: ['string', 'null'] },
2763
2806
  cid: { type: 'string' },
2764
2807
  notes: { type: ['string', 'null'] },
2808
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
2765
2809
  private: { type: 'boolean' },
2766
2810
  required: { type: 'boolean' },
2767
2811
  position: { type: 'integer', minimum: 0 },
@@ -2846,6 +2890,7 @@ export const SCHEMAS = {
2846
2890
  label: { type: ['string', 'null'] },
2847
2891
  cid: { type: 'string' },
2848
2892
  notes: { type: ['string', 'null'] },
2893
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
2849
2894
  private: { type: 'boolean' },
2850
2895
  required: { type: 'boolean' },
2851
2896
  position: { type: 'integer', minimum: 0 },
@@ -2876,6 +2921,7 @@ export const SCHEMAS = {
2876
2921
  label: { type: ['string', 'null'] },
2877
2922
  cid: { type: 'string' },
2878
2923
  notes: { type: ['string', 'null'] },
2924
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
2879
2925
  private: { type: 'boolean' },
2880
2926
  required: { type: 'boolean' },
2881
2927
  position: { type: 'integer', minimum: 0 },
@@ -2918,6 +2964,7 @@ export const SCHEMAS = {
2918
2964
  label: { type: ['string', 'null'] },
2919
2965
  cid: { type: 'string' },
2920
2966
  notes: { type: ['string', 'null'] },
2967
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
2921
2968
  private: { type: 'boolean' },
2922
2969
  required: { type: 'boolean' },
2923
2970
  position: { type: 'integer', minimum: 0 }
@@ -2948,6 +2995,7 @@ export const SCHEMAS = {
2948
2995
  label: { type: ['string', 'null'] },
2949
2996
  cid: { type: 'string' },
2950
2997
  notes: { type: ['string', 'null'] },
2998
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
2951
2999
  private: { type: 'boolean' },
2952
3000
  required: { type: 'boolean' },
2953
3001
  position: { type: 'integer', minimum: 0 },
@@ -3525,6 +3573,7 @@ export const SCHEMAS = {
3525
3573
  hidden: { type: 'boolean' },
3526
3574
  allow_extended_text: { type: 'boolean' },
3527
3575
  extended_text_required: { type: 'boolean' },
3576
+ extended_text_placeholder: { type: ['string', 'null'] },
3528
3577
  description_text: { type: ['string', 'null'] },
3529
3578
  description_url: { type: ['string', 'null'] },
3530
3579
  attachment_id: { type: 'string' },
@@ -3602,6 +3651,7 @@ export const SCHEMAS = {
3602
3651
  sms_verification: { type: 'boolean' },
3603
3652
  calculable: { type: 'boolean' },
3604
3653
  choices_layout: { type: ['string', 'null'] },
3654
+ presentation_style: { type: ['string', 'null'], enum: ['list', 'dropdown', null] },
3605
3655
  random_choices: { type: 'boolean' },
3606
3656
  hide_choice_when_quota_empty: { type: 'boolean' },
3607
3657
  quota_blank_warning: { type: ['string', 'null'] },
@@ -3893,6 +3943,7 @@ export const SCHEMAS = {
3893
3943
  confirm_data_loss: { type: 'boolean' },
3894
3944
  label: { type: ['string', 'null'] },
3895
3945
  notes: { type: ['string', 'null'] },
3946
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
3896
3947
  private: { type: 'boolean' },
3897
3948
  required: { type: 'boolean' },
3898
3949
  unique: { type: 'boolean' },
@@ -3924,6 +3975,7 @@ export const SCHEMAS = {
3924
3975
  hide_quota: { type: 'boolean' },
3925
3976
  grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
3926
3977
  start_new_row: { type: 'boolean' },
3978
+ presentation_style: { type: ['string', 'null'], enum: ['list', 'dropdown', null] },
3927
3979
  minimum_length: { type: ['integer', 'null'], minimum: 0 },
3928
3980
  maximum_length: { type: ['integer', 'null'], minimum: 0 },
3929
3981
  with_exclusive_choice: { type: 'boolean' },
@@ -4097,6 +4149,7 @@ export const SCHEMAS = {
4097
4149
  label: { type: ['string', 'null'] },
4098
4150
  cid: { type: 'string' },
4099
4151
  notes: { type: ['string', 'null'] },
4152
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
4100
4153
  private: { type: 'boolean' },
4101
4154
  required: { type: 'boolean' },
4102
4155
  position: { type: 'integer', minimum: 0 },
@@ -4149,6 +4202,7 @@ export const SCHEMAS = {
4149
4202
  label: { type: ['string', 'null'] },
4150
4203
  cid: { type: 'string' },
4151
4204
  notes: { type: ['string', 'null'] },
4205
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
4152
4206
  private: { type: 'boolean' },
4153
4207
  required: { type: 'boolean' },
4154
4208
  position: { type: 'integer', minimum: 0 },
@@ -4212,6 +4266,7 @@ export const SCHEMAS = {
4212
4266
  label: { type: ['string', 'null'] },
4213
4267
  cid: { type: 'string' },
4214
4268
  notes: { type: ['string', 'null'] },
4269
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
4215
4270
  private: { type: 'boolean' },
4216
4271
  required: { type: 'boolean' },
4217
4272
  position: { type: 'integer', minimum: 0 },
@@ -4567,7 +4622,8 @@ export const SCHEMAS = {
4567
4622
  notes: { type: ['string', 'null'] },
4568
4623
  private: { type: ['boolean', 'null'] },
4569
4624
  position: { type: ['integer', 'null'] },
4570
- validations: { type: 'array', items: { type: 'string' } }
4625
+ validations: { type: 'array', items: { type: 'string' } },
4626
+ privacy_safe: { type: ['boolean', 'null'] }
4571
4627
  },
4572
4628
  additionalProperties: false
4573
4629
  },
@@ -4733,6 +4789,7 @@ export const SCHEMAS = {
4733
4789
  label: { type: ['string', 'null'] },
4734
4790
  cid: { type: 'string' },
4735
4791
  notes: { type: ['string', 'null'] },
4792
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
4736
4793
  private: { type: 'boolean' },
4737
4794
  required: { type: 'boolean' },
4738
4795
  position: { type: 'integer', minimum: 0 }
@@ -4747,6 +4804,7 @@ export const SCHEMAS = {
4747
4804
  label: { type: ['string', 'null'] },
4748
4805
  cid: { type: 'string' },
4749
4806
  notes: { type: ['string', 'null'] },
4807
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
4750
4808
  private: { type: 'boolean' },
4751
4809
  required: { type: 'boolean' },
4752
4810
  position: { type: 'integer', minimum: 0 },
@@ -4931,6 +4989,7 @@ export const SCHEMAS = {
4931
4989
  label: { type: ['string', 'null'] },
4932
4990
  cid: { type: 'string' },
4933
4991
  notes: { type: ['string', 'null'] },
4992
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
4934
4993
  private: { type: 'boolean' },
4935
4994
  required: { type: 'boolean' },
4936
4995
  position: { type: 'integer', minimum: 0 },
@@ -4962,6 +5021,7 @@ export const SCHEMAS = {
4962
5021
  label: { type: ['string', 'null'] },
4963
5022
  cid: { type: 'string' },
4964
5023
  notes: { type: ['string', 'null'] },
5024
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
4965
5025
  private: { type: 'boolean' },
4966
5026
  required: { type: 'boolean' },
4967
5027
  position: { type: 'integer', minimum: 0 },
@@ -4982,6 +5042,7 @@ export const SCHEMAS = {
4982
5042
  label: { type: ['string', 'null'] },
4983
5043
  cid: { type: 'string' },
4984
5044
  notes: { type: ['string', 'null'] },
5045
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
4985
5046
  private: { type: 'boolean' },
4986
5047
  required: { type: 'boolean' },
4987
5048
  position: { type: 'integer', minimum: 0 },
@@ -5023,7 +5084,8 @@ export const SCHEMAS = {
5023
5084
  description_url: { type: ['string', 'null'] },
5024
5085
  image_url: { type: 'string' },
5025
5086
  image_base64: { type: 'string' },
5026
- attachment_id: { type: 'string' }
5087
+ attachment_id: { type: 'string' },
5088
+ position: { type: 'integer', minimum: 0 }
5027
5089
  }
5028
5090
  },
5029
5091
  ImageMultiSelectInput: {
@@ -5035,6 +5097,7 @@ export const SCHEMAS = {
5035
5097
  label: { type: ['string', 'null'] },
5036
5098
  cid: { type: 'string' },
5037
5099
  notes: { type: ['string', 'null'] },
5100
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
5038
5101
  private: { type: 'boolean' },
5039
5102
  required: { type: 'boolean' },
5040
5103
  position: { type: 'integer', minimum: 0 },
@@ -5090,6 +5153,7 @@ export const SCHEMAS = {
5090
5153
  label: { type: ['string', 'null'] },
5091
5154
  cid: { type: 'string' },
5092
5155
  notes: { type: ['string', 'null'] },
5156
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
5093
5157
  private: { type: 'boolean' },
5094
5158
  required: { type: 'boolean' },
5095
5159
  position: { type: 'integer', minimum: 0 },
@@ -5118,6 +5182,7 @@ export const SCHEMAS = {
5118
5182
  label: { type: ['string', 'null'] },
5119
5183
  cid: { type: 'string' },
5120
5184
  notes: { type: ['string', 'null'] },
5185
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
5121
5186
  private: { type: 'boolean' },
5122
5187
  required: { type: 'boolean' },
5123
5188
  position: { type: 'integer', minimum: 0 },
@@ -5158,6 +5223,7 @@ export const SCHEMAS = {
5158
5223
  label: { type: ['string', 'null'] },
5159
5224
  cid: { type: 'string' },
5160
5225
  notes: { type: ['string', 'null'] },
5226
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
5161
5227
  private: { type: 'boolean' },
5162
5228
  required: { type: 'boolean' },
5163
5229
  position: { type: 'integer', minimum: 0 },
@@ -5206,6 +5272,7 @@ export const SCHEMAS = {
5206
5272
  label: { type: ['string', 'null'] },
5207
5273
  cid: { type: 'string' },
5208
5274
  notes: { type: ['string', 'null'] },
5275
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
5209
5276
  private: { type: 'boolean' },
5210
5277
  required: { type: 'boolean' },
5211
5278
  position: { type: 'integer', minimum: 0 },
@@ -5275,6 +5342,7 @@ export const SCHEMAS = {
5275
5342
  label: { type: ['string', 'null'] },
5276
5343
  cid: { type: 'string' },
5277
5344
  notes: { type: ['string', 'null'] },
5345
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
5278
5346
  private: { type: 'boolean' },
5279
5347
  required: { type: 'boolean' },
5280
5348
  position: { type: 'integer', minimum: 0 },
@@ -5292,6 +5360,7 @@ export const SCHEMAS = {
5292
5360
  label: { type: ['string', 'null'] },
5293
5361
  cid: { type: 'string' },
5294
5362
  notes: { type: ['string', 'null'] },
5363
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
5295
5364
  private: { type: 'boolean' },
5296
5365
  required: { type: 'boolean' },
5297
5366
  position: { type: 'integer', minimum: 0 },
@@ -5432,6 +5501,7 @@ export const SCHEMAS = {
5432
5501
  label: { type: ['string', 'null'] },
5433
5502
  cid: { type: 'string' },
5434
5503
  notes: { type: ['string', 'null'] },
5504
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
5435
5505
  private: { type: 'boolean' },
5436
5506
  required: { type: 'boolean' },
5437
5507
  position: { type: 'integer', minimum: 0 },
@@ -5455,6 +5525,7 @@ export const SCHEMAS = {
5455
5525
  label: { type: ['string', 'null'] },
5456
5526
  cid: { type: 'string' },
5457
5527
  notes: { type: ['string', 'null'] },
5528
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
5458
5529
  private: { type: 'boolean' },
5459
5530
  required: { type: 'boolean' },
5460
5531
  position: { type: 'integer', minimum: 0 },
@@ -5462,6 +5533,7 @@ export const SCHEMAS = {
5462
5533
  choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' }, maxItems: 1000 },
5463
5534
  calculable: { type: 'boolean' },
5464
5535
  choices_layout: { type: ['string', 'null'] },
5536
+ presentation_style: { type: ['string', 'null'], enum: ['list', 'dropdown', null] },
5465
5537
  random_choices: { type: 'boolean' },
5466
5538
  minimum_length: { type: ['integer', 'null'], minimum: 0 },
5467
5539
  maximum_length: { type: ['integer', 'null'], minimum: 0 },
@@ -5513,6 +5585,7 @@ export const SCHEMAS = {
5513
5585
  label: { type: ['string', 'null'] },
5514
5586
  cid: { type: 'string' },
5515
5587
  notes: { type: ['string', 'null'] },
5588
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
5516
5589
  private: { type: 'boolean' },
5517
5590
  required: { type: 'boolean' },
5518
5591
  position: { type: 'integer', minimum: 0 },
@@ -5529,6 +5602,7 @@ export const SCHEMAS = {
5529
5602
  label: { type: ['string', 'null'] },
5530
5603
  cid: { type: 'string' },
5531
5604
  notes: { type: ['string', 'null'] },
5605
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
5532
5606
  private: { type: 'boolean' },
5533
5607
  required: { type: 'boolean' },
5534
5608
  position: { type: 'integer', minimum: 0 },
@@ -5617,6 +5691,7 @@ export const SCHEMAS = {
5617
5691
  label: { type: ['string', 'null'] },
5618
5692
  cid: { type: 'string' },
5619
5693
  notes: { type: ['string', 'null'] },
5694
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
5620
5695
  private: { type: 'boolean' },
5621
5696
  required: { type: 'boolean' },
5622
5697
  position: { type: 'integer', minimum: 0 },
@@ -5633,6 +5708,7 @@ export const SCHEMAS = {
5633
5708
  label: { type: ['string', 'null'] },
5634
5709
  cid: { type: 'string' },
5635
5710
  notes: { type: ['string', 'null'] },
5711
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
5636
5712
  private: { type: 'boolean' },
5637
5713
  required: { type: 'boolean' },
5638
5714
  position: { type: 'integer', minimum: 0 },
@@ -5695,6 +5771,7 @@ export const SCHEMAS = {
5695
5771
  label: { type: ['string', 'null'] },
5696
5772
  cid: { type: 'string' },
5697
5773
  notes: { type: ['string', 'null'] },
5774
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
5698
5775
  private: { type: 'boolean' },
5699
5776
  required: { type: 'boolean' },
5700
5777
  position: { type: 'integer', minimum: 0 },
@@ -5919,6 +5996,7 @@ export const SCHEMAS = {
5919
5996
  label: { type: ['string', 'null'] },
5920
5997
  cid: { type: 'string' },
5921
5998
  notes: { type: ['string', 'null'] },
5999
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
5922
6000
  private: { type: 'boolean' },
5923
6001
  required: { type: 'boolean' },
5924
6002
  position: { type: 'integer', minimum: 0 },
@@ -5950,6 +6028,7 @@ export const SCHEMAS = {
5950
6028
  label: { type: ['string', 'null'] },
5951
6029
  cid: { type: 'string' },
5952
6030
  notes: { type: ['string', 'null'] },
6031
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
5953
6032
  private: { type: 'boolean' },
5954
6033
  required: { type: 'boolean' },
5955
6034
  position: { type: 'integer', minimum: 0 },
@@ -5968,6 +6047,7 @@ export const SCHEMAS = {
5968
6047
  label: { type: ['string', 'null'] },
5969
6048
  cid: { type: 'string' },
5970
6049
  notes: { type: ['string', 'null'] },
6050
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
5971
6051
  private: { type: 'boolean' },
5972
6052
  required: { type: 'boolean' },
5973
6053
  position: { type: 'integer', minimum: 0 },
@@ -6193,6 +6273,7 @@ export const SCHEMAS = {
6193
6273
  label: { type: ['string', 'null'] },
6194
6274
  cid: { type: 'string' },
6195
6275
  notes: { type: ['string', 'null'] },
6276
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
6196
6277
  private: { type: 'boolean' },
6197
6278
  required: { type: 'boolean' },
6198
6279
  position: { type: 'integer', minimum: 0 },
@@ -6755,6 +6836,7 @@ export const SCHEMAS = {
6755
6836
  label: { type: ['string', 'null'] },
6756
6837
  cid: { type: 'string' },
6757
6838
  notes: { type: ['string', 'null'] },
6839
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
6758
6840
  private: { type: 'boolean' },
6759
6841
  required: { type: 'boolean' },
6760
6842
  position: { type: 'integer', minimum: 0 },
@@ -6790,6 +6872,7 @@ export const SCHEMAS = {
6790
6872
  label: { type: ['string', 'null'] },
6791
6873
  cid: { type: 'string' },
6792
6874
  notes: { type: ['string', 'null'] },
6875
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
6793
6876
  private: { type: 'boolean' },
6794
6877
  required: { type: 'boolean' },
6795
6878
  position: { type: 'integer', minimum: 0 },
@@ -6839,6 +6922,7 @@ export const SCHEMAS = {
6839
6922
  label: { type: ['string', 'null'] },
6840
6923
  cid: { type: 'string' },
6841
6924
  notes: { type: ['string', 'null'] },
6925
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
6842
6926
  private: { type: 'boolean' },
6843
6927
  required: { type: 'boolean' },
6844
6928
  position: { type: 'integer', minimum: 0 },
@@ -6968,6 +7052,7 @@ export const SCHEMAS = {
6968
7052
  label: { type: ['string', 'null'] },
6969
7053
  cid: { type: 'string' },
6970
7054
  notes: { type: ['string', 'null'] },
7055
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
6971
7056
  private: { type: 'boolean' },
6972
7057
  required: { type: 'boolean' },
6973
7058
  position: { type: 'integer', minimum: 0 },
@@ -6984,6 +7069,7 @@ export const SCHEMAS = {
6984
7069
  label: { type: ['string', 'null'] },
6985
7070
  cid: { type: 'string' },
6986
7071
  notes: { type: ['string', 'null'] },
7072
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
6987
7073
  private: { type: 'boolean' },
6988
7074
  required: { type: 'boolean' },
6989
7075
  position: { type: 'integer', minimum: 0 },
@@ -7038,6 +7124,7 @@ export const SCHEMAS = {
7038
7124
  label: { type: ['string', 'null'] },
7039
7125
  cid: { type: 'string' },
7040
7126
  notes: { type: ['string', 'null'] },
7127
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
7041
7128
  private: { type: 'boolean' },
7042
7129
  required: { type: 'boolean' },
7043
7130
  position: { type: 'integer', minimum: 0 },
@@ -7059,6 +7146,7 @@ export const SCHEMAS = {
7059
7146
  label: { type: ['string', 'null'] },
7060
7147
  cid: { type: 'string' },
7061
7148
  notes: { type: ['string', 'null'] },
7149
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
7062
7150
  private: { type: 'boolean' },
7063
7151
  required: { type: 'boolean' },
7064
7152
  position: { type: 'integer', minimum: 0 },
@@ -7195,6 +7283,7 @@ export const SCHEMAS = {
7195
7283
  label: { type: ['string', 'null'] },
7196
7284
  cid: { type: 'string' },
7197
7285
  notes: { type: ['string', 'null'] },
7286
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
7198
7287
  private: { type: 'boolean' },
7199
7288
  required: { type: 'boolean' },
7200
7289
  position: { type: 'integer', minimum: 0 },
@@ -7225,6 +7314,7 @@ export const SCHEMAS = {
7225
7314
  label: { type: ['string', 'null'] },
7226
7315
  cid: { type: 'string' },
7227
7316
  notes: { type: ['string', 'null'] },
7317
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
7228
7318
  private: { type: 'boolean' },
7229
7319
  required: { type: 'boolean' },
7230
7320
  position: { type: 'integer', minimum: 0 },