@panneau/protocol 5.0.0-alpha.15 → 5.0.0-alpha.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/dist/addresses.d.ts +23 -0
  2. package/dist/addresses.d.ts.map +1 -0
  3. package/dist/addresses.js +52 -0
  4. package/dist/addresses.js.map +1 -0
  5. package/dist/conformance/index.d.ts.map +1 -1
  6. package/dist/conformance/index.js +109 -0
  7. package/dist/conformance/index.js.map +1 -1
  8. package/dist/constants.d.ts +23 -2
  9. package/dist/constants.d.ts.map +1 -1
  10. package/dist/constants.js +51 -3
  11. package/dist/constants.js.map +1 -1
  12. package/dist/currencies.d.ts +22 -0
  13. package/dist/currencies.d.ts.map +1 -0
  14. package/dist/currencies.js +231 -0
  15. package/dist/currencies.js.map +1 -0
  16. package/dist/index.js +7 -4
  17. package/dist/links.d.ts +38 -0
  18. package/dist/links.d.ts.map +1 -0
  19. package/dist/links.js +65 -0
  20. package/dist/links.js.map +1 -0
  21. package/dist/lint.js +6 -2
  22. package/dist/lint.js.map +1 -1
  23. package/dist/mock/index.d.ts.map +1 -1
  24. package/dist/mock/index.js +11 -2
  25. package/dist/mock/index.js.map +1 -1
  26. package/dist/query.d.ts +4 -0
  27. package/dist/query.d.ts.map +1 -1
  28. package/dist/query.js +23 -7
  29. package/dist/query.js.map +1 -1
  30. package/dist/rules.d.ts +4 -1
  31. package/dist/rules.d.ts.map +1 -1
  32. package/dist/rules.js +165 -7
  33. package/dist/rules.js.map +1 -1
  34. package/dist/runtime/index.d.ts +3 -0
  35. package/dist/runtime/index.d.ts.map +1 -1
  36. package/dist/runtime/index.js +5 -2
  37. package/dist/schemas/action.d.ts +46 -1
  38. package/dist/schemas/action.d.ts.map +1 -1
  39. package/dist/schemas/api.d.ts +43 -3
  40. package/dist/schemas/api.d.ts.map +1 -1
  41. package/dist/schemas/api.js +35 -1
  42. package/dist/schemas/api.js.map +1 -1
  43. package/dist/schemas/definition.d.ts +93 -3
  44. package/dist/schemas/definition.d.ts.map +1 -1
  45. package/dist/schemas/field.d.ts +193 -2
  46. package/dist/schemas/field.d.ts.map +1 -1
  47. package/dist/schemas/field.js +91 -7
  48. package/dist/schemas/field.js.map +1 -1
  49. package/dist/schemas/index.d.ts +445 -14
  50. package/dist/schemas/index.d.ts.map +1 -1
  51. package/dist/schemas/index.js +14 -4
  52. package/dist/schemas/index.js.map +1 -1
  53. package/dist/schemas/list.d.ts +2 -2
  54. package/dist/schemas/resource.d.ts +93 -3
  55. package/dist/schemas/resource.d.ts.map +1 -1
  56. package/dist/validate.d.ts +2 -1
  57. package/dist/validate.d.ts.map +1 -1
  58. package/dist/validate.js +18 -4
  59. package/dist/validate.js.map +1 -1
  60. package/package.json +1 -1
  61. package/schema/boot.schema.json +164 -2
  62. package/schema/definition.schema.json +164 -2
  63. package/schema/openapi.json +611 -5
@@ -3318,8 +3318,7 @@
3318
3318
  "enum": [
3319
3319
  "email",
3320
3320
  "url",
3321
- "json",
3322
- "tel"
3321
+ "json"
3323
3322
  ]
3324
3323
  },
3325
3324
  "message": {
@@ -3340,6 +3339,103 @@
3340
3339
  ],
3341
3340
  "additionalProperties": {}
3342
3341
  },
3342
+ {
3343
+ "type": "object",
3344
+ "properties": {
3345
+ "rule": {
3346
+ "type": "string",
3347
+ "const": "tel"
3348
+ },
3349
+ "extension": {
3350
+ "description": "The number can have an extension, after `;ext=` as in a `tel:` URI (RFC 3966): `+15145550199;ext=123`, 1 to 10 digits. Without it, a value with an extension fails.",
3351
+ "type": "boolean"
3352
+ },
3353
+ "message": {
3354
+ "description": "Message shown when the rule fails, instead of the default one.",
3355
+ "type": "string"
3356
+ },
3357
+ "mode": {
3358
+ "description": "The rule only applies when the item is created (`create`) or updated (`update`): a password required to create a user, optional to edit one. Without it, the rule applies in both modes.",
3359
+ "type": "string",
3360
+ "enum": [
3361
+ "create",
3362
+ "update"
3363
+ ]
3364
+ }
3365
+ },
3366
+ "required": [
3367
+ "rule"
3368
+ ],
3369
+ "additionalProperties": {}
3370
+ },
3371
+ {
3372
+ "type": "object",
3373
+ "properties": {
3374
+ "rule": {
3375
+ "type": "string",
3376
+ "const": "daterange"
3377
+ },
3378
+ "open": {
3379
+ "type": "string",
3380
+ "enum": [
3381
+ "start",
3382
+ "end",
3383
+ "both"
3384
+ ],
3385
+ "description": "Which bounds of the range can be `null`: `start`, `end` or `both`."
3386
+ },
3387
+ "message": {
3388
+ "description": "Message shown when the rule fails, instead of the default one.",
3389
+ "type": "string"
3390
+ },
3391
+ "mode": {
3392
+ "description": "The rule only applies when the item is created (`create`) or updated (`update`): a password required to create a user, optional to edit one. Without it, the rule applies in both modes.",
3393
+ "type": "string",
3394
+ "enum": [
3395
+ "create",
3396
+ "update"
3397
+ ]
3398
+ }
3399
+ },
3400
+ "required": [
3401
+ "rule"
3402
+ ],
3403
+ "additionalProperties": {}
3404
+ },
3405
+ {
3406
+ "type": "object",
3407
+ "properties": {
3408
+ "rule": {
3409
+ "type": "string",
3410
+ "const": "money"
3411
+ },
3412
+ "currencies": {
3413
+ "description": "The currencies allowed. Without them, any ISO 4217 currency.",
3414
+ "type": "array",
3415
+ "items": {
3416
+ "type": "string",
3417
+ "pattern": "^[A-Z]{3}$",
3418
+ "description": "An ISO 4217 currency code, in capitals: `CAD`."
3419
+ }
3420
+ },
3421
+ "message": {
3422
+ "description": "Message shown when the rule fails, instead of the default one.",
3423
+ "type": "string"
3424
+ },
3425
+ "mode": {
3426
+ "description": "The rule only applies when the item is created (`create`) or updated (`update`): a password required to create a user, optional to edit one. Without it, the rule applies in both modes.",
3427
+ "type": "string",
3428
+ "enum": [
3429
+ "create",
3430
+ "update"
3431
+ ]
3432
+ }
3433
+ },
3434
+ "required": [
3435
+ "rule"
3436
+ ],
3437
+ "additionalProperties": {}
3438
+ },
3343
3439
  {
3344
3440
  "type": "object",
3345
3441
  "properties": {
@@ -3491,6 +3587,55 @@
3491
3587
  ],
3492
3588
  "additionalProperties": {}
3493
3589
  },
3590
+ {
3591
+ "type": "object",
3592
+ "properties": {
3593
+ "rule": {
3594
+ "type": "string",
3595
+ "const": "postalCode"
3596
+ },
3597
+ "value": {
3598
+ "description": "The country of the postal code. Without it, or without a country, any postal code passes. An `address` value has its own country.",
3599
+ "anyOf": [
3600
+ {
3601
+ "type": "string",
3602
+ "pattern": "^[A-Z]{2}$",
3603
+ "description": "An ISO 3166-1 alpha-2 code, in capitals: `CA`."
3604
+ },
3605
+ {
3606
+ "type": "object",
3607
+ "properties": {
3608
+ "field": {
3609
+ "type": "string",
3610
+ "minLength": 1
3611
+ }
3612
+ },
3613
+ "required": [
3614
+ "field"
3615
+ ],
3616
+ "additionalProperties": {},
3617
+ "description": "Another field of the form, which holds the country."
3618
+ }
3619
+ ]
3620
+ },
3621
+ "message": {
3622
+ "description": "Message shown when the rule fails, instead of the default one.",
3623
+ "type": "string"
3624
+ },
3625
+ "mode": {
3626
+ "description": "The rule only applies when the item is created (`create`) or updated (`update`): a password required to create a user, optional to edit one. Without it, the rule applies in both modes.",
3627
+ "type": "string",
3628
+ "enum": [
3629
+ "create",
3630
+ "update"
3631
+ ]
3632
+ }
3633
+ },
3634
+ "required": [
3635
+ "rule"
3636
+ ],
3637
+ "additionalProperties": {}
3638
+ },
3494
3639
  {
3495
3640
  "type": "object",
3496
3641
  "properties": {
@@ -3536,6 +3681,41 @@
3536
3681
  ],
3537
3682
  "additionalProperties": {}
3538
3683
  },
3684
+ {
3685
+ "type": "object",
3686
+ "properties": {
3687
+ "rule": {
3688
+ "type": "string",
3689
+ "const": "providers"
3690
+ },
3691
+ "value": {
3692
+ "minItems": 1,
3693
+ "type": "array",
3694
+ "items": {
3695
+ "type": "string",
3696
+ "minLength": 1
3697
+ }
3698
+ },
3699
+ "message": {
3700
+ "description": "Message shown when the rule fails, instead of the default one.",
3701
+ "type": "string"
3702
+ },
3703
+ "mode": {
3704
+ "description": "The rule only applies when the item is created (`create`) or updated (`update`): a password required to create a user, optional to edit one. Without it, the rule applies in both modes.",
3705
+ "type": "string",
3706
+ "enum": [
3707
+ "create",
3708
+ "update"
3709
+ ]
3710
+ }
3711
+ },
3712
+ "required": [
3713
+ "rule",
3714
+ "value"
3715
+ ],
3716
+ "additionalProperties": {},
3717
+ "description": "The providers an `embed` value may come from: the `provider_name` of their oEmbed (`YouTube`), compared without case (decision 0058)."
3718
+ },
3539
3719
  {
3540
3720
  "type": "object",
3541
3721
  "properties": {
@@ -3562,7 +3742,7 @@
3562
3742
  "description": "A rule added in a later version of the protocol. Clients that don't know it ignore it; the server still enforces it."
3563
3743
  }
3564
3744
  ],
3565
- "description": "A portable validation rule. `min` and `max` apply to numbers, and to the length of text and arrays. `accept` lists MIME types (`image/*`). `maxSize` is in bytes. `crop` checks the transform of each image of an `image` or `media` value (decision 0031)."
3745
+ "description": "A portable validation rule. `min` and `max` apply to numbers, to the amount of `money` values (in minor units), and to the length of text and arrays. `daterange` and `money` are implied by their types, with the `open` bounds and the `currencies` of the field (decision 0053). `accept` lists MIME types (`image/*`). `maxSize` is in bytes. `tel` checks an E.164 number, with an extension when `extension` is `true`. `crop` checks the transform of each image of an `image` or `media` value (decision 0031). `postalCode` checks a postal code against the format of its country, for the countries whose format Panneau knows: Canada and the United States (decision 0054). `providers` lists the providers of an `embed` value (decision 0058)."
3566
3746
  },
3567
3747
  "BlockType": {
3568
3748
  "type": "object",
@@ -3648,11 +3828,11 @@
3648
3828
  }
3649
3829
  },
3650
3830
  "multiple": {
3651
- "description": "`select`, `relation`, `media`, `image`, `file`: the value is an array.",
3831
+ "description": "`select`, `relation`, `media`, `image`, `file`, `country`: the value is an array.",
3652
3832
  "type": "boolean"
3653
3833
  },
3654
3834
  "resource": {
3655
- "description": "`relation`: id of the related resource. `media`, `image`: id of a resource of kind `media`, or a list of them; without it, every library of the definition (decision 0027).",
3835
+ "description": "`relation`: id of the related resource. `media`, `image`: id of a resource of kind `media`, or a list of them; without it, every library of the definition (decision 0027). `link`: the resources of its `page` links (decision 0055).",
3656
3836
  "anyOf": [
3657
3837
  {
3658
3838
  "type": "string",
@@ -3825,6 +4005,229 @@
3825
4005
  "additionalProperties": {},
3826
4006
  "description": "The `settings` of a `richtext` field. Its value is HTML. The toolbar only limits what users add: content that the field stores keeps its elements and attributes."
3827
4007
  },
4008
+ "LinkTypeSetting": {
4009
+ "type": "object",
4010
+ "properties": {
4011
+ "id": {
4012
+ "type": "string",
4013
+ "minLength": 1,
4014
+ "description": "The id of the type, in the `type` of values: `anchor`."
4015
+ },
4016
+ "label": {
4017
+ "type": "string",
4018
+ "description": "The name of the type, in the field."
4019
+ },
4020
+ "pattern": {
4021
+ "description": "The pattern that the `url` of its links matches: `^#[\\w-]+$`.",
4022
+ "type": "string"
4023
+ },
4024
+ "placeholder": {
4025
+ "type": "string"
4026
+ }
4027
+ },
4028
+ "required": [
4029
+ "id",
4030
+ "label"
4031
+ ],
4032
+ "additionalProperties": {},
4033
+ "description": "A type of link that a site adds: its `url` is the text typed, checked against its `pattern`."
4034
+ },
4035
+ "LinkSettings": {
4036
+ "type": "object",
4037
+ "properties": {
4038
+ "types": {
4039
+ "description": "The types the field offers, in order: `url`, `page`, `email`, `tel`, `file`, and the types of the site. Defaults to `url`, `email` and `tel`, after `page` when the field has a `resource`.",
4040
+ "minItems": 1,
4041
+ "type": "array",
4042
+ "items": {
4043
+ "anyOf": [
4044
+ {
4045
+ "type": "string",
4046
+ "enum": [
4047
+ "url",
4048
+ "page",
4049
+ "email",
4050
+ "tel",
4051
+ "file"
4052
+ ]
4053
+ },
4054
+ {
4055
+ "$ref": "#/components/schemas/LinkTypeSetting"
4056
+ }
4057
+ ]
4058
+ }
4059
+ },
4060
+ "newTab": {
4061
+ "description": "Which links open in a new tab: as the user chooses (the default), by their type (`url` and `file` links), or none.",
4062
+ "type": "string",
4063
+ "enum": [
4064
+ "choose",
4065
+ "external",
4066
+ "never"
4067
+ ]
4068
+ },
4069
+ "label": {
4070
+ "description": "Whether links have a label: optional (the default), required, or none.",
4071
+ "type": "string",
4072
+ "enum": [
4073
+ "optional",
4074
+ "required",
4075
+ "none"
4076
+ ]
4077
+ },
4078
+ "libraries": {
4079
+ "description": "The media libraries of `file` links. Defaults to every library of the definition.",
4080
+ "type": "array",
4081
+ "items": {
4082
+ "type": "string",
4083
+ "minLength": 1
4084
+ }
4085
+ }
4086
+ },
4087
+ "additionalProperties": {},
4088
+ "description": "The `settings` of a `link` field. Its value is `{ \"type\", \"url\", \"page\", \"file\", \"label\", \"newTab\" }` (`LinkValue`)."
4089
+ },
4090
+ "AddressSettings": {
4091
+ "type": "object",
4092
+ "properties": {
4093
+ "country": {
4094
+ "description": "The country of a new address. The field sets it once a part is typed.",
4095
+ "type": "string",
4096
+ "pattern": "^[A-Z]{2}$"
4097
+ },
4098
+ "countries": {
4099
+ "description": "The countries the field allows. With one, the field doesn't show the country, and sets it.",
4100
+ "type": "array",
4101
+ "items": {
4102
+ "type": "string",
4103
+ "pattern": "^[A-Z]{2}$",
4104
+ "description": "An ISO 3166-1 alpha-2 code, in capitals: `CA`."
4105
+ }
4106
+ },
4107
+ "preferred": {
4108
+ "description": "The countries shown first.",
4109
+ "type": "array",
4110
+ "items": {
4111
+ "type": "string",
4112
+ "pattern": "^[A-Z]{2}$",
4113
+ "description": "An ISO 3166-1 alpha-2 code, in capitals: `CA`."
4114
+ }
4115
+ },
4116
+ "required": {
4117
+ "description": "The parts a filled address must have. Defaults to `street`, `city` and `country`.",
4118
+ "type": "array",
4119
+ "items": {
4120
+ "type": "string",
4121
+ "enum": [
4122
+ "country",
4123
+ "street",
4124
+ "unit",
4125
+ "city",
4126
+ "region",
4127
+ "postalCode"
4128
+ ]
4129
+ }
4130
+ },
4131
+ "point": {
4132
+ "description": "Adds a map, and the point of the address to the value.",
4133
+ "type": "boolean"
4134
+ }
4135
+ },
4136
+ "additionalProperties": {},
4137
+ "description": "The `settings` of an `address` field. Its value is `{ \"street\", \"unit\", \"city\", \"region\", \"postalCode\", \"country\", \"point\" }` (`AddressValue`)."
4138
+ },
4139
+ "DateRangeSettings": {
4140
+ "type": "object",
4141
+ "properties": {
4142
+ "time": {
4143
+ "description": "The bounds are date-times, with an offset (`2026-11-04T23:30:00Z`). Without it, they are days (`2026-11-04`), both inclusive.",
4144
+ "type": "boolean"
4145
+ },
4146
+ "allDay": {
4147
+ "description": "With `time`: an \"All day\" switch. An all-day value has days as bounds, and `\"allDay\": true`.",
4148
+ "type": "boolean"
4149
+ },
4150
+ "open": {
4151
+ "type": "string",
4152
+ "enum": [
4153
+ "start",
4154
+ "end",
4155
+ "both"
4156
+ ],
4157
+ "description": "Which bounds of the range can be `null`: `start`, `end` or `both`."
4158
+ },
4159
+ "timeZone": {
4160
+ "description": "The IANA time zone the date-times are shown and typed in (`America/Toronto`), when the value has none. Without it, the browser's.",
4161
+ "type": "string",
4162
+ "minLength": 1
4163
+ },
4164
+ "chooseTimeZone": {
4165
+ "description": "With `time`: the field has a menu of time zones, and keeps the choice in the value (`timeZone`).",
4166
+ "type": "boolean"
4167
+ }
4168
+ },
4169
+ "additionalProperties": {},
4170
+ "description": "The `settings` of a `daterange` field: days or date-times, an \"All day\" switch, open bounds and the time zone of its date-times."
4171
+ },
4172
+ "MoneySettings": {
4173
+ "type": "object",
4174
+ "properties": {
4175
+ "currency": {
4176
+ "description": "The currency of every amount: the field shows it and cannot change it.",
4177
+ "type": "string",
4178
+ "pattern": "^[A-Z]{3}$"
4179
+ },
4180
+ "currencies": {
4181
+ "description": "The currencies the user picks from, the first one for a new amount. Without `currency` or `currencies`, every currency.",
4182
+ "minItems": 1,
4183
+ "type": "array",
4184
+ "items": {
4185
+ "type": "string",
4186
+ "pattern": "^[A-Z]{3}$",
4187
+ "description": "An ISO 4217 currency code, in capitals: `CAD`."
4188
+ }
4189
+ }
4190
+ },
4191
+ "additionalProperties": {},
4192
+ "description": "The `settings` of a `money` field: its currency, or the currencies to pick from. `min` and `max` rules apply to the amount, in minor units."
4193
+ },
4194
+ "DurationSettings": {
4195
+ "type": "object",
4196
+ "properties": {
4197
+ "unit": {
4198
+ "description": "The unit of the value, a whole number: `seconds` (the default), `minutes`, `hours` or `days`. The `min` and `max` rules are in it too.",
4199
+ "type": "string",
4200
+ "enum": [
4201
+ "seconds",
4202
+ "minutes",
4203
+ "hours",
4204
+ "days"
4205
+ ]
4206
+ },
4207
+ "precision": {
4208
+ "description": "The smallest part the input shows. Defaults to `unit`; a precision finer than `unit` is raised to it.",
4209
+ "type": "string",
4210
+ "enum": [
4211
+ "seconds",
4212
+ "minutes",
4213
+ "hours",
4214
+ "days"
4215
+ ]
4216
+ },
4217
+ "largestUnit": {
4218
+ "description": "The largest part the input shows, which has no upper bound: `days` shows days, and hours from 0 to 23. Defaults to the larger of `hours` and `precision`; a largest unit smaller than `precision` is raised to it.",
4219
+ "type": "string",
4220
+ "enum": [
4221
+ "seconds",
4222
+ "minutes",
4223
+ "hours",
4224
+ "days"
4225
+ ]
4226
+ }
4227
+ },
4228
+ "additionalProperties": {},
4229
+ "description": "The `settings` of a `duration` field. Its value is a whole number of `unit`, zero or more. A day is 24 hours."
4230
+ },
3828
4231
  "LayoutNode": {
3829
4232
  "type": "object",
3830
4233
  "properties": {
@@ -6706,6 +7109,209 @@
6706
7109
  ],
6707
7110
  "additionalProperties": {},
6708
7111
  "description": "The value of a `location` field: a point, and its address."
7112
+ },
7113
+ "AddressValue": {
7114
+ "type": "object",
7115
+ "properties": {
7116
+ "street": {
7117
+ "description": "The number and the street.",
7118
+ "type": "string"
7119
+ },
7120
+ "unit": {
7121
+ "description": "An apartment, a suite or a floor.",
7122
+ "type": "string"
7123
+ },
7124
+ "city": {
7125
+ "type": "string"
7126
+ },
7127
+ "region": {
7128
+ "description": "A value of the `region` type for the country: the code of the region without its country (`QC`) for the countries Panneau knows the regions of, the text as typed for the others.",
7129
+ "type": "string"
7130
+ },
7131
+ "postalCode": {
7132
+ "description": "Normalized for its country: `H2X 1Y4`, `12345-6789`.",
7133
+ "type": "string"
7134
+ },
7135
+ "country": {
7136
+ "description": "An ISO 3166-1 alpha-2 code: `CA`.",
7137
+ "type": "string",
7138
+ "pattern": "^[A-Z]{2}$"
7139
+ },
7140
+ "point": {
7141
+ "description": "The place of the address on a map, with `settings.point`.",
7142
+ "type": "object",
7143
+ "properties": {
7144
+ "lat": {
7145
+ "type": "number",
7146
+ "minimum": -90,
7147
+ "maximum": 90
7148
+ },
7149
+ "lng": {
7150
+ "type": "number",
7151
+ "minimum": -180,
7152
+ "maximum": 180
7153
+ }
7154
+ },
7155
+ "required": [
7156
+ "lat",
7157
+ "lng"
7158
+ ],
7159
+ "additionalProperties": {}
7160
+ }
7161
+ },
7162
+ "additionalProperties": {},
7163
+ "description": "The value of an `address` field (decision 0054): the parts of a postal address, the empty ones left out."
7164
+ },
7165
+ "LinkValue": {
7166
+ "type": "object",
7167
+ "properties": {
7168
+ "type": {
7169
+ "type": "string",
7170
+ "minLength": 1,
7171
+ "description": "The type of the link: `url`, `page`, `email`, `tel`, `file`, or a type of the site."
7172
+ },
7173
+ "url": {
7174
+ "description": "The `href` of the link: `https://…`, `mailto:…`, `tel:+…`, or the text of a type of the site. For `page` and `file` links, the URL the backend resolved, in items only.",
7175
+ "type": "string"
7176
+ },
7177
+ "page": {
7178
+ "description": "`page` links: the item, `{ \"id\", \"resource\", \"label\" }` in items, its id or `{ \"id\", \"resource\" }` in requests.",
7179
+ "anyOf": [
7180
+ {
7181
+ "type": "string"
7182
+ },
7183
+ {
7184
+ "type": "object",
7185
+ "properties": {
7186
+ "id": {
7187
+ "type": "string"
7188
+ },
7189
+ "resource": {
7190
+ "type": "string"
7191
+ },
7192
+ "label": {
7193
+ "type": "string"
7194
+ }
7195
+ },
7196
+ "required": [
7197
+ "id"
7198
+ ],
7199
+ "additionalProperties": {}
7200
+ }
7201
+ ]
7202
+ },
7203
+ "file": {
7204
+ "description": "`file` links: the media, as a `media` value.",
7205
+ "anyOf": [
7206
+ {
7207
+ "type": "string"
7208
+ },
7209
+ {
7210
+ "type": "object",
7211
+ "properties": {
7212
+ "id": {
7213
+ "type": "string"
7214
+ }
7215
+ },
7216
+ "required": [
7217
+ "id"
7218
+ ],
7219
+ "additionalProperties": {}
7220
+ }
7221
+ ]
7222
+ },
7223
+ "label": {
7224
+ "description": "The words of the link, per locale; a string in a `localized` link field.",
7225
+ "anyOf": [
7226
+ {
7227
+ "anyOf": [
7228
+ {
7229
+ "type": "string"
7230
+ },
7231
+ {
7232
+ "type": "object",
7233
+ "propertyNames": {
7234
+ "type": "string"
7235
+ },
7236
+ "additionalProperties": {
7237
+ "type": [
7238
+ "string",
7239
+ "null"
7240
+ ]
7241
+ }
7242
+ }
7243
+ ]
7244
+ },
7245
+ {
7246
+ "type": "null"
7247
+ }
7248
+ ]
7249
+ },
7250
+ "newTab": {
7251
+ "description": "The link opens in a new tab.",
7252
+ "type": "boolean"
7253
+ }
7254
+ },
7255
+ "required": [
7256
+ "type"
7257
+ ],
7258
+ "additionalProperties": {},
7259
+ "description": "The value of a `link` field (decision 0055)."
7260
+ },
7261
+ "DateRangeValue": {
7262
+ "type": "object",
7263
+ "properties": {
7264
+ "start": {
7265
+ "description": "The first day (`2026-11-04`) or the start (`2026-11-04T23:30:00Z`), or `null` when the range is open at its start.",
7266
+ "type": [
7267
+ "string",
7268
+ "null"
7269
+ ]
7270
+ },
7271
+ "end": {
7272
+ "description": "The last day, included, or the end, or `null` when the range is open at its end. On or after the start.",
7273
+ "type": [
7274
+ "string",
7275
+ "null"
7276
+ ]
7277
+ },
7278
+ "allDay": {
7279
+ "description": "The range takes whole days: its bounds are days.",
7280
+ "type": "boolean"
7281
+ },
7282
+ "timeZone": {
7283
+ "description": "The IANA time zone the date-times are shown and typed in (`America/Toronto`), when the field lets the user choose it.",
7284
+ "type": "string"
7285
+ }
7286
+ },
7287
+ "required": [
7288
+ "start",
7289
+ "end"
7290
+ ],
7291
+ "additionalProperties": {},
7292
+ "description": "The value of a `daterange` field: a start and an end, days or date-times (decision 0053)."
7293
+ },
7294
+ "MoneyValue": {
7295
+ "type": "object",
7296
+ "properties": {
7297
+ "amount": {
7298
+ "type": "integer",
7299
+ "minimum": -9007199254740991,
7300
+ "maximum": 9007199254740991,
7301
+ "description": "The amount in the minor unit of the currency, its ISO 4217 exponent: `1250` is 12.50 CAD, `1250` is 1,250 JPY."
7302
+ },
7303
+ "currency": {
7304
+ "type": "string",
7305
+ "pattern": "^[A-Z]{3}$",
7306
+ "description": "An ISO 4217 currency code, in capitals: `CAD`."
7307
+ }
7308
+ },
7309
+ "required": [
7310
+ "amount",
7311
+ "currency"
7312
+ ],
7313
+ "additionalProperties": {},
7314
+ "description": "The value of a `money` field: an amount and its currency (decision 0053)."
6709
7315
  }
6710
7316
  },
6711
7317
  "parameters": {