Skip to content

Commit 62c5e3b

Browse files
Copilothotlong
andcommitted
Add z.input<> type exports to schema files with .default() or .transform()
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent ae19749 commit 62c5e3b

35 files changed

Lines changed: 788 additions & 0 deletions

packages/spec/json-schema/ai/FeedbackLoop.json

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,6 +1017,18 @@
10171017
"type": "string",
10181018
"description": "Help text displayed below the field in forms"
10191019
},
1020+
"trackFeedHistory": {
1021+
"type": "boolean",
1022+
"description": "Track field changes in Chatter/activity feed (Salesforce pattern)"
1023+
},
1024+
"caseSensitive": {
1025+
"type": "boolean",
1026+
"description": "Whether text comparisons are case-sensitive"
1027+
},
1028+
"autonumberFormat": {
1029+
"type": "string",
1030+
"description": "Auto-number display format pattern (e.g., \"CASE-{0000}\")"
1031+
},
10201032
"encryption": {
10211033
"type": "boolean",
10221034
"default": false,
@@ -2017,6 +2029,18 @@
20172029
"type": "string",
20182030
"description": "Help text displayed below the field in forms"
20192031
},
2032+
"trackFeedHistory": {
2033+
"type": "boolean",
2034+
"description": "Track field changes in Chatter/activity feed (Salesforce pattern)"
2035+
},
2036+
"caseSensitive": {
2037+
"type": "boolean",
2038+
"description": "Whether text comparisons are case-sensitive"
2039+
},
2040+
"autonumberFormat": {
2041+
"type": "string",
2042+
"description": "Auto-number display format pattern (e.g., \"CASE-{0000}\")"
2043+
},
20202044
"encryption": {
20212045
"type": "boolean",
20222046
"default": false,
@@ -4818,6 +4842,11 @@
48184842
"full"
48194843
],
48204844
"description": "Default sharing model"
4845+
},
4846+
"keyPrefix": {
4847+
"type": "string",
4848+
"maxLength": 5,
4849+
"description": "Short prefix for record IDs (e.g., \"001\" for Account)"
48214850
}
48224851
},
48234852
"required": [
@@ -5773,6 +5802,18 @@
57735802
"type": "string",
57745803
"description": "Help text displayed below the field in forms"
57755804
},
5805+
"trackFeedHistory": {
5806+
"type": "boolean",
5807+
"description": "Track field changes in Chatter/activity feed (Salesforce pattern)"
5808+
},
5809+
"caseSensitive": {
5810+
"type": "boolean",
5811+
"description": "Whether text comparisons are case-sensitive"
5812+
},
5813+
"autonumberFormat": {
5814+
"type": "string",
5815+
"description": "Auto-number display format pattern (e.g., \"CASE-{0000}\")"
5816+
},
57765817
"encryption": {
57775818
"type": "boolean",
57785819
"default": false,
@@ -6773,6 +6814,18 @@
67736814
"type": "string",
67746815
"description": "Help text displayed below the field in forms"
67756816
},
6817+
"trackFeedHistory": {
6818+
"type": "boolean",
6819+
"description": "Track field changes in Chatter/activity feed (Salesforce pattern)"
6820+
},
6821+
"caseSensitive": {
6822+
"type": "boolean",
6823+
"description": "Whether text comparisons are case-sensitive"
6824+
},
6825+
"autonumberFormat": {
6826+
"type": "string",
6827+
"description": "Auto-number display format pattern (e.g., \"CASE-{0000}\")"
6828+
},
67766829
"encryption": {
67776830
"type": "boolean",
67786831
"default": false,
@@ -9574,6 +9627,11 @@
95749627
"full"
95759628
],
95769629
"description": "Default sharing model"
9630+
},
9631+
"keyPrefix": {
9632+
"type": "string",
9633+
"maxLength": 5,
9634+
"description": "Short prefix for record IDs (e.g., \"001\" for Account)"
95779635
}
95789636
},
95799637
"required": [

packages/spec/json-schema/ai/Resolution.json

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -940,6 +940,18 @@
940940
"type": "string",
941941
"description": "Help text displayed below the field in forms"
942942
},
943+
"trackFeedHistory": {
944+
"type": "boolean",
945+
"description": "Track field changes in Chatter/activity feed (Salesforce pattern)"
946+
},
947+
"caseSensitive": {
948+
"type": "boolean",
949+
"description": "Whether text comparisons are case-sensitive"
950+
},
951+
"autonumberFormat": {
952+
"type": "string",
953+
"description": "Auto-number display format pattern (e.g., \"CASE-{0000}\")"
954+
},
943955
"encryption": {
944956
"type": "boolean",
945957
"default": false,
@@ -1940,6 +1952,18 @@
19401952
"type": "string",
19411953
"description": "Help text displayed below the field in forms"
19421954
},
1955+
"trackFeedHistory": {
1956+
"type": "boolean",
1957+
"description": "Track field changes in Chatter/activity feed (Salesforce pattern)"
1958+
},
1959+
"caseSensitive": {
1960+
"type": "boolean",
1961+
"description": "Whether text comparisons are case-sensitive"
1962+
},
1963+
"autonumberFormat": {
1964+
"type": "string",
1965+
"description": "Auto-number display format pattern (e.g., \"CASE-{0000}\")"
1966+
},
19431967
"encryption": {
19441968
"type": "boolean",
19451969
"default": false,
@@ -4741,6 +4765,11 @@
47414765
"full"
47424766
],
47434767
"description": "Default sharing model"
4768+
},
4769+
"keyPrefix": {
4770+
"type": "string",
4771+
"maxLength": 5,
4772+
"description": "Short prefix for record IDs (e.g., \"001\" for Account)"
47444773
}
47454774
},
47464775
"required": [
@@ -5696,6 +5725,18 @@
56965725
"type": "string",
56975726
"description": "Help text displayed below the field in forms"
56985727
},
5728+
"trackFeedHistory": {
5729+
"type": "boolean",
5730+
"description": "Track field changes in Chatter/activity feed (Salesforce pattern)"
5731+
},
5732+
"caseSensitive": {
5733+
"type": "boolean",
5734+
"description": "Whether text comparisons are case-sensitive"
5735+
},
5736+
"autonumberFormat": {
5737+
"type": "string",
5738+
"description": "Auto-number display format pattern (e.g., \"CASE-{0000}\")"
5739+
},
56995740
"encryption": {
57005741
"type": "boolean",
57015742
"default": false,
@@ -6696,6 +6737,18 @@
66966737
"type": "string",
66976738
"description": "Help text displayed below the field in forms"
66986739
},
6740+
"trackFeedHistory": {
6741+
"type": "boolean",
6742+
"description": "Track field changes in Chatter/activity feed (Salesforce pattern)"
6743+
},
6744+
"caseSensitive": {
6745+
"type": "boolean",
6746+
"description": "Whether text comparisons are case-sensitive"
6747+
},
6748+
"autonumberFormat": {
6749+
"type": "string",
6750+
"description": "Auto-number display format pattern (e.g., \"CASE-{0000}\")"
6751+
},
66996752
"encryption": {
67006753
"type": "boolean",
67016754
"default": false,
@@ -9497,6 +9550,11 @@
94979550
"full"
94989551
],
94999552
"description": "Default sharing model"
9553+
},
9554+
"keyPrefix": {
9555+
"type": "string",
9556+
"maxLength": 5,
9557+
"description": "Short prefix for record IDs (e.g., \"001\" for Account)"
95009558
}
95019559
},
95029560
"required": [

packages/spec/json-schema/api/GetUiViewResponse.json

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,66 @@
452452
],
453453
"additionalProperties": false
454454
},
455+
"rowActions": {
456+
"type": "array",
457+
"items": {
458+
"type": "string"
459+
},
460+
"description": "Actions available for individual row items"
461+
},
462+
"bulkActions": {
463+
"type": "array",
464+
"items": {
465+
"type": "string"
466+
},
467+
"description": "Actions available when multiple rows are selected"
468+
},
469+
"virtualScroll": {
470+
"type": "boolean",
471+
"description": "Enable virtual scrolling for large datasets"
472+
},
473+
"conditionalFormatting": {
474+
"type": "array",
475+
"items": {
476+
"type": "object",
477+
"properties": {
478+
"condition": {
479+
"type": "string",
480+
"description": "Condition expression to evaluate"
481+
},
482+
"style": {
483+
"type": "object",
484+
"additionalProperties": {
485+
"type": "string"
486+
},
487+
"description": "CSS styles to apply when condition is true"
488+
}
489+
},
490+
"required": [
491+
"condition",
492+
"style"
493+
],
494+
"additionalProperties": false
495+
},
496+
"description": "Conditional formatting rules for list rows"
497+
},
498+
"inlineEdit": {
499+
"type": "boolean",
500+
"description": "Allow inline editing of records directly in the list view"
501+
},
502+
"exportOptions": {
503+
"type": "array",
504+
"items": {
505+
"type": "string",
506+
"enum": [
507+
"csv",
508+
"xlsx",
509+
"pdf",
510+
"json"
511+
]
512+
},
513+
"description": "Available export format options"
514+
},
455515
"emptyState": {
456516
"type": "object",
457517
"properties": {
@@ -1275,6 +1335,66 @@
12751335
],
12761336
"additionalProperties": false
12771337
},
1338+
"rowActions": {
1339+
"type": "array",
1340+
"items": {
1341+
"type": "string"
1342+
},
1343+
"description": "Actions available for individual row items"
1344+
},
1345+
"bulkActions": {
1346+
"type": "array",
1347+
"items": {
1348+
"type": "string"
1349+
},
1350+
"description": "Actions available when multiple rows are selected"
1351+
},
1352+
"virtualScroll": {
1353+
"type": "boolean",
1354+
"description": "Enable virtual scrolling for large datasets"
1355+
},
1356+
"conditionalFormatting": {
1357+
"type": "array",
1358+
"items": {
1359+
"type": "object",
1360+
"properties": {
1361+
"condition": {
1362+
"type": "string",
1363+
"description": "Condition expression to evaluate"
1364+
},
1365+
"style": {
1366+
"type": "object",
1367+
"additionalProperties": {
1368+
"type": "string"
1369+
},
1370+
"description": "CSS styles to apply when condition is true"
1371+
}
1372+
},
1373+
"required": [
1374+
"condition",
1375+
"style"
1376+
],
1377+
"additionalProperties": false
1378+
},
1379+
"description": "Conditional formatting rules for list rows"
1380+
},
1381+
"inlineEdit": {
1382+
"type": "boolean",
1383+
"description": "Allow inline editing of records directly in the list view"
1384+
},
1385+
"exportOptions": {
1386+
"type": "array",
1387+
"items": {
1388+
"type": "string",
1389+
"enum": [
1390+
"csv",
1391+
"xlsx",
1392+
"pdf",
1393+
"json"
1394+
]
1395+
},
1396+
"description": "Available export format options"
1397+
},
12781398
"emptyState": {
12791399
"type": "object",
12801400
"properties": {

packages/spec/json-schema/api/ObjectDefinitionResponse.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -971,6 +971,18 @@
971971
"type": "string",
972972
"description": "Help text displayed below the field in forms"
973973
},
974+
"trackFeedHistory": {
975+
"type": "boolean",
976+
"description": "Track field changes in Chatter/activity feed (Salesforce pattern)"
977+
},
978+
"caseSensitive": {
979+
"type": "boolean",
980+
"description": "Whether text comparisons are case-sensitive"
981+
},
982+
"autonumberFormat": {
983+
"type": "string",
984+
"description": "Auto-number display format pattern (e.g., \"CASE-{0000}\")"
985+
},
974986
"encryption": {
975987
"type": "boolean",
976988
"default": false,
@@ -3772,6 +3784,11 @@
37723784
"full"
37733785
],
37743786
"description": "Default sharing model"
3787+
},
3788+
"keyPrefix": {
3789+
"type": "string",
3790+
"maxLength": 5,
3791+
"description": "Short prefix for record IDs (e.g., \"001\" for Account)"
37753792
}
37763793
},
37773794
"required": [

0 commit comments

Comments
 (0)