@fleetless/contracts 8.1.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 +35 -0
- package/artifacts/openapi.json +842 -105
- package/artifacts/routes.json +72 -0
- package/artifacts/schema/app-auth-config.schema.json +30 -0
- package/artifacts/schema/controller-register-org-response.schema.json +225 -0
- package/artifacts/schema/controller-register-write.schema.json +168 -0
- package/artifacts/schema/legal-acceptance-list-query.schema.json +26 -0
- package/artifacts/schema/legal-acceptance-list-response.schema.json +127 -0
- package/artifacts/schema/legal-acceptance-version-row.schema.json +101 -0
- package/artifacts/schema/legal-document-reference.schema.json +28 -0
- package/artifacts/schema/legal-text-references.schema.json +72 -0
- package/artifacts/schema/put-app-auth-urls-request.schema.json +31 -1
- package/artifacts/schema/waitlist-request.schema.json +9 -1
- package/dist/app-users.d.ts +12 -5
- package/dist/app-users.js +29 -6
- package/dist/controller-register.d.ts +113 -0
- package/dist/controller-register.js +38 -0
- package/dist/identity.d.ts +5 -2
- package/dist/identity.js +10 -3
- package/dist/index.d.ts +7 -1
- package/dist/index.js +4 -1
- package/dist/legal-acceptances.d.ts +54 -0
- package/dist/legal-acceptances.js +22 -0
- package/dist/legal.d.ts +31 -0
- package/dist/legal.js +29 -0
- package/dist/routes.js +32 -0
- package/package.json +1 -1
package/artifacts/routes.json
CHANGED
|
@@ -451,6 +451,78 @@
|
|
|
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
|
+
},
|
|
479
|
+
{
|
|
480
|
+
"method": "GET",
|
|
481
|
+
"path": "/api/org/controller-register",
|
|
482
|
+
"section": "org",
|
|
483
|
+
"summary": "Reads the calling owner's customer-confirmed controller register details.",
|
|
484
|
+
"audience": "developer",
|
|
485
|
+
"auth": "developer",
|
|
486
|
+
"rateLimited": false,
|
|
487
|
+
"ownerTier": true,
|
|
488
|
+
"status": 200,
|
|
489
|
+
"params": [],
|
|
490
|
+
"query": null,
|
|
491
|
+
"request": null,
|
|
492
|
+
"response": "controller-register-org-response",
|
|
493
|
+
"errors": [
|
|
494
|
+
"unauthorized",
|
|
495
|
+
"token_expired",
|
|
496
|
+
"token_revoked",
|
|
497
|
+
"tier_required"
|
|
498
|
+
],
|
|
499
|
+
"transport": "http",
|
|
500
|
+
"notes": "The authenticated org is the only source. Members and support sessions receive no register data. A missing detail record is null. Billing data never populates this response. Access is audited."
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
"method": "PUT",
|
|
504
|
+
"path": "/api/org/controller-register",
|
|
505
|
+
"section": "org",
|
|
506
|
+
"summary": "Replaces the calling owner's confirmed controller register details.",
|
|
507
|
+
"audience": "developer",
|
|
508
|
+
"auth": "developer",
|
|
509
|
+
"rateLimited": false,
|
|
510
|
+
"ownerTier": true,
|
|
511
|
+
"status": 200,
|
|
512
|
+
"params": [],
|
|
513
|
+
"query": null,
|
|
514
|
+
"request": "controller-register-write",
|
|
515
|
+
"response": "controller-register-org-response",
|
|
516
|
+
"errors": [
|
|
517
|
+
"unauthorized",
|
|
518
|
+
"token_expired",
|
|
519
|
+
"token_revoked",
|
|
520
|
+
"tier_required",
|
|
521
|
+
"validation_error"
|
|
522
|
+
],
|
|
523
|
+
"transport": "http",
|
|
524
|
+
"notes": "The authenticated org is the only target. Null contacts explicitly clear earlier values. The write is atomic and audited; billing data is never an implicit source. Support sessions cannot write."
|
|
525
|
+
},
|
|
454
526
|
{
|
|
455
527
|
"method": "GET",
|
|
456
528
|
"path": "/api/audit",
|
|
@@ -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,225 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"orgId": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"format": "uuid",
|
|
8
|
+
"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)$"
|
|
9
|
+
},
|
|
10
|
+
"details": {
|
|
11
|
+
"anyOf": [
|
|
12
|
+
{
|
|
13
|
+
"type": "object",
|
|
14
|
+
"properties": {
|
|
15
|
+
"legalName": {
|
|
16
|
+
"anyOf": [
|
|
17
|
+
{
|
|
18
|
+
"type": "string",
|
|
19
|
+
"minLength": 1,
|
|
20
|
+
"maxLength": 200,
|
|
21
|
+
"pattern": "^\\P{Cc}*$"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"type": "null"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
"address": {
|
|
29
|
+
"anyOf": [
|
|
30
|
+
{
|
|
31
|
+
"type": "object",
|
|
32
|
+
"properties": {
|
|
33
|
+
"line1": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"minLength": 1,
|
|
36
|
+
"maxLength": 200,
|
|
37
|
+
"pattern": "^\\P{Cc}*$"
|
|
38
|
+
},
|
|
39
|
+
"line2": {
|
|
40
|
+
"default": null,
|
|
41
|
+
"anyOf": [
|
|
42
|
+
{
|
|
43
|
+
"type": "string",
|
|
44
|
+
"minLength": 1,
|
|
45
|
+
"maxLength": 200,
|
|
46
|
+
"pattern": "^\\P{Cc}*$"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"type": "null"
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
"postalCode": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"minLength": 1,
|
|
56
|
+
"maxLength": 32,
|
|
57
|
+
"pattern": "^\\P{Cc}*$"
|
|
58
|
+
},
|
|
59
|
+
"city": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"minLength": 1,
|
|
62
|
+
"maxLength": 120,
|
|
63
|
+
"pattern": "^\\P{Cc}*$"
|
|
64
|
+
},
|
|
65
|
+
"country": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"allOf": [
|
|
68
|
+
{
|
|
69
|
+
"pattern": "^\\P{Cc}*$"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"pattern": "^[A-Z]{2}$"
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"required": [
|
|
78
|
+
"line1",
|
|
79
|
+
"line2",
|
|
80
|
+
"postalCode",
|
|
81
|
+
"city",
|
|
82
|
+
"country"
|
|
83
|
+
],
|
|
84
|
+
"additionalProperties": false
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"type": "null"
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
"privacyContact": {
|
|
92
|
+
"anyOf": [
|
|
93
|
+
{
|
|
94
|
+
"type": "object",
|
|
95
|
+
"properties": {
|
|
96
|
+
"name": {
|
|
97
|
+
"type": "string",
|
|
98
|
+
"minLength": 1,
|
|
99
|
+
"maxLength": 200,
|
|
100
|
+
"pattern": "^\\P{Cc}*$"
|
|
101
|
+
},
|
|
102
|
+
"email": {
|
|
103
|
+
"type": "string",
|
|
104
|
+
"maxLength": 320,
|
|
105
|
+
"format": "email",
|
|
106
|
+
"allOf": [
|
|
107
|
+
{
|
|
108
|
+
"pattern": "^\\P{Cc}*$"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
|
|
112
|
+
}
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
"role": {
|
|
116
|
+
"type": "string",
|
|
117
|
+
"enum": [
|
|
118
|
+
"general",
|
|
119
|
+
"appointed_dpo"
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"required": [
|
|
124
|
+
"name",
|
|
125
|
+
"email",
|
|
126
|
+
"role"
|
|
127
|
+
],
|
|
128
|
+
"additionalProperties": false
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"type": "null"
|
|
132
|
+
}
|
|
133
|
+
]
|
|
134
|
+
},
|
|
135
|
+
"euRepresentative": {
|
|
136
|
+
"anyOf": [
|
|
137
|
+
{
|
|
138
|
+
"type": "object",
|
|
139
|
+
"properties": {
|
|
140
|
+
"name": {
|
|
141
|
+
"type": "string",
|
|
142
|
+
"minLength": 1,
|
|
143
|
+
"maxLength": 200,
|
|
144
|
+
"pattern": "^\\P{Cc}*$"
|
|
145
|
+
},
|
|
146
|
+
"email": {
|
|
147
|
+
"type": "string",
|
|
148
|
+
"maxLength": 320,
|
|
149
|
+
"format": "email",
|
|
150
|
+
"allOf": [
|
|
151
|
+
{
|
|
152
|
+
"pattern": "^\\P{Cc}*$"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
|
|
156
|
+
}
|
|
157
|
+
]
|
|
158
|
+
},
|
|
159
|
+
"address": {
|
|
160
|
+
"type": "string",
|
|
161
|
+
"minLength": 1,
|
|
162
|
+
"maxLength": 500,
|
|
163
|
+
"pattern": "^\\P{Cc}*$"
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
"required": [
|
|
167
|
+
"name",
|
|
168
|
+
"email",
|
|
169
|
+
"address"
|
|
170
|
+
],
|
|
171
|
+
"additionalProperties": false
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"type": "null"
|
|
175
|
+
}
|
|
176
|
+
]
|
|
177
|
+
},
|
|
178
|
+
"confirmationSource": {
|
|
179
|
+
"type": "string",
|
|
180
|
+
"minLength": 1,
|
|
181
|
+
"maxLength": 500,
|
|
182
|
+
"pattern": "^\\P{Cc}*$"
|
|
183
|
+
},
|
|
184
|
+
"updatedAt": {
|
|
185
|
+
"type": "string",
|
|
186
|
+
"format": "date-time",
|
|
187
|
+
"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+)?)?(?:Z))$"
|
|
188
|
+
},
|
|
189
|
+
"updatedByKind": {
|
|
190
|
+
"type": "string",
|
|
191
|
+
"enum": [
|
|
192
|
+
"owner",
|
|
193
|
+
"operator"
|
|
194
|
+
]
|
|
195
|
+
},
|
|
196
|
+
"updatedById": {
|
|
197
|
+
"type": "string",
|
|
198
|
+
"format": "uuid",
|
|
199
|
+
"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)$"
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
"required": [
|
|
203
|
+
"legalName",
|
|
204
|
+
"address",
|
|
205
|
+
"privacyContact",
|
|
206
|
+
"euRepresentative",
|
|
207
|
+
"confirmationSource",
|
|
208
|
+
"updatedAt",
|
|
209
|
+
"updatedByKind",
|
|
210
|
+
"updatedById"
|
|
211
|
+
],
|
|
212
|
+
"additionalProperties": false
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"type": "null"
|
|
216
|
+
}
|
|
217
|
+
]
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
"required": [
|
|
221
|
+
"orgId",
|
|
222
|
+
"details"
|
|
223
|
+
],
|
|
224
|
+
"additionalProperties": false
|
|
225
|
+
}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"legalName": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"minLength": 1,
|
|
8
|
+
"maxLength": 200,
|
|
9
|
+
"pattern": "^\\P{Cc}*$"
|
|
10
|
+
},
|
|
11
|
+
"address": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"line1": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"minLength": 1,
|
|
17
|
+
"maxLength": 200,
|
|
18
|
+
"pattern": "^\\P{Cc}*$"
|
|
19
|
+
},
|
|
20
|
+
"line2": {
|
|
21
|
+
"default": null,
|
|
22
|
+
"anyOf": [
|
|
23
|
+
{
|
|
24
|
+
"type": "string",
|
|
25
|
+
"minLength": 1,
|
|
26
|
+
"maxLength": 200,
|
|
27
|
+
"pattern": "^\\P{Cc}*$"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"type": "null"
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
"postalCode": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"minLength": 1,
|
|
37
|
+
"maxLength": 32,
|
|
38
|
+
"pattern": "^\\P{Cc}*$"
|
|
39
|
+
},
|
|
40
|
+
"city": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"minLength": 1,
|
|
43
|
+
"maxLength": 120,
|
|
44
|
+
"pattern": "^\\P{Cc}*$"
|
|
45
|
+
},
|
|
46
|
+
"country": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"allOf": [
|
|
49
|
+
{
|
|
50
|
+
"pattern": "^\\P{Cc}*$"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"pattern": "^[A-Z]{2}$"
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"required": [
|
|
59
|
+
"line1",
|
|
60
|
+
"postalCode",
|
|
61
|
+
"city",
|
|
62
|
+
"country"
|
|
63
|
+
],
|
|
64
|
+
"additionalProperties": false
|
|
65
|
+
},
|
|
66
|
+
"privacyContact": {
|
|
67
|
+
"anyOf": [
|
|
68
|
+
{
|
|
69
|
+
"type": "object",
|
|
70
|
+
"properties": {
|
|
71
|
+
"name": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"minLength": 1,
|
|
74
|
+
"maxLength": 200,
|
|
75
|
+
"pattern": "^\\P{Cc}*$"
|
|
76
|
+
},
|
|
77
|
+
"email": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"maxLength": 320,
|
|
80
|
+
"format": "email",
|
|
81
|
+
"allOf": [
|
|
82
|
+
{
|
|
83
|
+
"pattern": "^\\P{Cc}*$"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
|
|
87
|
+
}
|
|
88
|
+
]
|
|
89
|
+
},
|
|
90
|
+
"role": {
|
|
91
|
+
"type": "string",
|
|
92
|
+
"enum": [
|
|
93
|
+
"general",
|
|
94
|
+
"appointed_dpo"
|
|
95
|
+
]
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"required": [
|
|
99
|
+
"name",
|
|
100
|
+
"email",
|
|
101
|
+
"role"
|
|
102
|
+
],
|
|
103
|
+
"additionalProperties": false
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"type": "null"
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
},
|
|
110
|
+
"euRepresentative": {
|
|
111
|
+
"anyOf": [
|
|
112
|
+
{
|
|
113
|
+
"type": "object",
|
|
114
|
+
"properties": {
|
|
115
|
+
"name": {
|
|
116
|
+
"type": "string",
|
|
117
|
+
"minLength": 1,
|
|
118
|
+
"maxLength": 200,
|
|
119
|
+
"pattern": "^\\P{Cc}*$"
|
|
120
|
+
},
|
|
121
|
+
"email": {
|
|
122
|
+
"type": "string",
|
|
123
|
+
"maxLength": 320,
|
|
124
|
+
"format": "email",
|
|
125
|
+
"allOf": [
|
|
126
|
+
{
|
|
127
|
+
"pattern": "^\\P{Cc}*$"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
},
|
|
134
|
+
"address": {
|
|
135
|
+
"type": "string",
|
|
136
|
+
"minLength": 1,
|
|
137
|
+
"maxLength": 500,
|
|
138
|
+
"pattern": "^\\P{Cc}*$"
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"required": [
|
|
142
|
+
"name",
|
|
143
|
+
"email",
|
|
144
|
+
"address"
|
|
145
|
+
],
|
|
146
|
+
"additionalProperties": false
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"type": "null"
|
|
150
|
+
}
|
|
151
|
+
]
|
|
152
|
+
},
|
|
153
|
+
"confirmationSource": {
|
|
154
|
+
"type": "string",
|
|
155
|
+
"minLength": 1,
|
|
156
|
+
"maxLength": 500,
|
|
157
|
+
"pattern": "^\\P{Cc}*$"
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"required": [
|
|
161
|
+
"legalName",
|
|
162
|
+
"address",
|
|
163
|
+
"privacyContact",
|
|
164
|
+
"euRepresentative",
|
|
165
|
+
"confirmationSource"
|
|
166
|
+
],
|
|
167
|
+
"additionalProperties": false
|
|
168
|
+
}
|
|
@@ -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
|
+
}
|