@jinshuju/cli 0.30.0 → 0.32.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.
@@ -125,16 +125,39 @@ export const COMMANDS = [
125
125
  ...MESSAGE,
126
126
  ...ARTIFACT
127
127
  ];
128
- /** The command whose path the words begin with, longest match first. */
128
+ /**
129
+ * Words that name the same verb. Some resources delete and others remove, some
130
+ * edit and others update, after what the API calls it, and nobody remembers
131
+ * which; any word of a group reaches the command, and the one written out still
132
+ * wins where both exist. No resource has two of one group, and every update or
133
+ * edit changes only what it names, so a synonym never lands on a command that
134
+ * does more than the word said.
135
+ */
136
+ const VERB_GROUPS = [
137
+ ['delete', 'remove'],
138
+ ['create', 'add'],
139
+ ['update', 'edit'],
140
+ ['get', 'show'],
141
+ ['list', 'ls']
142
+ ];
143
+ const SAME_VERB = new Map(VERB_GROUPS.flatMap((group) => group.map((word) => [word, group.filter((other) => other !== word)])));
144
+ /** The command whose path the words begin with, longest match first; a spelled-out match beats a synonym. */
129
145
  export function findCommand(words, commands = COMMANDS) {
130
146
  let best;
147
+ let bestExact = false;
131
148
  for (const command of commands) {
132
149
  if (command.path.length > words.length)
133
150
  continue;
134
- if (command.path.some((part, index) => words[index] !== part))
151
+ const parts = command.path.map((part, index) => words[index] === part ? 'exact' : SAME_VERB.get(words[index])?.includes(part) ? 'synonym' : 'miss');
152
+ if (parts.includes('miss'))
135
153
  continue;
136
- if (!best || command.path.length > best.path.length)
154
+ const exact = !parts.includes('synonym');
155
+ const longer = !best || command.path.length > best.path.length;
156
+ const tieWon = best !== undefined && command.path.length === best.path.length && exact && !bestExact;
157
+ if (longer || tieWon) {
137
158
  best = command;
159
+ bestExact = exact;
160
+ }
138
161
  }
139
162
  return best;
140
163
  }
@@ -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' | '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' | '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}',
@@ -1962,6 +1970,15 @@ export const OPERATIONS = {
1962
1970
  parameters: [{ name: 'form_token', in: 'path', required: true, schema: { type: 'string' } }],
1963
1971
  body: { required: true, content: { 'application/json': { $ref: 'FormUpdateInput' } } }
1964
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
+ },
1965
1982
  updateFormSetting: {
1966
1983
  method: 'PATCH',
1967
1984
  path: '/forms/{form_token}/setting',
@@ -2284,6 +2301,7 @@ export const SCHEMAS = {
2284
2301
  label: { type: ['string', 'null'] },
2285
2302
  cid: { type: 'string' },
2286
2303
  notes: { type: ['string', 'null'] },
2304
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
2287
2305
  private: { type: 'boolean' },
2288
2306
  required: { type: 'boolean' },
2289
2307
  position: { type: 'integer', minimum: 0 },
@@ -2375,6 +2393,7 @@ export const SCHEMAS = {
2375
2393
  label: { type: ['string', 'null'] },
2376
2394
  cid: { type: 'string' },
2377
2395
  notes: { type: ['string', 'null'] },
2396
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
2378
2397
  private: { type: 'boolean' },
2379
2398
  required: { type: 'boolean' },
2380
2399
  position: { type: 'integer', minimum: 0 },
@@ -2402,6 +2421,7 @@ export const SCHEMAS = {
2402
2421
  label: { type: ['string', 'null'] },
2403
2422
  cid: { type: 'string' },
2404
2423
  notes: { type: ['string', 'null'] },
2424
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
2405
2425
  private: { type: 'boolean' },
2406
2426
  required: { type: 'boolean' },
2407
2427
  position: { type: 'integer', minimum: 0 },
@@ -2489,6 +2509,7 @@ export const SCHEMAS = {
2489
2509
  label: { type: ['string', 'null'] },
2490
2510
  cid: { type: 'string' },
2491
2511
  notes: { type: ['string', 'null'] },
2512
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
2492
2513
  private: { type: 'boolean' },
2493
2514
  required: { type: 'boolean' },
2494
2515
  position: { type: 'integer', minimum: 0 },
@@ -2542,6 +2563,7 @@ export const SCHEMAS = {
2542
2563
  label: { type: ['string', 'null'] },
2543
2564
  cid: { type: 'string' },
2544
2565
  notes: { type: ['string', 'null'] },
2566
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
2545
2567
  private: { type: 'boolean' },
2546
2568
  required: { type: 'boolean' },
2547
2569
  position: { type: 'integer', minimum: 0 },
@@ -2549,6 +2571,7 @@ export const SCHEMAS = {
2549
2571
  choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' }, maxItems: 1000 },
2550
2572
  calculable: { type: 'boolean' },
2551
2573
  choices_layout: { type: ['string', 'null'] },
2574
+ presentation_style: { type: ['string', 'null'], enum: ['list', 'dropdown', null] },
2552
2575
  random_choices: { type: 'boolean' },
2553
2576
  minimum_length: { type: ['integer', 'null'], minimum: 0 },
2554
2577
  maximum_length: { type: ['integer', 'null'], minimum: 0 },
@@ -2651,7 +2674,11 @@ export const SCHEMAS = {
2651
2674
  selected: { type: 'boolean' },
2652
2675
  description_text: { type: ['string', 'null'] },
2653
2676
  description_url: { type: ['string', 'null'] },
2654
- 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 }
2655
2682
  }
2656
2683
  },
2657
2684
  ChoiceUpdateInput: {
@@ -2677,7 +2704,11 @@ export const SCHEMAS = {
2677
2704
  quota: { type: ['integer', 'null'], minimum: 0 },
2678
2705
  recover_quota: { type: 'integer', minimum: 1 },
2679
2706
  description_text: { type: ['string', 'null'] },
2680
- 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 }
2681
2712
  },
2682
2713
  additionalProperties: false
2683
2714
  }
@@ -2694,6 +2725,12 @@ export const SCHEMAS = {
2694
2725
  },
2695
2726
  additionalProperties: false
2696
2727
  },
2728
+ CooperatorUpdateInput: {
2729
+ type: 'object',
2730
+ required: ['role'],
2731
+ properties: { role: { type: 'string', enum: ['manager', 'data_maintainer', 'data_viewer'] } },
2732
+ additionalProperties: false
2733
+ },
2697
2734
  CopyFormInput: {
2698
2735
  type: 'object',
2699
2736
  properties: {
@@ -2747,6 +2784,7 @@ export const SCHEMAS = {
2747
2784
  label: { type: ['string', 'null'] },
2748
2785
  cid: { type: 'string' },
2749
2786
  notes: { type: ['string', 'null'] },
2787
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
2750
2788
  private: { type: 'boolean' },
2751
2789
  required: { type: 'boolean' },
2752
2790
  position: { type: 'integer', minimum: 0 },
@@ -2767,6 +2805,7 @@ export const SCHEMAS = {
2767
2805
  label: { type: ['string', 'null'] },
2768
2806
  cid: { type: 'string' },
2769
2807
  notes: { type: ['string', 'null'] },
2808
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
2770
2809
  private: { type: 'boolean' },
2771
2810
  required: { type: 'boolean' },
2772
2811
  position: { type: 'integer', minimum: 0 },
@@ -2851,6 +2890,7 @@ export const SCHEMAS = {
2851
2890
  label: { type: ['string', 'null'] },
2852
2891
  cid: { type: 'string' },
2853
2892
  notes: { type: ['string', 'null'] },
2893
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
2854
2894
  private: { type: 'boolean' },
2855
2895
  required: { type: 'boolean' },
2856
2896
  position: { type: 'integer', minimum: 0 },
@@ -2881,6 +2921,7 @@ export const SCHEMAS = {
2881
2921
  label: { type: ['string', 'null'] },
2882
2922
  cid: { type: 'string' },
2883
2923
  notes: { type: ['string', 'null'] },
2924
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
2884
2925
  private: { type: 'boolean' },
2885
2926
  required: { type: 'boolean' },
2886
2927
  position: { type: 'integer', minimum: 0 },
@@ -2923,6 +2964,7 @@ export const SCHEMAS = {
2923
2964
  label: { type: ['string', 'null'] },
2924
2965
  cid: { type: 'string' },
2925
2966
  notes: { type: ['string', 'null'] },
2967
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
2926
2968
  private: { type: 'boolean' },
2927
2969
  required: { type: 'boolean' },
2928
2970
  position: { type: 'integer', minimum: 0 }
@@ -2953,6 +2995,7 @@ export const SCHEMAS = {
2953
2995
  label: { type: ['string', 'null'] },
2954
2996
  cid: { type: 'string' },
2955
2997
  notes: { type: ['string', 'null'] },
2998
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
2956
2999
  private: { type: 'boolean' },
2957
3000
  required: { type: 'boolean' },
2958
3001
  position: { type: 'integer', minimum: 0 },
@@ -3530,6 +3573,7 @@ export const SCHEMAS = {
3530
3573
  hidden: { type: 'boolean' },
3531
3574
  allow_extended_text: { type: 'boolean' },
3532
3575
  extended_text_required: { type: 'boolean' },
3576
+ extended_text_placeholder: { type: ['string', 'null'] },
3533
3577
  description_text: { type: ['string', 'null'] },
3534
3578
  description_url: { type: ['string', 'null'] },
3535
3579
  attachment_id: { type: 'string' },
@@ -3607,6 +3651,7 @@ export const SCHEMAS = {
3607
3651
  sms_verification: { type: 'boolean' },
3608
3652
  calculable: { type: 'boolean' },
3609
3653
  choices_layout: { type: ['string', 'null'] },
3654
+ presentation_style: { type: ['string', 'null'], enum: ['list', 'dropdown', null] },
3610
3655
  random_choices: { type: 'boolean' },
3611
3656
  hide_choice_when_quota_empty: { type: 'boolean' },
3612
3657
  quota_blank_warning: { type: ['string', 'null'] },
@@ -3898,6 +3943,7 @@ export const SCHEMAS = {
3898
3943
  confirm_data_loss: { type: 'boolean' },
3899
3944
  label: { type: ['string', 'null'] },
3900
3945
  notes: { type: ['string', 'null'] },
3946
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
3901
3947
  private: { type: 'boolean' },
3902
3948
  required: { type: 'boolean' },
3903
3949
  unique: { type: 'boolean' },
@@ -3929,6 +3975,7 @@ export const SCHEMAS = {
3929
3975
  hide_quota: { type: 'boolean' },
3930
3976
  grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
3931
3977
  start_new_row: { type: 'boolean' },
3978
+ presentation_style: { type: ['string', 'null'], enum: ['list', 'dropdown', null] },
3932
3979
  minimum_length: { type: ['integer', 'null'], minimum: 0 },
3933
3980
  maximum_length: { type: ['integer', 'null'], minimum: 0 },
3934
3981
  with_exclusive_choice: { type: 'boolean' },
@@ -4102,6 +4149,7 @@ export const SCHEMAS = {
4102
4149
  label: { type: ['string', 'null'] },
4103
4150
  cid: { type: 'string' },
4104
4151
  notes: { type: ['string', 'null'] },
4152
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
4105
4153
  private: { type: 'boolean' },
4106
4154
  required: { type: 'boolean' },
4107
4155
  position: { type: 'integer', minimum: 0 },
@@ -4154,6 +4202,7 @@ export const SCHEMAS = {
4154
4202
  label: { type: ['string', 'null'] },
4155
4203
  cid: { type: 'string' },
4156
4204
  notes: { type: ['string', 'null'] },
4205
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
4157
4206
  private: { type: 'boolean' },
4158
4207
  required: { type: 'boolean' },
4159
4208
  position: { type: 'integer', minimum: 0 },
@@ -4217,6 +4266,7 @@ export const SCHEMAS = {
4217
4266
  label: { type: ['string', 'null'] },
4218
4267
  cid: { type: 'string' },
4219
4268
  notes: { type: ['string', 'null'] },
4269
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
4220
4270
  private: { type: 'boolean' },
4221
4271
  required: { type: 'boolean' },
4222
4272
  position: { type: 'integer', minimum: 0 },
@@ -4572,7 +4622,8 @@ export const SCHEMAS = {
4572
4622
  notes: { type: ['string', 'null'] },
4573
4623
  private: { type: ['boolean', 'null'] },
4574
4624
  position: { type: ['integer', 'null'] },
4575
- validations: { type: 'array', items: { type: 'string' } }
4625
+ validations: { type: 'array', items: { type: 'string' } },
4626
+ privacy_safe: { type: ['boolean', 'null'] }
4576
4627
  },
4577
4628
  additionalProperties: false
4578
4629
  },
@@ -4738,6 +4789,7 @@ export const SCHEMAS = {
4738
4789
  label: { type: ['string', 'null'] },
4739
4790
  cid: { type: 'string' },
4740
4791
  notes: { type: ['string', 'null'] },
4792
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
4741
4793
  private: { type: 'boolean' },
4742
4794
  required: { type: 'boolean' },
4743
4795
  position: { type: 'integer', minimum: 0 }
@@ -4752,6 +4804,7 @@ export const SCHEMAS = {
4752
4804
  label: { type: ['string', 'null'] },
4753
4805
  cid: { type: 'string' },
4754
4806
  notes: { type: ['string', 'null'] },
4807
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
4755
4808
  private: { type: 'boolean' },
4756
4809
  required: { type: 'boolean' },
4757
4810
  position: { type: 'integer', minimum: 0 },
@@ -4936,6 +4989,7 @@ export const SCHEMAS = {
4936
4989
  label: { type: ['string', 'null'] },
4937
4990
  cid: { type: 'string' },
4938
4991
  notes: { type: ['string', 'null'] },
4992
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
4939
4993
  private: { type: 'boolean' },
4940
4994
  required: { type: 'boolean' },
4941
4995
  position: { type: 'integer', minimum: 0 },
@@ -4967,6 +5021,7 @@ export const SCHEMAS = {
4967
5021
  label: { type: ['string', 'null'] },
4968
5022
  cid: { type: 'string' },
4969
5023
  notes: { type: ['string', 'null'] },
5024
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
4970
5025
  private: { type: 'boolean' },
4971
5026
  required: { type: 'boolean' },
4972
5027
  position: { type: 'integer', minimum: 0 },
@@ -4987,6 +5042,7 @@ export const SCHEMAS = {
4987
5042
  label: { type: ['string', 'null'] },
4988
5043
  cid: { type: 'string' },
4989
5044
  notes: { type: ['string', 'null'] },
5045
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
4990
5046
  private: { type: 'boolean' },
4991
5047
  required: { type: 'boolean' },
4992
5048
  position: { type: 'integer', minimum: 0 },
@@ -5028,7 +5084,8 @@ export const SCHEMAS = {
5028
5084
  description_url: { type: ['string', 'null'] },
5029
5085
  image_url: { type: 'string' },
5030
5086
  image_base64: { type: 'string' },
5031
- attachment_id: { type: 'string' }
5087
+ attachment_id: { type: 'string' },
5088
+ position: { type: 'integer', minimum: 0 }
5032
5089
  }
5033
5090
  },
5034
5091
  ImageMultiSelectInput: {
@@ -5040,6 +5097,7 @@ export const SCHEMAS = {
5040
5097
  label: { type: ['string', 'null'] },
5041
5098
  cid: { type: 'string' },
5042
5099
  notes: { type: ['string', 'null'] },
5100
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
5043
5101
  private: { type: 'boolean' },
5044
5102
  required: { type: 'boolean' },
5045
5103
  position: { type: 'integer', minimum: 0 },
@@ -5095,6 +5153,7 @@ export const SCHEMAS = {
5095
5153
  label: { type: ['string', 'null'] },
5096
5154
  cid: { type: 'string' },
5097
5155
  notes: { type: ['string', 'null'] },
5156
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
5098
5157
  private: { type: 'boolean' },
5099
5158
  required: { type: 'boolean' },
5100
5159
  position: { type: 'integer', minimum: 0 },
@@ -5123,6 +5182,7 @@ export const SCHEMAS = {
5123
5182
  label: { type: ['string', 'null'] },
5124
5183
  cid: { type: 'string' },
5125
5184
  notes: { type: ['string', 'null'] },
5185
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
5126
5186
  private: { type: 'boolean' },
5127
5187
  required: { type: 'boolean' },
5128
5188
  position: { type: 'integer', minimum: 0 },
@@ -5163,6 +5223,7 @@ export const SCHEMAS = {
5163
5223
  label: { type: ['string', 'null'] },
5164
5224
  cid: { type: 'string' },
5165
5225
  notes: { type: ['string', 'null'] },
5226
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
5166
5227
  private: { type: 'boolean' },
5167
5228
  required: { type: 'boolean' },
5168
5229
  position: { type: 'integer', minimum: 0 },
@@ -5211,6 +5272,7 @@ export const SCHEMAS = {
5211
5272
  label: { type: ['string', 'null'] },
5212
5273
  cid: { type: 'string' },
5213
5274
  notes: { type: ['string', 'null'] },
5275
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
5214
5276
  private: { type: 'boolean' },
5215
5277
  required: { type: 'boolean' },
5216
5278
  position: { type: 'integer', minimum: 0 },
@@ -5280,6 +5342,7 @@ export const SCHEMAS = {
5280
5342
  label: { type: ['string', 'null'] },
5281
5343
  cid: { type: 'string' },
5282
5344
  notes: { type: ['string', 'null'] },
5345
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
5283
5346
  private: { type: 'boolean' },
5284
5347
  required: { type: 'boolean' },
5285
5348
  position: { type: 'integer', minimum: 0 },
@@ -5297,6 +5360,7 @@ export const SCHEMAS = {
5297
5360
  label: { type: ['string', 'null'] },
5298
5361
  cid: { type: 'string' },
5299
5362
  notes: { type: ['string', 'null'] },
5363
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
5300
5364
  private: { type: 'boolean' },
5301
5365
  required: { type: 'boolean' },
5302
5366
  position: { type: 'integer', minimum: 0 },
@@ -5437,6 +5501,7 @@ export const SCHEMAS = {
5437
5501
  label: { type: ['string', 'null'] },
5438
5502
  cid: { type: 'string' },
5439
5503
  notes: { type: ['string', 'null'] },
5504
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
5440
5505
  private: { type: 'boolean' },
5441
5506
  required: { type: 'boolean' },
5442
5507
  position: { type: 'integer', minimum: 0 },
@@ -5460,6 +5525,7 @@ export const SCHEMAS = {
5460
5525
  label: { type: ['string', 'null'] },
5461
5526
  cid: { type: 'string' },
5462
5527
  notes: { type: ['string', 'null'] },
5528
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
5463
5529
  private: { type: 'boolean' },
5464
5530
  required: { type: 'boolean' },
5465
5531
  position: { type: 'integer', minimum: 0 },
@@ -5467,6 +5533,7 @@ export const SCHEMAS = {
5467
5533
  choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' }, maxItems: 1000 },
5468
5534
  calculable: { type: 'boolean' },
5469
5535
  choices_layout: { type: ['string', 'null'] },
5536
+ presentation_style: { type: ['string', 'null'], enum: ['list', 'dropdown', null] },
5470
5537
  random_choices: { type: 'boolean' },
5471
5538
  minimum_length: { type: ['integer', 'null'], minimum: 0 },
5472
5539
  maximum_length: { type: ['integer', 'null'], minimum: 0 },
@@ -5518,6 +5585,7 @@ export const SCHEMAS = {
5518
5585
  label: { type: ['string', 'null'] },
5519
5586
  cid: { type: 'string' },
5520
5587
  notes: { type: ['string', 'null'] },
5588
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
5521
5589
  private: { type: 'boolean' },
5522
5590
  required: { type: 'boolean' },
5523
5591
  position: { type: 'integer', minimum: 0 },
@@ -5534,6 +5602,7 @@ export const SCHEMAS = {
5534
5602
  label: { type: ['string', 'null'] },
5535
5603
  cid: { type: 'string' },
5536
5604
  notes: { type: ['string', 'null'] },
5605
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
5537
5606
  private: { type: 'boolean' },
5538
5607
  required: { type: 'boolean' },
5539
5608
  position: { type: 'integer', minimum: 0 },
@@ -5622,6 +5691,7 @@ export const SCHEMAS = {
5622
5691
  label: { type: ['string', 'null'] },
5623
5692
  cid: { type: 'string' },
5624
5693
  notes: { type: ['string', 'null'] },
5694
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
5625
5695
  private: { type: 'boolean' },
5626
5696
  required: { type: 'boolean' },
5627
5697
  position: { type: 'integer', minimum: 0 },
@@ -5638,6 +5708,7 @@ export const SCHEMAS = {
5638
5708
  label: { type: ['string', 'null'] },
5639
5709
  cid: { type: 'string' },
5640
5710
  notes: { type: ['string', 'null'] },
5711
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
5641
5712
  private: { type: 'boolean' },
5642
5713
  required: { type: 'boolean' },
5643
5714
  position: { type: 'integer', minimum: 0 },
@@ -5700,6 +5771,7 @@ export const SCHEMAS = {
5700
5771
  label: { type: ['string', 'null'] },
5701
5772
  cid: { type: 'string' },
5702
5773
  notes: { type: ['string', 'null'] },
5774
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
5703
5775
  private: { type: 'boolean' },
5704
5776
  required: { type: 'boolean' },
5705
5777
  position: { type: 'integer', minimum: 0 },
@@ -5924,6 +5996,7 @@ export const SCHEMAS = {
5924
5996
  label: { type: ['string', 'null'] },
5925
5997
  cid: { type: 'string' },
5926
5998
  notes: { type: ['string', 'null'] },
5999
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
5927
6000
  private: { type: 'boolean' },
5928
6001
  required: { type: 'boolean' },
5929
6002
  position: { type: 'integer', minimum: 0 },
@@ -5955,6 +6028,7 @@ export const SCHEMAS = {
5955
6028
  label: { type: ['string', 'null'] },
5956
6029
  cid: { type: 'string' },
5957
6030
  notes: { type: ['string', 'null'] },
6031
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
5958
6032
  private: { type: 'boolean' },
5959
6033
  required: { type: 'boolean' },
5960
6034
  position: { type: 'integer', minimum: 0 },
@@ -5973,6 +6047,7 @@ export const SCHEMAS = {
5973
6047
  label: { type: ['string', 'null'] },
5974
6048
  cid: { type: 'string' },
5975
6049
  notes: { type: ['string', 'null'] },
6050
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
5976
6051
  private: { type: 'boolean' },
5977
6052
  required: { type: 'boolean' },
5978
6053
  position: { type: 'integer', minimum: 0 },
@@ -6198,6 +6273,7 @@ export const SCHEMAS = {
6198
6273
  label: { type: ['string', 'null'] },
6199
6274
  cid: { type: 'string' },
6200
6275
  notes: { type: ['string', 'null'] },
6276
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
6201
6277
  private: { type: 'boolean' },
6202
6278
  required: { type: 'boolean' },
6203
6279
  position: { type: 'integer', minimum: 0 },
@@ -6760,6 +6836,7 @@ export const SCHEMAS = {
6760
6836
  label: { type: ['string', 'null'] },
6761
6837
  cid: { type: 'string' },
6762
6838
  notes: { type: ['string', 'null'] },
6839
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
6763
6840
  private: { type: 'boolean' },
6764
6841
  required: { type: 'boolean' },
6765
6842
  position: { type: 'integer', minimum: 0 },
@@ -6795,6 +6872,7 @@ export const SCHEMAS = {
6795
6872
  label: { type: ['string', 'null'] },
6796
6873
  cid: { type: 'string' },
6797
6874
  notes: { type: ['string', 'null'] },
6875
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
6798
6876
  private: { type: 'boolean' },
6799
6877
  required: { type: 'boolean' },
6800
6878
  position: { type: 'integer', minimum: 0 },
@@ -6844,6 +6922,7 @@ export const SCHEMAS = {
6844
6922
  label: { type: ['string', 'null'] },
6845
6923
  cid: { type: 'string' },
6846
6924
  notes: { type: ['string', 'null'] },
6925
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
6847
6926
  private: { type: 'boolean' },
6848
6927
  required: { type: 'boolean' },
6849
6928
  position: { type: 'integer', minimum: 0 },
@@ -6973,6 +7052,7 @@ export const SCHEMAS = {
6973
7052
  label: { type: ['string', 'null'] },
6974
7053
  cid: { type: 'string' },
6975
7054
  notes: { type: ['string', 'null'] },
7055
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
6976
7056
  private: { type: 'boolean' },
6977
7057
  required: { type: 'boolean' },
6978
7058
  position: { type: 'integer', minimum: 0 },
@@ -6989,6 +7069,7 @@ export const SCHEMAS = {
6989
7069
  label: { type: ['string', 'null'] },
6990
7070
  cid: { type: 'string' },
6991
7071
  notes: { type: ['string', 'null'] },
7072
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
6992
7073
  private: { type: 'boolean' },
6993
7074
  required: { type: 'boolean' },
6994
7075
  position: { type: 'integer', minimum: 0 },
@@ -7043,6 +7124,7 @@ export const SCHEMAS = {
7043
7124
  label: { type: ['string', 'null'] },
7044
7125
  cid: { type: 'string' },
7045
7126
  notes: { type: ['string', 'null'] },
7127
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
7046
7128
  private: { type: 'boolean' },
7047
7129
  required: { type: 'boolean' },
7048
7130
  position: { type: 'integer', minimum: 0 },
@@ -7064,6 +7146,7 @@ export const SCHEMAS = {
7064
7146
  label: { type: ['string', 'null'] },
7065
7147
  cid: { type: 'string' },
7066
7148
  notes: { type: ['string', 'null'] },
7149
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
7067
7150
  private: { type: 'boolean' },
7068
7151
  required: { type: 'boolean' },
7069
7152
  position: { type: 'integer', minimum: 0 },
@@ -7200,6 +7283,7 @@ export const SCHEMAS = {
7200
7283
  label: { type: ['string', 'null'] },
7201
7284
  cid: { type: 'string' },
7202
7285
  notes: { type: ['string', 'null'] },
7286
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
7203
7287
  private: { type: 'boolean' },
7204
7288
  required: { type: 'boolean' },
7205
7289
  position: { type: 'integer', minimum: 0 },
@@ -7230,6 +7314,7 @@ export const SCHEMAS = {
7230
7314
  label: { type: ['string', 'null'] },
7231
7315
  cid: { type: 'string' },
7232
7316
  notes: { type: ['string', 'null'] },
7317
+ customized_validation_message: { type: ['string', 'null'], maxLength: 50 },
7233
7318
  private: { type: 'boolean' },
7234
7319
  required: { type: 'boolean' },
7235
7320
  position: { type: 'integer', minimum: 0 },