@taggor/contract 0.4.0 → 0.6.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.
Files changed (267) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/artifact-keys.d.ts +11 -11
  3. package/dist/artifact-keys.d.ts.map +1 -1
  4. package/dist/artifact-keys.js +11 -11
  5. package/dist/artifact-keys.js.map +1 -1
  6. package/dist/assets.d.ts +5 -5
  7. package/dist/assets.js +5 -5
  8. package/dist/bounded-path.d.ts +2 -2
  9. package/dist/bounded-path.js +2 -2
  10. package/dist/bounded.d.ts +2 -2
  11. package/dist/bounded.js +2 -2
  12. package/dist/build-diagnostic.d.ts +5 -5
  13. package/dist/build-diagnostic.js +5 -5
  14. package/dist/component-types.d.ts +7 -7
  15. package/dist/component-types.js +4 -4
  16. package/dist/component-types.js.map +1 -1
  17. package/dist/contract-version.d.ts +17 -12
  18. package/dist/contract-version.d.ts.map +1 -1
  19. package/dist/contract-version.js +24 -17
  20. package/dist/contract-version.js.map +1 -1
  21. package/dist/credential-fields.d.ts +1 -1
  22. package/dist/credential-fields.js +1 -1
  23. package/dist/css-tokens.d.ts +1 -1
  24. package/dist/css-tokens.js +1 -1
  25. package/dist/css-value.d.ts +4 -4
  26. package/dist/css-value.js +4 -4
  27. package/dist/data-api.d.ts +14 -44
  28. package/dist/data-api.d.ts.map +1 -1
  29. package/dist/data-api.js +20 -54
  30. package/dist/data-api.js.map +1 -1
  31. package/dist/denylist-keys.d.ts +1 -1
  32. package/dist/denylist-keys.js +4 -4
  33. package/dist/diagnostic-catalog.d.ts +63 -89
  34. package/dist/diagnostic-catalog.d.ts.map +1 -1
  35. package/dist/diagnostic-catalog.js +63 -87
  36. package/dist/diagnostic-catalog.js.map +1 -1
  37. package/dist/dom-members.snapshot.d.ts +4 -4
  38. package/dist/dom-members.snapshot.js +8 -8
  39. package/dist/early-loading.d.ts +1 -1
  40. package/dist/early-loading.js +1 -1
  41. package/dist/error-catalog.d.ts +81 -7
  42. package/dist/error-catalog.d.ts.map +1 -1
  43. package/dist/error-catalog.js +121 -51
  44. package/dist/error-catalog.js.map +1 -1
  45. package/dist/error-titles-pt-br.d.ts +13 -0
  46. package/dist/error-titles-pt-br.d.ts.map +1 -0
  47. package/dist/error-titles-pt-br.js +99 -0
  48. package/dist/error-titles-pt-br.js.map +1 -0
  49. package/dist/event-params.d.ts +41 -0
  50. package/dist/event-params.d.ts.map +1 -0
  51. package/dist/event-params.js +92 -0
  52. package/dist/event-params.js.map +1 -0
  53. package/dist/executable-config.d.ts +1 -1
  54. package/dist/freeze.d.ts +2 -2
  55. package/dist/freeze.js +2 -2
  56. package/dist/gunzip.d.ts +3 -3
  57. package/dist/gunzip.js +4 -4
  58. package/dist/gunzip.js.map +1 -1
  59. package/dist/hostname.d.ts +5 -6
  60. package/dist/hostname.d.ts.map +1 -1
  61. package/dist/hostname.js +7 -8
  62. package/dist/hostname.js.map +1 -1
  63. package/dist/human-actions.d.ts +3 -3
  64. package/dist/index.d.ts +11 -8
  65. package/dist/index.d.ts.map +1 -1
  66. package/dist/index.js +11 -8
  67. package/dist/index.js.map +1 -1
  68. package/dist/json-schema.d.ts +15 -15
  69. package/dist/json-schema.d.ts.map +1 -1
  70. package/dist/json-schema.js +20 -28
  71. package/dist/json-schema.js.map +1 -1
  72. package/dist/key-checksum.d.ts +1 -1
  73. package/dist/key-checksum.js +1 -1
  74. package/dist/libraries.d.ts +4 -4
  75. package/dist/libraries.d.ts.map +1 -1
  76. package/dist/libraries.js +4 -4
  77. package/dist/libraries.js.map +1 -1
  78. package/dist/limit-catalog.d.ts +19 -40
  79. package/dist/limit-catalog.d.ts.map +1 -1
  80. package/dist/limit-catalog.js +34 -55
  81. package/dist/limit-catalog.js.map +1 -1
  82. package/dist/limits.d.ts +22 -34
  83. package/dist/limits.d.ts.map +1 -1
  84. package/dist/limits.js +23 -35
  85. package/dist/limits.js.map +1 -1
  86. package/dist/locale-tag.d.ts +3 -3
  87. package/dist/locale-tag.js +3 -3
  88. package/dist/make-diagnostic.d.ts +2 -3
  89. package/dist/make-diagnostic.d.ts.map +1 -1
  90. package/dist/make-diagnostic.js.map +1 -1
  91. package/dist/manifest-compat-diagnostics.d.ts +1 -1
  92. package/dist/manifest-compat.js +1 -1
  93. package/dist/manifest.d.ts +44 -24
  94. package/dist/manifest.d.ts.map +1 -1
  95. package/dist/manifest.js +41 -61
  96. package/dist/manifest.js.map +1 -1
  97. package/dist/metering.d.ts +33 -21
  98. package/dist/metering.d.ts.map +1 -1
  99. package/dist/metering.js +33 -21
  100. package/dist/metering.js.map +1 -1
  101. package/dist/migrate.d.ts +1 -1
  102. package/dist/migrate.js +5 -5
  103. package/dist/migrate.js.map +1 -1
  104. package/dist/money.d.ts +2 -2
  105. package/dist/money.js +2 -2
  106. package/dist/names.d.ts +4 -4
  107. package/dist/names.js +4 -4
  108. package/dist/overage-pricing.d.ts +1 -1
  109. package/dist/overage-pricing.js +1 -1
  110. package/dist/plan-ids.d.ts +1 -1
  111. package/dist/plan-ids.js +1 -1
  112. package/dist/plan-limits.d.ts +13 -13
  113. package/dist/plan-limits.d.ts.map +1 -1
  114. package/dist/plan-limits.js +8 -8
  115. package/dist/plan-limits.js.map +1 -1
  116. package/dist/plan-pricing.d.ts +33 -62
  117. package/dist/plan-pricing.d.ts.map +1 -1
  118. package/dist/plan-pricing.js +20 -67
  119. package/dist/plan-pricing.js.map +1 -1
  120. package/dist/plan-usage.d.ts +18 -18
  121. package/dist/plan-usage.d.ts.map +1 -1
  122. package/dist/plan-usage.js +19 -20
  123. package/dist/plan-usage.js.map +1 -1
  124. package/dist/preview-token.js +2 -2
  125. package/dist/prop-names.d.ts +5 -5
  126. package/dist/prop-names.d.ts.map +1 -1
  127. package/dist/prop-names.js +10 -10
  128. package/dist/prop-names.js.map +1 -1
  129. package/dist/prop-type-docs.js +1 -1
  130. package/dist/prop-types.d.ts +6 -6
  131. package/dist/prop-types.js +16 -16
  132. package/dist/prop-types.js.map +1 -1
  133. package/dist/props.d.ts +5 -5
  134. package/dist/props.js +6 -6
  135. package/dist/props.js.map +1 -1
  136. package/dist/proto-guard.js +3 -3
  137. package/dist/proto-guard.js.map +1 -1
  138. package/dist/runtime-errors.d.ts +2 -2
  139. package/dist/runtime-errors.js +2 -2
  140. package/dist/runtime-pointers.d.ts +2 -2
  141. package/dist/runtime-pointers.js +2 -2
  142. package/{schema → dist/schema}/component-manifest.v1.json +7 -14
  143. package/{schema → dist/schema}/data-api.v1.json +4 -39
  144. package/dist/secret-scan.d.ts +10 -10
  145. package/dist/secret-scan.d.ts.map +1 -1
  146. package/dist/secret-scan.js +15 -16
  147. package/dist/secret-scan.js.map +1 -1
  148. package/dist/semver.d.ts +2 -2
  149. package/dist/semver.js +2 -2
  150. package/dist/server-key.js +1 -1
  151. package/dist/site-manifest-keys.d.ts +11 -11
  152. package/dist/site-manifest-keys.d.ts.map +1 -1
  153. package/dist/site-manifest-keys.js +18 -18
  154. package/dist/site-manifest-keys.js.map +1 -1
  155. package/dist/site-manifest.d.ts +3 -10
  156. package/dist/site-manifest.d.ts.map +1 -1
  157. package/dist/site-manifest.js +12 -15
  158. package/dist/site-manifest.js.map +1 -1
  159. package/dist/source-archive.d.ts +13 -13
  160. package/dist/source-archive.js +25 -25
  161. package/dist/source-archive.js.map +1 -1
  162. package/dist/source-package-corpus.d.ts +3 -4
  163. package/dist/source-package-corpus.d.ts.map +1 -1
  164. package/dist/source-package-corpus.js +4 -6
  165. package/dist/source-package-corpus.js.map +1 -1
  166. package/dist/source-package.d.ts +17 -17
  167. package/dist/source-package.d.ts.map +1 -1
  168. package/dist/source-package.js +15 -15
  169. package/dist/source-package.js.map +1 -1
  170. package/dist/source-secrets.js +1 -1
  171. package/dist/ssr-cap.d.ts +2 -2
  172. package/dist/ssr-cap.d.ts.map +1 -1
  173. package/dist/ssr-cap.js +4 -4
  174. package/dist/ssr-kv.d.ts +1 -1
  175. package/dist/ssr-kv.js +1 -1
  176. package/dist/ssr-render.d.ts +2 -2
  177. package/dist/ssr-render.d.ts.map +1 -1
  178. package/dist/ssr-render.js +3 -3
  179. package/dist/ssr-render.js.map +1 -1
  180. package/dist/ssr-version-ledger.js +3 -3
  181. package/dist/style-references.d.ts +2 -3
  182. package/dist/style-references.d.ts.map +1 -1
  183. package/dist/style-references.js +10 -11
  184. package/dist/style-references.js.map +1 -1
  185. package/dist/support-contact.d.ts +11 -0
  186. package/dist/support-contact.d.ts.map +1 -0
  187. package/dist/support-contact.js +11 -0
  188. package/dist/support-contact.js.map +1 -0
  189. package/dist/tag-name.d.ts +6 -6
  190. package/dist/tag-name.d.ts.map +1 -1
  191. package/dist/tag-name.js +7 -7
  192. package/dist/tag-name.js.map +1 -1
  193. package/dist/tar-writer.js +1 -1
  194. package/dist/testing.d.ts +1 -1
  195. package/dist/testing.js +1 -1
  196. package/dist/text-codec.d.ts +2 -2
  197. package/dist/text-codec.js +2 -2
  198. package/dist/url-value.d.ts +1 -1
  199. package/dist/url-value.d.ts.map +1 -1
  200. package/dist/url-value.js +7 -7
  201. package/dist/url-value.js.map +1 -1
  202. package/dist/usage-guard.d.ts +16 -16
  203. package/dist/usage-guard.js +15 -15
  204. package/dist/usage-mirror.d.ts +5 -5
  205. package/dist/value-check.d.ts +6 -6
  206. package/dist/value-check.js +20 -20
  207. package/dist/value-check.js.map +1 -1
  208. package/dist/value-patterns.js +2 -2
  209. package/dist/value-schema.d.ts +3 -3
  210. package/dist/value-schema.d.ts.map +1 -1
  211. package/dist/value-schema.js +4 -4
  212. package/dist/value-schema.js.map +1 -1
  213. package/dist/zod-free.d.ts +25 -25
  214. package/dist/zod-free.d.ts.map +1 -1
  215. package/dist/zod-free.js +26 -26
  216. package/dist/zod-free.js.map +1 -1
  217. package/package.json +9 -10
  218. package/dist/consent-text.d.ts +0 -31
  219. package/dist/consent-text.d.ts.map +0 -1
  220. package/dist/consent-text.js +0 -41
  221. package/dist/consent-text.js.map +0 -1
  222. package/schema/DEPLOYED +0 -12
  223. package/schema/published/SHA256SUMS +0 -41
  224. package/schema/published/build-diagnostic/v1.10.json +0 -83
  225. package/schema/published/build-diagnostic/v1.11.json +0 -83
  226. package/schema/published/build-diagnostic/v1.3.json +0 -83
  227. package/schema/published/build-diagnostic/v1.4.json +0 -83
  228. package/schema/published/build-diagnostic/v1.5.json +0 -83
  229. package/schema/published/build-diagnostic/v1.6.json +0 -83
  230. package/schema/published/build-diagnostic/v1.7.json +0 -83
  231. package/schema/published/build-diagnostic/v1.8.json +0 -83
  232. package/schema/published/build-diagnostic/v1.9.json +0 -83
  233. package/schema/published/component-manifest/v1.10.json +0 -1443
  234. package/schema/published/component-manifest/v1.11.json +0 -1443
  235. package/schema/published/component-manifest/v1.3.json +0 -1411
  236. package/schema/published/component-manifest/v1.4.json +0 -1419
  237. package/schema/published/component-manifest/v1.5.json +0 -1437
  238. package/schema/published/component-manifest/v1.6.json +0 -1437
  239. package/schema/published/component-manifest/v1.7.json +0 -1437
  240. package/schema/published/component-manifest/v1.8.json +0 -1437
  241. package/schema/published/component-manifest/v1.9.json +0 -1437
  242. package/schema/published/data-api/v1.10.json +0 -282
  243. package/schema/published/data-api/v1.11.json +0 -282
  244. package/schema/published/data-api/v1.3.json +0 -281
  245. package/schema/published/data-api/v1.4.json +0 -281
  246. package/schema/published/data-api/v1.5.json +0 -281
  247. package/schema/published/data-api/v1.6.json +0 -281
  248. package/schema/published/data-api/v1.7.json +0 -281
  249. package/schema/published/data-api/v1.8.json +0 -282
  250. package/schema/published/data-api/v1.9.json +0 -282
  251. package/schema/published/library-manifest/v1.10.json +0 -68
  252. package/schema/published/library-manifest/v1.11.json +0 -68
  253. package/schema/published/library-manifest/v1.5.json +0 -68
  254. package/schema/published/library-manifest/v1.6.json +0 -68
  255. package/schema/published/library-manifest/v1.7.json +0 -68
  256. package/schema/published/library-manifest/v1.8.json +0 -68
  257. package/schema/published/library-manifest/v1.9.json +0 -68
  258. package/schema/published/taggor-config/v1.10.json +0 -56
  259. package/schema/published/taggor-config/v1.11.json +0 -56
  260. package/schema/published/taggor-config/v1.5.json +0 -56
  261. package/schema/published/taggor-config/v1.6.json +0 -56
  262. package/schema/published/taggor-config/v1.7.json +0 -56
  263. package/schema/published/taggor-config/v1.8.json +0 -56
  264. package/schema/published/taggor-config/v1.9.json +0 -56
  265. /package/{schema → dist/schema}/build-diagnostic.v1.json +0 -0
  266. /package/{schema → dist/schema}/library-manifest.v1.json +0 -0
  267. /package/{schema → dist/schema}/taggor-config.v1.json +0 -0
@@ -1,281 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://taggor.app/schema/data-api/v1.json",
4
- "title": "Taggor data API v1",
5
- "description": "Payloads between a component and the edge (submit, read, track). Generated from the Zod source in @taggor/contract; do not edit.",
6
- "$defs": {
7
- "SubmitRequest": {
8
- "type": "object",
9
- "properties": {
10
- "data": {
11
- "type": "object",
12
- "propertyNames": {
13
- "type": "string",
14
- "maxLength": 40
15
- },
16
- "additionalProperties": {},
17
- "maxProperties": 50
18
- },
19
- "idempotency_key": {
20
- "type": "string",
21
- "minLength": 16,
22
- "maxLength": 64,
23
- "pattern": "^[A-Za-z0-9_-]+$"
24
- },
25
- "turnstile_token": {
26
- "type": "string",
27
- "minLength": 1,
28
- "maxLength": 2048
29
- },
30
- "_hp": {
31
- "type": "string",
32
- "maxLength": 256
33
- },
34
- "_t": {
35
- "type": "integer",
36
- "minimum": 0,
37
- "maximum": 9007199254740991
38
- },
39
- "consent": {
40
- "type": "object",
41
- "properties": {
42
- "given": {
43
- "type": "boolean",
44
- "const": true
45
- },
46
- "text_hash": {
47
- "type": "string",
48
- "minLength": 64,
49
- "maxLength": 64,
50
- "pattern": "^[0-9a-f]+$"
51
- },
52
- "locale": {
53
- "type": "string",
54
- "maxLength": 35,
55
- "pattern": "^[a-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$"
56
- }
57
- },
58
- "required": [
59
- "given",
60
- "text_hash",
61
- "locale"
62
- ],
63
- "additionalProperties": false,
64
- "title": "Consent proof"
65
- }
66
- },
67
- "required": [
68
- "data",
69
- "idempotency_key"
70
- ],
71
- "additionalProperties": false,
72
- "title": "Submit request"
73
- },
74
- "SubmitAccepted": {
75
- "type": "object",
76
- "properties": {
77
- "status": {
78
- "type": "string",
79
- "const": "accepted"
80
- }
81
- },
82
- "required": [
83
- "status"
84
- ],
85
- "additionalProperties": false,
86
- "title": "Submit accepted"
87
- },
88
- "ReadRequest": {
89
- "type": "object",
90
- "properties": {
91
- "limit": {
92
- "description": "Defaults to 20.",
93
- "type": "integer",
94
- "minimum": 1,
95
- "maximum": 100
96
- },
97
- "cursor": {
98
- "type": "string",
99
- "minLength": 1,
100
- "maxLength": 512,
101
- "pattern": "^[A-Za-z0-9_-]+$"
102
- }
103
- },
104
- "additionalProperties": false,
105
- "title": "Read request"
106
- },
107
- "ReadResponse": {
108
- "type": "object",
109
- "properties": {
110
- "data": {
111
- "maxItems": 100,
112
- "type": "array",
113
- "items": {
114
- "type": "object",
115
- "properties": {
116
- "id": {
117
- "type": "string",
118
- "pattern": "^sub_[0-9A-HJKMNP-TV-Z]{26}$"
119
- },
120
- "created_at": {
121
- "type": "string",
122
- "format": "date-time",
123
- "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))$"
124
- },
125
- "data": {
126
- "type": "object",
127
- "propertyNames": {
128
- "type": "string",
129
- "maxLength": 40
130
- },
131
- "additionalProperties": {},
132
- "maxProperties": 50
133
- }
134
- },
135
- "required": [
136
- "id",
137
- "created_at",
138
- "data"
139
- ],
140
- "additionalProperties": false
141
- }
142
- },
143
- "next_cursor": {
144
- "anyOf": [
145
- {
146
- "type": "string",
147
- "minLength": 1,
148
- "maxLength": 512,
149
- "pattern": "^[A-Za-z0-9_-]+$"
150
- },
151
- {
152
- "type": "null"
153
- }
154
- ]
155
- },
156
- "has_more": {
157
- "type": "boolean"
158
- }
159
- },
160
- "required": [
161
- "data",
162
- "next_cursor",
163
- "has_more"
164
- ],
165
- "additionalProperties": false,
166
- "title": "Read response"
167
- },
168
- "TagName": {
169
- "type": "string",
170
- "minLength": 1,
171
- "maxLength": 64,
172
- "pattern": "^(?!taggor-)(?!(?:annotation-xml|color-profile|font-face|font-face-src|font-face-uri|font-face-format|font-face-name|missing-glyph)$)[a-z][a-z0-9]*(?:-[a-z0-9]+)+$"
173
- },
174
- "MemberName": {
175
- "type": "string",
176
- "minLength": 1,
177
- "maxLength": 40,
178
- "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
179
- },
180
- "SnakeName": {
181
- "type": "string",
182
- "minLength": 1,
183
- "maxLength": 40,
184
- "pattern": "^(?!(?:constructor|hasOwnProperty|isPrototypeOf|propertyIsEnumerable|toLocaleString|toString|valueOf)$)[a-z][a-z0-9]*(?:_[a-z0-9]+)*$"
185
- },
186
- "EnumValue": {
187
- "type": "string",
188
- "minLength": 1,
189
- "maxLength": 64,
190
- "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
191
- },
192
- "TrackRequest": {
193
- "type": "object",
194
- "properties": {
195
- "component": {
196
- "$ref": "#/$defs/TagName"
197
- },
198
- "name": {
199
- "$ref": "#/$defs/MemberName"
200
- },
201
- "props": {
202
- "type": "object",
203
- "propertyNames": {
204
- "$ref": "#/$defs/SnakeName"
205
- },
206
- "additionalProperties": {
207
- "anyOf": [
208
- {
209
- "type": "number"
210
- },
211
- {
212
- "type": "boolean"
213
- },
214
- {
215
- "$ref": "#/$defs/EnumValue"
216
- }
217
- ]
218
- },
219
- "maxProperties": 8
220
- }
221
- },
222
- "required": [
223
- "component",
224
- "name"
225
- ],
226
- "additionalProperties": false,
227
- "title": "Track request"
228
- },
229
- "DataError": {
230
- "type": "object",
231
- "properties": {
232
- "code": {
233
- "type": "string",
234
- "enum": [
235
- "validation_failed",
236
- "collection_not_found",
237
- "read_not_allowed",
238
- "event_not_declared",
239
- "origin_not_allowed",
240
- "rate_limited",
241
- "captcha_failed",
242
- "payload_too_large",
243
- "consent_required"
244
- ]
245
- },
246
- "message": {
247
- "type": "string",
248
- "maxLength": 500
249
- },
250
- "fields": {
251
- "maxItems": 50,
252
- "type": "array",
253
- "items": {
254
- "type": "object",
255
- "properties": {
256
- "path": {
257
- "type": "string",
258
- "maxLength": 160
259
- },
260
- "message": {
261
- "type": "string",
262
- "maxLength": 500
263
- }
264
- },
265
- "required": [
266
- "path",
267
- "message"
268
- ],
269
- "additionalProperties": false
270
- }
271
- }
272
- },
273
- "required": [
274
- "code",
275
- "message"
276
- ],
277
- "additionalProperties": false,
278
- "title": "Data API error"
279
- }
280
- }
281
- }
@@ -1,281 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://taggor.app/schema/data-api/v1.json",
4
- "title": "Taggor data API v1",
5
- "description": "Payloads between a component and the edge (submit, read, track). Generated from the Zod source in @taggor/contract; do not edit.",
6
- "$defs": {
7
- "SubmitRequest": {
8
- "type": "object",
9
- "properties": {
10
- "data": {
11
- "type": "object",
12
- "propertyNames": {
13
- "type": "string",
14
- "maxLength": 40
15
- },
16
- "additionalProperties": {},
17
- "maxProperties": 50
18
- },
19
- "idempotency_key": {
20
- "type": "string",
21
- "minLength": 16,
22
- "maxLength": 64,
23
- "pattern": "^[A-Za-z0-9_-]+$"
24
- },
25
- "turnstile_token": {
26
- "type": "string",
27
- "minLength": 1,
28
- "maxLength": 2048
29
- },
30
- "_hp": {
31
- "type": "string",
32
- "maxLength": 256
33
- },
34
- "_t": {
35
- "type": "integer",
36
- "minimum": 0,
37
- "maximum": 9007199254740991
38
- },
39
- "consent": {
40
- "type": "object",
41
- "properties": {
42
- "given": {
43
- "type": "boolean",
44
- "const": true
45
- },
46
- "text_hash": {
47
- "type": "string",
48
- "minLength": 64,
49
- "maxLength": 64,
50
- "pattern": "^[0-9a-f]+$"
51
- },
52
- "locale": {
53
- "type": "string",
54
- "maxLength": 35,
55
- "pattern": "^[a-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$"
56
- }
57
- },
58
- "required": [
59
- "given",
60
- "text_hash",
61
- "locale"
62
- ],
63
- "additionalProperties": false,
64
- "title": "Consent proof"
65
- }
66
- },
67
- "required": [
68
- "data",
69
- "idempotency_key"
70
- ],
71
- "additionalProperties": false,
72
- "title": "Submit request"
73
- },
74
- "SubmitAccepted": {
75
- "type": "object",
76
- "properties": {
77
- "status": {
78
- "type": "string",
79
- "const": "accepted"
80
- }
81
- },
82
- "required": [
83
- "status"
84
- ],
85
- "additionalProperties": false,
86
- "title": "Submit accepted"
87
- },
88
- "ReadRequest": {
89
- "type": "object",
90
- "properties": {
91
- "limit": {
92
- "description": "Defaults to 20.",
93
- "type": "integer",
94
- "minimum": 1,
95
- "maximum": 100
96
- },
97
- "cursor": {
98
- "type": "string",
99
- "minLength": 1,
100
- "maxLength": 512,
101
- "pattern": "^[A-Za-z0-9_-]+$"
102
- }
103
- },
104
- "additionalProperties": false,
105
- "title": "Read request"
106
- },
107
- "ReadResponse": {
108
- "type": "object",
109
- "properties": {
110
- "data": {
111
- "maxItems": 100,
112
- "type": "array",
113
- "items": {
114
- "type": "object",
115
- "properties": {
116
- "id": {
117
- "type": "string",
118
- "pattern": "^sub_[0-9A-HJKMNP-TV-Z]{26}$"
119
- },
120
- "created_at": {
121
- "type": "string",
122
- "format": "date-time",
123
- "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))$"
124
- },
125
- "data": {
126
- "type": "object",
127
- "propertyNames": {
128
- "type": "string",
129
- "maxLength": 40
130
- },
131
- "additionalProperties": {},
132
- "maxProperties": 50
133
- }
134
- },
135
- "required": [
136
- "id",
137
- "created_at",
138
- "data"
139
- ],
140
- "additionalProperties": false
141
- }
142
- },
143
- "next_cursor": {
144
- "anyOf": [
145
- {
146
- "type": "string",
147
- "minLength": 1,
148
- "maxLength": 512,
149
- "pattern": "^[A-Za-z0-9_-]+$"
150
- },
151
- {
152
- "type": "null"
153
- }
154
- ]
155
- },
156
- "has_more": {
157
- "type": "boolean"
158
- }
159
- },
160
- "required": [
161
- "data",
162
- "next_cursor",
163
- "has_more"
164
- ],
165
- "additionalProperties": false,
166
- "title": "Read response"
167
- },
168
- "TagName": {
169
- "type": "string",
170
- "minLength": 1,
171
- "maxLength": 64,
172
- "pattern": "^(?!taggor-)(?!(?:annotation-xml|color-profile|font-face|font-face-src|font-face-uri|font-face-format|font-face-name|missing-glyph)$)[a-z][a-z0-9]*(?:-[a-z0-9]+)+$"
173
- },
174
- "MemberName": {
175
- "type": "string",
176
- "minLength": 1,
177
- "maxLength": 40,
178
- "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
179
- },
180
- "SnakeName": {
181
- "type": "string",
182
- "minLength": 1,
183
- "maxLength": 40,
184
- "pattern": "^(?!(?:constructor|hasOwnProperty|isPrototypeOf|propertyIsEnumerable|toLocaleString|toString|valueOf)$)[a-z][a-z0-9]*(?:_[a-z0-9]+)*$"
185
- },
186
- "EnumValue": {
187
- "type": "string",
188
- "minLength": 1,
189
- "maxLength": 64,
190
- "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
191
- },
192
- "TrackRequest": {
193
- "type": "object",
194
- "properties": {
195
- "component": {
196
- "$ref": "#/$defs/TagName"
197
- },
198
- "name": {
199
- "$ref": "#/$defs/MemberName"
200
- },
201
- "props": {
202
- "type": "object",
203
- "propertyNames": {
204
- "$ref": "#/$defs/SnakeName"
205
- },
206
- "additionalProperties": {
207
- "anyOf": [
208
- {
209
- "type": "number"
210
- },
211
- {
212
- "type": "boolean"
213
- },
214
- {
215
- "$ref": "#/$defs/EnumValue"
216
- }
217
- ]
218
- },
219
- "maxProperties": 8
220
- }
221
- },
222
- "required": [
223
- "component",
224
- "name"
225
- ],
226
- "additionalProperties": false,
227
- "title": "Track request"
228
- },
229
- "DataError": {
230
- "type": "object",
231
- "properties": {
232
- "code": {
233
- "type": "string",
234
- "enum": [
235
- "validation_failed",
236
- "collection_not_found",
237
- "read_not_allowed",
238
- "event_not_declared",
239
- "origin_not_allowed",
240
- "rate_limited",
241
- "captcha_failed",
242
- "payload_too_large",
243
- "consent_required"
244
- ]
245
- },
246
- "message": {
247
- "type": "string",
248
- "maxLength": 500
249
- },
250
- "fields": {
251
- "maxItems": 50,
252
- "type": "array",
253
- "items": {
254
- "type": "object",
255
- "properties": {
256
- "path": {
257
- "type": "string",
258
- "maxLength": 160
259
- },
260
- "message": {
261
- "type": "string",
262
- "maxLength": 500
263
- }
264
- },
265
- "required": [
266
- "path",
267
- "message"
268
- ],
269
- "additionalProperties": false
270
- }
271
- }
272
- },
273
- "required": [
274
- "code",
275
- "message"
276
- ],
277
- "additionalProperties": false,
278
- "title": "Data API error"
279
- }
280
- }
281
- }