@fleetless/contracts 8.2.0 → 9.0.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.
package/CHANGELOG.md CHANGED
@@ -9,6 +9,35 @@ version.
9
9
 
10
10
  ## [Unreleased]
11
11
 
12
+ ## [9.0.0] — 2026-11-01
13
+
14
+ ### Added
15
+
16
+ - Owner-only `GET /api/org/legal/acceptances` and the additive
17
+ `legalAcceptanceListQuery`, `legalAcceptanceVersionRow`, and
18
+ `legalAcceptanceListResponse` schemas. Pages expose stored Terms and
19
+ applicable DPA version references with an opaque cursor; Cloud enforces
20
+ organization scope, Owner access, and cursor decoding.
21
+
22
+ ### Changed
23
+
24
+ - **Breaking:** `waitlistRequest` requires `consent_text_version` for the F.1
25
+ wording shown by the form. `putAppAuthUrlsRequest` requires explicit
26
+ `operator_info_url` and `privacy_policy_url` keys; `null` clears a link.
27
+ `appAuthConfig` returns both nullable fields for legacy apps.
28
+ - The four default customer-app mails include the D.2 app-operator footer
29
+ when both legal links are set. A missing link omits the whole footer for
30
+ legacy security mail; the cloud owns the temporary reset and sign-in-code
31
+ exception and gates new access flows.
32
+
33
+ ### Added
34
+
35
+ - Separate versioned Terms and DPA reference schemas and initial `1.0`
36
+ identifiers, dated `2026-11-01`, with permanent version URLs. A DPA reference
37
+ is `null` only in an acceptance context where it does not apply.
38
+ - `WAITLIST_F1_TEXT_VERSION` (`F.1:1.0`) and the `app.operator_info_url` and
39
+ `app.privacy_policy_url` mail-template variables.
40
+
12
41
  ## [8.2.0] — 2026-10-30
13
42
 
14
43
  ### Added
@@ -647,6 +647,74 @@
647
647
  }
648
648
  }
649
649
  },
650
+ "/api/org/legal/acceptances": {
651
+ "get": {
652
+ "operationId": "get_api_org_legal_acceptances",
653
+ "summary": "Lists the calling organization's accepted legal document versions, newest first.",
654
+ "tags": [
655
+ "org"
656
+ ],
657
+ "security": [
658
+ {
659
+ "developerSession": []
660
+ }
661
+ ],
662
+ "parameters": [
663
+ {
664
+ "name": "limit",
665
+ "in": "query",
666
+ "required": false,
667
+ "schema": {
668
+ "anyOf": [
669
+ {
670
+ "type": "string",
671
+ "pattern": "^(?:0{0,2}[1-9]|0?[1-9][0-9]|100)$"
672
+ },
673
+ {
674
+ "type": "integer",
675
+ "minimum": 1,
676
+ "maximum": 100
677
+ }
678
+ ]
679
+ }
680
+ },
681
+ {
682
+ "name": "cursor",
683
+ "in": "query",
684
+ "required": false,
685
+ "schema": {
686
+ "type": "string",
687
+ "minLength": 1,
688
+ "maxLength": 512,
689
+ "pattern": "^[A-Za-z0-9_-]+$"
690
+ }
691
+ }
692
+ ],
693
+ "responses": {
694
+ "200": {
695
+ "description": "Success.",
696
+ "content": {
697
+ "application/json": {
698
+ "schema": {
699
+ "$ref": "#/components/schemas/legal-acceptance-list-response"
700
+ }
701
+ }
702
+ }
703
+ },
704
+ "default": {
705
+ "description": "An error envelope. Codes this route is known to answer: `unauthorized`, `token_expired`, `token_revoked`, `tier_required`, `support_forbidden`, `validation_error`.",
706
+ "content": {
707
+ "application/json": {
708
+ "schema": {
709
+ "$ref": "#/components/schemas/api-error"
710
+ }
711
+ }
712
+ }
713
+ }
714
+ },
715
+ "description": "A real Owner reads only the authenticated organization; Developer and support sessions cannot read it. Rows carry stored Terms and applicable DPA references, never the current versions substituted for history. The default page limit is 50, maximum 100. The opaque cursor is unpadded base64url of UTF-8 JSON `[accepted_at,id]`, with a six-digit UTC timestamp and lowercase UUID; Cloud rejects noncanonical tokens. Follow `next_cursor` until null. Equal timestamps sort by id descending; a new acceptance cannot displace older rows."
716
+ }
717
+ },
650
718
  "/api/org/controller-register": {
651
719
  "get": {
652
720
  "operationId": "get_api_org_controller_register",
@@ -10912,6 +10980,34 @@
10912
10980
  ],
10913
10981
  "description": "The app's own home page, linked as `Open <app>` when a hosted flow is done. `null` makes the hosted done page say `You can close this tab`."
10914
10982
  },
10983
+ "operator_info_url": {
10984
+ "anyOf": [
10985
+ {
10986
+ "type": "string",
10987
+ "maxLength": 2048,
10988
+ "pattern": "^https:\\/\\/(?=[A-Za-z0-9.-]{1,253}(?::[0-9]{1,5})?(?:[/?#]|$))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?::(?:[0-5]?[0-9]{1,4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)",
10989
+ "format": "uri"
10990
+ },
10991
+ {
10992
+ "type": "null"
10993
+ }
10994
+ ],
10995
+ "description": "Operator information / legal notice URL for this customer app. `null` means unset; cloud checks reachability and public addresses before allowing new app-user access flows."
10996
+ },
10997
+ "privacy_policy_url": {
10998
+ "anyOf": [
10999
+ {
11000
+ "type": "string",
11001
+ "maxLength": 2048,
11002
+ "pattern": "^https:\\/\\/(?=[A-Za-z0-9.-]{1,253}(?::[0-9]{1,5})?(?:[/?#]|$))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?::(?:[0-5]?[0-9]{1,4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)",
11003
+ "format": "uri"
11004
+ },
11005
+ {
11006
+ "type": "null"
11007
+ }
11008
+ ],
11009
+ "description": "Privacy policy URL for this customer app. `null` means unset; cloud checks reachability and public addresses before allowing new app-user access flows."
11010
+ },
10915
11011
  "sign_in_methods": {
10916
11012
  "type": "object",
10917
11013
  "properties": {
@@ -11019,6 +11115,8 @@
11019
11115
  "reset_url",
11020
11116
  "mcp_login_url",
11021
11117
  "app_url",
11118
+ "operator_info_url",
11119
+ "privacy_policy_url",
11022
11120
  "sign_in_methods",
11023
11121
  "two_factor",
11024
11122
  "hosted_logo_url",
@@ -23473,6 +23571,132 @@
23473
23571
  ],
23474
23572
  "additionalProperties": false
23475
23573
  },
23574
+ "legal-acceptance-list-response": {
23575
+ "type": "object",
23576
+ "properties": {
23577
+ "acceptances": {
23578
+ "type": "array",
23579
+ "items": {
23580
+ "type": "object",
23581
+ "properties": {
23582
+ "id": {
23583
+ "type": "string",
23584
+ "format": "uuid",
23585
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
23586
+ },
23587
+ "context": {
23588
+ "type": "string",
23589
+ "enum": [
23590
+ "registration",
23591
+ "invitation",
23592
+ "order",
23593
+ "existing_org"
23594
+ ]
23595
+ },
23596
+ "accepted_at": {
23597
+ "type": "string",
23598
+ "format": "date-time",
23599
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{6}(?:Z))$"
23600
+ },
23601
+ "text_id": {
23602
+ "type": "string",
23603
+ "minLength": 1,
23604
+ "maxLength": 80,
23605
+ "pattern": "\\S"
23606
+ },
23607
+ "terms": {
23608
+ "type": "object",
23609
+ "properties": {
23610
+ "version": {
23611
+ "type": "string",
23612
+ "minLength": 1,
23613
+ "maxLength": 80
23614
+ },
23615
+ "version_date": {
23616
+ "type": "string",
23617
+ "format": "date",
23618
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
23619
+ },
23620
+ "url": {
23621
+ "type": "string",
23622
+ "maxLength": 2048,
23623
+ "pattern": "^https:\\/\\/(?=[A-Za-z0-9.-]{1,253}(?::[0-9]{1,5})?(?:[/?#]|$))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?::(?:[0-5]?[0-9]{1,4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)",
23624
+ "format": "uri"
23625
+ }
23626
+ },
23627
+ "required": [
23628
+ "version",
23629
+ "version_date",
23630
+ "url"
23631
+ ],
23632
+ "additionalProperties": false
23633
+ },
23634
+ "dpa": {
23635
+ "anyOf": [
23636
+ {
23637
+ "type": "object",
23638
+ "properties": {
23639
+ "version": {
23640
+ "type": "string",
23641
+ "minLength": 1,
23642
+ "maxLength": 80
23643
+ },
23644
+ "version_date": {
23645
+ "type": "string",
23646
+ "format": "date",
23647
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
23648
+ },
23649
+ "url": {
23650
+ "type": "string",
23651
+ "maxLength": 2048,
23652
+ "pattern": "^https:\\/\\/(?=[A-Za-z0-9.-]{1,253}(?::[0-9]{1,5})?(?:[/?#]|$))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?::(?:[0-5]?[0-9]{1,4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)",
23653
+ "format": "uri"
23654
+ }
23655
+ },
23656
+ "required": [
23657
+ "version",
23658
+ "version_date",
23659
+ "url"
23660
+ ],
23661
+ "additionalProperties": false
23662
+ },
23663
+ {
23664
+ "type": "null"
23665
+ }
23666
+ ]
23667
+ }
23668
+ },
23669
+ "required": [
23670
+ "id",
23671
+ "context",
23672
+ "accepted_at",
23673
+ "text_id",
23674
+ "terms",
23675
+ "dpa"
23676
+ ],
23677
+ "additionalProperties": false
23678
+ }
23679
+ },
23680
+ "next_cursor": {
23681
+ "anyOf": [
23682
+ {
23683
+ "type": "string",
23684
+ "minLength": 1,
23685
+ "maxLength": 512,
23686
+ "pattern": "^[A-Za-z0-9_-]+$"
23687
+ },
23688
+ {
23689
+ "type": "null"
23690
+ }
23691
+ ]
23692
+ }
23693
+ },
23694
+ "required": [
23695
+ "acceptances",
23696
+ "next_cursor"
23697
+ ],
23698
+ "additionalProperties": false
23699
+ },
23476
23700
  "live-session-response": {
23477
23701
  "type": "object",
23478
23702
  "properties": {
@@ -27458,6 +27682,34 @@
27458
27682
  }
27459
27683
  ],
27460
27684
  "description": "The page an MCP authorization redirects to, with `{interaction}` where the interaction id goes. Not a token: the id names a pending request the server already holds, and the app authenticates the user itself before approving it. `null` means the hosted MCP sign-in in `hosted_pages` is used."
27685
+ },
27686
+ "operator_info_url": {
27687
+ "anyOf": [
27688
+ {
27689
+ "type": "string",
27690
+ "maxLength": 2048,
27691
+ "pattern": "^https:\\/\\/(?=[A-Za-z0-9.-]{1,253}(?::[0-9]{1,5})?(?:[/?#]|$))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?::(?:[0-5]?[0-9]{1,4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)",
27692
+ "format": "uri"
27693
+ },
27694
+ {
27695
+ "type": "null"
27696
+ }
27697
+ ],
27698
+ "description": "Operator information / legal notice URL for this customer app. `null` means unset; cloud checks reachability and public addresses before allowing new app-user access flows."
27699
+ },
27700
+ "privacy_policy_url": {
27701
+ "anyOf": [
27702
+ {
27703
+ "type": "string",
27704
+ "maxLength": 2048,
27705
+ "pattern": "^https:\\/\\/(?=[A-Za-z0-9.-]{1,253}(?::[0-9]{1,5})?(?:[/?#]|$))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?::(?:[0-5]?[0-9]{1,4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)",
27706
+ "format": "uri"
27707
+ },
27708
+ {
27709
+ "type": "null"
27710
+ }
27711
+ ],
27712
+ "description": "Privacy policy URL for this customer app. `null` means unset; cloud checks reachability and public addresses before allowing new app-user access flows."
27461
27713
  }
27462
27714
  },
27463
27715
  "required": [
@@ -27465,7 +27717,9 @@
27465
27717
  "invite_url",
27466
27718
  "verify_url",
27467
27719
  "reset_url",
27468
- "mcp_login_url"
27720
+ "mcp_login_url",
27721
+ "operator_info_url",
27722
+ "privacy_policy_url"
27469
27723
  ],
27470
27724
  "additionalProperties": false
27471
27725
  },
@@ -29240,10 +29494,18 @@
29240
29494
  "maxLength": 254,
29241
29495
  "format": "email",
29242
29496
  "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
29497
+ },
29498
+ "consent_text_version": {
29499
+ "type": "string",
29500
+ "minLength": 1,
29501
+ "maxLength": 80,
29502
+ "pattern": "\\S",
29503
+ "description": "Version of the F.1 text shown at submission. Cloud rejects unsupported versions and stores the submitted value in a consent record separate from the waiting list."
29243
29504
  }
29244
29505
  },
29245
29506
  "required": [
29246
- "email"
29507
+ "email",
29508
+ "consent_text_version"
29247
29509
  ]
29248
29510
  },
29249
29511
  "webauthn-options-response": {
@@ -451,6 +451,31 @@
451
451
  "transport": "http",
452
452
  "notes": "Answers `202` whether or not the address was already listed: the landing page's form must not be an oracle for who signed up. The operator notification is detached from the response — awaiting it made latency answer the question the status code refuses to — and is capped by its own global ceiling, above which the row is still written and the mail is skipped."
453
453
  },
454
+ {
455
+ "method": "GET",
456
+ "path": "/api/org/legal/acceptances",
457
+ "section": "org",
458
+ "summary": "Lists the calling organization's accepted legal document versions, newest first.",
459
+ "audience": "developer",
460
+ "auth": "developer",
461
+ "rateLimited": false,
462
+ "ownerTier": true,
463
+ "status": 200,
464
+ "params": [],
465
+ "query": "legal-acceptance-list-query",
466
+ "request": null,
467
+ "response": "legal-acceptance-list-response",
468
+ "errors": [
469
+ "unauthorized",
470
+ "token_expired",
471
+ "token_revoked",
472
+ "tier_required",
473
+ "support_forbidden",
474
+ "validation_error"
475
+ ],
476
+ "transport": "http",
477
+ "notes": "A real Owner reads only the authenticated organization; Developer and support sessions cannot read it. Rows carry stored Terms and applicable DPA references, never the current versions substituted for history. The default page limit is 50, maximum 100. The opaque cursor is unpadded base64url of UTF-8 JSON `[accepted_at,id]`, with a six-digit UTC timestamp and lowercase UUID; Cloud rejects noncanonical tokens. Follow `next_cursor` until null. Equal timestamps sort by id descending; a new acceptance cannot displace older rows."
478
+ },
454
479
  {
455
480
  "method": "GET",
456
481
  "path": "/api/org/controller-register",
@@ -91,6 +91,34 @@
91
91
  ],
92
92
  "description": "The app's own home page, linked as `Open <app>` when a hosted flow is done. `null` makes the hosted done page say `You can close this tab`."
93
93
  },
94
+ "operator_info_url": {
95
+ "anyOf": [
96
+ {
97
+ "type": "string",
98
+ "maxLength": 2048,
99
+ "pattern": "^https:\\/\\/(?=[A-Za-z0-9.-]{1,253}(?::[0-9]{1,5})?(?:[/?#]|$))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?::(?:[0-5]?[0-9]{1,4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)",
100
+ "format": "uri"
101
+ },
102
+ {
103
+ "type": "null"
104
+ }
105
+ ],
106
+ "description": "Operator information / legal notice URL for this customer app. `null` means unset; cloud checks reachability and public addresses before allowing new app-user access flows."
107
+ },
108
+ "privacy_policy_url": {
109
+ "anyOf": [
110
+ {
111
+ "type": "string",
112
+ "maxLength": 2048,
113
+ "pattern": "^https:\\/\\/(?=[A-Za-z0-9.-]{1,253}(?::[0-9]{1,5})?(?:[/?#]|$))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?::(?:[0-5]?[0-9]{1,4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)",
114
+ "format": "uri"
115
+ },
116
+ {
117
+ "type": "null"
118
+ }
119
+ ],
120
+ "description": "Privacy policy URL for this customer app. `null` means unset; cloud checks reachability and public addresses before allowing new app-user access flows."
121
+ },
94
122
  "sign_in_methods": {
95
123
  "type": "object",
96
124
  "properties": {
@@ -198,6 +226,8 @@
198
226
  "reset_url",
199
227
  "mcp_login_url",
200
228
  "app_url",
229
+ "operator_info_url",
230
+ "privacy_policy_url",
201
231
  "sign_in_methods",
202
232
  "two_factor",
203
233
  "hosted_logo_url",
@@ -0,0 +1,26 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "limit": {
6
+ "anyOf": [
7
+ {
8
+ "type": "string",
9
+ "pattern": "^(?:0{0,2}[1-9]|0?[1-9][0-9]|100)$"
10
+ },
11
+ {
12
+ "type": "integer",
13
+ "minimum": 1,
14
+ "maximum": 100
15
+ }
16
+ ]
17
+ },
18
+ "cursor": {
19
+ "type": "string",
20
+ "minLength": 1,
21
+ "maxLength": 512,
22
+ "pattern": "^[A-Za-z0-9_-]+$"
23
+ }
24
+ },
25
+ "additionalProperties": false
26
+ }
@@ -0,0 +1,127 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "acceptances": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "object",
9
+ "properties": {
10
+ "id": {
11
+ "type": "string",
12
+ "format": "uuid",
13
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
14
+ },
15
+ "context": {
16
+ "type": "string",
17
+ "enum": [
18
+ "registration",
19
+ "invitation",
20
+ "order",
21
+ "existing_org"
22
+ ]
23
+ },
24
+ "accepted_at": {
25
+ "type": "string",
26
+ "format": "date-time",
27
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{6}(?:Z))$"
28
+ },
29
+ "text_id": {
30
+ "type": "string",
31
+ "minLength": 1,
32
+ "maxLength": 80,
33
+ "pattern": "\\S"
34
+ },
35
+ "terms": {
36
+ "type": "object",
37
+ "properties": {
38
+ "version": {
39
+ "type": "string",
40
+ "minLength": 1,
41
+ "maxLength": 80
42
+ },
43
+ "version_date": {
44
+ "type": "string",
45
+ "format": "date",
46
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
47
+ },
48
+ "url": {
49
+ "type": "string",
50
+ "maxLength": 2048,
51
+ "pattern": "^https:\\/\\/(?=[A-Za-z0-9.-]{1,253}(?::[0-9]{1,5})?(?:[/?#]|$))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?::(?:[0-5]?[0-9]{1,4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)",
52
+ "format": "uri"
53
+ }
54
+ },
55
+ "required": [
56
+ "version",
57
+ "version_date",
58
+ "url"
59
+ ],
60
+ "additionalProperties": false
61
+ },
62
+ "dpa": {
63
+ "anyOf": [
64
+ {
65
+ "type": "object",
66
+ "properties": {
67
+ "version": {
68
+ "type": "string",
69
+ "minLength": 1,
70
+ "maxLength": 80
71
+ },
72
+ "version_date": {
73
+ "type": "string",
74
+ "format": "date",
75
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
76
+ },
77
+ "url": {
78
+ "type": "string",
79
+ "maxLength": 2048,
80
+ "pattern": "^https:\\/\\/(?=[A-Za-z0-9.-]{1,253}(?::[0-9]{1,5})?(?:[/?#]|$))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?::(?:[0-5]?[0-9]{1,4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)",
81
+ "format": "uri"
82
+ }
83
+ },
84
+ "required": [
85
+ "version",
86
+ "version_date",
87
+ "url"
88
+ ],
89
+ "additionalProperties": false
90
+ },
91
+ {
92
+ "type": "null"
93
+ }
94
+ ]
95
+ }
96
+ },
97
+ "required": [
98
+ "id",
99
+ "context",
100
+ "accepted_at",
101
+ "text_id",
102
+ "terms",
103
+ "dpa"
104
+ ],
105
+ "additionalProperties": false
106
+ }
107
+ },
108
+ "next_cursor": {
109
+ "anyOf": [
110
+ {
111
+ "type": "string",
112
+ "minLength": 1,
113
+ "maxLength": 512,
114
+ "pattern": "^[A-Za-z0-9_-]+$"
115
+ },
116
+ {
117
+ "type": "null"
118
+ }
119
+ ]
120
+ }
121
+ },
122
+ "required": [
123
+ "acceptances",
124
+ "next_cursor"
125
+ ],
126
+ "additionalProperties": false
127
+ }