@authorizedretailers/spec 0.1.1 → 0.2.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 (208) hide show
  1. package/README.md +66 -47
  2. package/dist/constants.d.ts +25 -6
  3. package/dist/constants.js +41 -7
  4. package/dist/identity.d.ts +29 -14
  5. package/dist/identity.js +79 -39
  6. package/dist/index.d.ts +2 -0
  7. package/dist/index.js +2 -0
  8. package/dist/jws.d.ts +36 -5
  9. package/dist/jws.js +48 -14
  10. package/dist/match.d.ts +21 -0
  11. package/dist/match.js +89 -0
  12. package/dist/product.d.ts +34 -0
  13. package/dist/product.js +75 -0
  14. package/dist/published.d.ts +14 -8
  15. package/dist/published.js +32 -10
  16. package/dist/schemas.d.ts +366 -91
  17. package/dist/schemas.js +802 -181
  18. package/dist/types.d.ts +121 -47
  19. package/dist/types.js +2 -2
  20. package/dist/validate.d.ts +24 -10
  21. package/dist/validate.js +300 -107
  22. package/fixtures/list/invalid/list-all-mixed.json +53 -0
  23. package/fixtures/list/invalid/list-amazon-missing-seller-id.json +51 -0
  24. package/fixtures/list/invalid/list-amazon-on-walmart-domain.json +52 -0
  25. package/fixtures/{file/invalid/full-attached-jws.json → list/invalid/list-attached-jws.json} +14 -12
  26. package/fixtures/list/invalid/list-bad-asin.json +102 -0
  27. package/fixtures/list/invalid/list-bad-gtin.json +102 -0
  28. package/fixtures/list/invalid/list-brand-exclusion-no-catalog.json +57 -0
  29. package/fixtures/list/invalid/list-duplicate-asin.json +102 -0
  30. package/fixtures/{file/invalid/full-duplicate-authorization-id.json → list/invalid/list-duplicate-authorization-id.json} +23 -18
  31. package/fixtures/list/invalid/list-duplicate-gtin.json +102 -0
  32. package/fixtures/list/invalid/list-duplicate-product-id.json +102 -0
  33. package/fixtures/{file/invalid/full-empty-territories.json → list/invalid/list-empty-territories.json} +17 -10
  34. package/fixtures/list/invalid/list-exclude-unknown-product.json +105 -0
  35. package/fixtures/list/invalid/list-expires-field.json +53 -0
  36. package/fixtures/list/invalid/list-extra-property.json +53 -0
  37. package/fixtures/list/invalid/list-generic-web-no-territories.json +39 -0
  38. package/fixtures/list/invalid/list-gtin-11-digits.json +102 -0
  39. package/fixtures/list/invalid/list-impossible-date.json +53 -0
  40. package/fixtures/list/invalid/list-lowercase-territory.json +52 -0
  41. package/fixtures/{file/invalid/full-signature-missing-kid.json → list/invalid/list-marketplace-field.json} +14 -11
  42. package/fixtures/list/invalid/list-marketplace-territory-mismatch.json +52 -0
  43. package/fixtures/list/invalid/list-missing-revocation-id.json +51 -0
  44. package/fixtures/list/invalid/list-missing-scope.json +44 -0
  45. package/fixtures/list/invalid/list-missing-stale-until.json +51 -0
  46. package/fixtures/list/invalid/list-name-only-retailer.json +36 -0
  47. package/fixtures/list/invalid/list-no-channels.json +37 -0
  48. package/fixtures/list/invalid/list-non-utc-timestamp.json +52 -0
  49. package/fixtures/list/invalid/list-not-public-with-authorizations.json +18 -0
  50. package/fixtures/list/invalid/list-not-public-with-catalog.json +18 -0
  51. package/fixtures/{file/invalid/full-physical-only.json → list/invalid/list-physical.json} +16 -10
  52. package/fixtures/list/invalid/list-product-no-identifier.json +98 -0
  53. package/fixtures/list/invalid/list-scope-no-products.json +49 -0
  54. package/fixtures/{file/valid/full-signed.json → list/invalid/list-single-domain.json} +12 -12
  55. package/fixtures/list/invalid/list-stale-over-24-hours.json +52 -0
  56. package/fixtures/list/invalid/list-territory-uk.json +52 -0
  57. package/fixtures/{file/invalid/full-unknown-channel-type.json → list/invalid/list-unknown-channel-type.json} +18 -12
  58. package/fixtures/list/invalid/list-unknown-line.json +102 -0
  59. package/fixtures/list/invalid/list-unknown-product.json +105 -0
  60. package/fixtures/{file/invalid/full-missing-authorization-expires.json → list/invalid/list-unsigned.json} +12 -9
  61. package/fixtures/list/invalid/list-valid-over-15-minutes.json +52 -0
  62. package/fixtures/{file/invalid/full-web-domain-is-url.json → list/invalid/list-web-domain-is-url.json} +18 -12
  63. package/fixtures/list/invalid/list-web-on-marketplace-domain.json +52 -0
  64. package/fixtures/{file/invalid/full-wildcard-mixed.json → list/invalid/list-wildcard-mixed.json} +17 -10
  65. package/fixtures/list/valid/list-catalog-line-scope.json +102 -0
  66. package/fixtures/list/valid/list-cctld-web.json +39 -0
  67. package/fixtures/list/valid/list-fractional-seconds.json +52 -0
  68. package/fixtures/{file/invalid/full-amazon-missing-seller-id.json → list/valid/list-generic-web-territories.json} +15 -17
  69. package/fixtures/list/valid/list-marketplace-no-territories.json +40 -0
  70. package/fixtures/list/valid/list-no-authorizations.json +18 -0
  71. package/fixtures/list/valid/list-no-catalog.json +52 -0
  72. package/fixtures/list/valid/list-no-expires.json +52 -0
  73. package/fixtures/list/valid/list-not-public.json +17 -0
  74. package/fixtures/list/valid/list-product-scope.json +103 -0
  75. package/fixtures/list/valid/list-proposed-by.json +55 -0
  76. package/fixtures/list/valid/list-with-expires.json +53 -0
  77. package/fixtures/list/valid/list-worldwide.json +52 -0
  78. package/fixtures/manifest.json +606 -158
  79. package/fixtures/match/all-scope-excluded-line.json +194 -0
  80. package/fixtures/match/all-scope-not-in-catalog.json +194 -0
  81. package/fixtures/match/as-of-before-end-date.json +194 -0
  82. package/fixtures/match/brand-exclusion-beats-named-product.json +194 -0
  83. package/fixtures/match/duplicate-asin-authorized-seller.json +192 -0
  84. package/fixtures/match/duplicate-asin-unauthorized-seller.json +191 -0
  85. package/fixtures/match/expired-end-date.json +193 -0
  86. package/fixtures/match/marketplace-territory-default.json +186 -0
  87. package/fixtures/match/marketplace-territory-mismatch.json +187 -0
  88. package/fixtures/match/match-by-channel-key.json +186 -0
  89. package/fixtures/match/product-excluded-by-authorization.json +194 -0
  90. package/fixtures/match/product-line-request.json +186 -0
  91. package/fixtures/match/product-not-in-scope.json +194 -0
  92. package/fixtures/match/seller-authorized-by-gtin.json +194 -0
  93. package/fixtures/match/seller-authorized-for-line.json +194 -0
  94. package/fixtures/match/worldwide-web.json +186 -0
  95. package/fixtures/pointer/invalid/full-form.json +11 -0
  96. package/fixtures/pointer/invalid/pointer-domain-mismatch.json +10 -0
  97. package/fixtures/{file → pointer}/invalid/pointer-http-url.json +2 -1
  98. package/fixtures/pointer/invalid/pointer-missing-verify-token.json +9 -0
  99. package/fixtures/pointer/invalid/pointer-other-host.json +10 -0
  100. package/fixtures/{file/valid/pointer.json → pointer/invalid/pointer-wrong-spec.json} +1 -0
  101. package/fixtures/pointer/invalid/private-form.json +10 -0
  102. package/fixtures/pointer/invalid/unknown-form.json +10 -0
  103. package/fixtures/pointer/valid/pointer-fetched-via-www.json +10 -0
  104. package/fixtures/pointer/valid/pointer.json +10 -0
  105. package/fixtures/revocation-feed/invalid/feed-hashed-entry.json +17 -0
  106. package/fixtures/revocation-feed/invalid/feed-valid-over-15-minutes.json +17 -0
  107. package/fixtures/revocation-feed/valid/feed-empty.json +12 -0
  108. package/fixtures/revocation-feed/valid/feed.json +17 -0
  109. package/fixtures/verify-request/invalid/bad-as-of.json +9 -0
  110. package/fixtures/verify-request/invalid/bad-gtin.json +11 -0
  111. package/fixtures/verify-request/invalid/domain-with-scheme.json +2 -4
  112. package/fixtures/verify-request/{valid/web-no-product-line.json → invalid/generic-web-no-territory.json} +1 -2
  113. package/fixtures/verify-request/invalid/gtin-and-asin.json +12 -0
  114. package/fixtures/verify-request/{valid/amazon.json → invalid/marketplace-field.json} +1 -3
  115. package/fixtures/verify-request/invalid/missing-channel.json +1 -3
  116. package/fixtures/verify-request/invalid/physical-channel.json +1 -3
  117. package/fixtures/verify-request/invalid/retailer-name-only.json +0 -2
  118. package/fixtures/verify-request/invalid/territory-uk.json +9 -0
  119. package/fixtures/verify-request/invalid/wildcard-territory.json +2 -3
  120. package/fixtures/verify-request/valid/as-of-datetime.json +9 -0
  121. package/fixtures/verify-request/valid/full.json +13 -0
  122. package/fixtures/verify-request/valid/gtin.json +11 -0
  123. package/fixtures/verify-request/valid/minimal-marketplace.json +8 -0
  124. package/fixtures/verify-request/valid/web-cctld-no-territory.json +7 -0
  125. package/fixtures/verify-request/valid/web-generic-with-territory.json +9 -0
  126. package/fixtures/verify-response/invalid/authorized-missing-revocation-id.json +18 -0
  127. package/fixtures/verify-response/invalid/authorized-with-reason.json +20 -0
  128. package/fixtures/verify-response/invalid/brand-unverified.json +13 -0
  129. package/fixtures/verify-response/invalid/expired-without-expires.json +18 -0
  130. package/fixtures/verify-response/invalid/missing-observed.json +11 -5
  131. package/fixtures/verify-response/invalid/missing-signature.json +9 -3
  132. package/fixtures/verify-response/invalid/missing-stale-until.json +18 -0
  133. package/fixtures/verify-response/invalid/not-in-catalog-with-id.json +17 -0
  134. package/fixtures/verify-response/invalid/not-registered-with-unlisted-reason.json +13 -0
  135. package/fixtures/verify-response/invalid/stale-until-over-24-hours.json +19 -0
  136. package/fixtures/verify-response/invalid/unlisted-observed.json +5 -4
  137. package/fixtures/verify-response/invalid/unlisted-with-authorization-id.json +5 -4
  138. package/fixtures/verify-response/invalid/unlisted-with-not-registered-reason.json +13 -0
  139. package/fixtures/verify-response/invalid/unlisted-with-revocation-id.json +13 -0
  140. package/fixtures/verify-response/invalid/valid-until-before-checked.json +11 -5
  141. package/fixtures/verify-response/invalid/valid-until-over-15-minutes.json +19 -0
  142. package/fixtures/verify-response/invalid/with-stale-flag.json +20 -0
  143. package/fixtures/verify-response/invalid/with-tier.json +11 -5
  144. package/fixtures/verify-response/valid/authorized-no-product.json +14 -0
  145. package/fixtures/verify-response/valid/authorized-not-in-catalog.json +22 -0
  146. package/fixtures/verify-response/valid/authorized-observed.json +11 -5
  147. package/fixtures/verify-response/valid/authorized-private-product.json +17 -0
  148. package/fixtures/verify-response/valid/authorized-with-end-date.json +20 -0
  149. package/fixtures/verify-response/valid/authorized.json +11 -5
  150. package/fixtures/verify-response/valid/disputed.json +10 -5
  151. package/fixtures/verify-response/valid/expired.json +12 -6
  152. package/fixtures/verify-response/valid/not-registered-no-reason.json +12 -0
  153. package/fixtures/verify-response/valid/not-registered-reason.json +13 -0
  154. package/fixtures/verify-response/valid/unlisted-product-excluded.json +18 -0
  155. package/fixtures/verify-response/valid/unlisted-product-not-in-catalog.json +16 -0
  156. package/fixtures/verify-response/valid/unlisted-territory-mismatch.json +13 -0
  157. package/fixtures/verify-response/valid/unlisted.json +5 -4
  158. package/fixtures/verify-response/valid/with-as-of.json +20 -0
  159. package/fixtures/verify-response/valid/with-signal.json +11 -5
  160. package/package.json +5 -4
  161. package/schemas/0.2/common.json +761 -0
  162. package/schemas/0.2/list.json +87 -0
  163. package/schemas/0.2/pointer.json +33 -0
  164. package/schemas/0.2/revocation-feed.json +55 -0
  165. package/schemas/0.2/verify-request.json +65 -0
  166. package/schemas/0.2/verify-response.json +284 -0
  167. package/spec/spec-v0.2.md +531 -0
  168. package/fixtures/file/invalid/full-all-mixed.json +0 -47
  169. package/fixtures/file/invalid/full-authorization-expires-after-file.json +0 -46
  170. package/fixtures/file/invalid/full-expires-before-issued.json +0 -46
  171. package/fixtures/file/invalid/full-expiry-over-180-days.json +0 -46
  172. package/fixtures/file/invalid/full-extra-property.json +0 -47
  173. package/fixtures/file/invalid/full-impossible-date.json +0 -46
  174. package/fixtures/file/invalid/full-lowercase-territory.json +0 -45
  175. package/fixtures/file/invalid/full-missing-file-expires.json +0 -45
  176. package/fixtures/file/invalid/full-missing-product-lines.json +0 -43
  177. package/fixtures/file/invalid/full-missing-scope.json +0 -37
  178. package/fixtures/file/invalid/full-missing-territories.json +0 -42
  179. package/fixtures/file/invalid/full-name-only-retailer.json +0 -30
  180. package/fixtures/file/invalid/full-no-channels.json +0 -31
  181. package/fixtures/file/invalid/full-non-utc-timestamp.json +0 -46
  182. package/fixtures/file/invalid/full-physical-missing-country.json +0 -50
  183. package/fixtures/file/invalid/full-web-missing-domain.json +0 -45
  184. package/fixtures/file/invalid/full-wrong-spec.json +0 -46
  185. package/fixtures/file/invalid/private-missing-verify.json +0 -8
  186. package/fixtures/file/invalid/private-with-authorizations.json +0 -45
  187. package/fixtures/file/invalid/unknown-form.json +0 -9
  188. package/fixtures/file/valid/full-fractional-seconds.json +0 -46
  189. package/fixtures/file/valid/full-max-expiry.json +0 -46
  190. package/fixtures/file/valid/full-no-authorizations.json +0 -11
  191. package/fixtures/file/valid/full-unsigned-handwritten.json +0 -46
  192. package/fixtures/file/valid/full-worldwide-physical-proposed.json +0 -82
  193. package/fixtures/file/valid/private.json +0 -9
  194. package/fixtures/verify-response/invalid/authorized-missing-authorization-id.json +0 -12
  195. package/fixtures/verify-response/invalid/missing-valid-until.json +0 -12
  196. package/fixtures/verify-response/invalid/observed-without-last-seen.json +0 -13
  197. package/fixtures/verify-response/invalid/unknown-status.json +0 -13
  198. package/fixtures/verify-response/invalid/unlisted-with-reason.json +0 -12
  199. package/fixtures/verify-response/invalid/valid-until-over-24h.json +0 -13
  200. package/fixtures/verify-response/valid/brand-unverified-no-reason.json +0 -11
  201. package/fixtures/verify-response/valid/brand-unverified-reason.json +0 -12
  202. /package/schemas/{common.json → 0.1/common.json} +0 -0
  203. /package/schemas/{file-full.json → 0.1/file-full.json} +0 -0
  204. /package/schemas/{file-pointer.json → 0.1/file-pointer.json} +0 -0
  205. /package/schemas/{file-private.json → 0.1/file-private.json} +0 -0
  206. /package/schemas/{file.json → 0.1/file.json} +0 -0
  207. /package/schemas/{verify-request.json → 0.1/verify-request.json} +0 -0
  208. /package/schemas/{verify-response.json → 0.1/verify-response.json} +0 -0
package/dist/schemas.d.ts CHANGED
@@ -12,6 +12,12 @@ export declare const common: {
12
12
  format: string;
13
13
  pattern: string;
14
14
  };
15
+ date: {
16
+ description: string;
17
+ type: string;
18
+ format: string;
19
+ pattern: string;
20
+ };
15
21
  domain: {
16
22
  description: string;
17
23
  type: string;
@@ -20,10 +26,16 @@ export declare const common: {
20
26
  };
21
27
  countryCode: {
22
28
  description: string;
29
+ enum: string[];
30
+ };
31
+ httpsUrl: {
23
32
  type: string;
33
+ format: string;
24
34
  pattern: string;
35
+ maxLength: number;
25
36
  };
26
- httpsUrl: {
37
+ registryUrl: {
38
+ description: string;
27
39
  type: string;
28
40
  format: string;
29
41
  pattern: string;
@@ -33,45 +45,53 @@ export declare const common: {
33
45
  type: string;
34
46
  pattern: string;
35
47
  };
48
+ revocationId: {
49
+ description: string;
50
+ type: string;
51
+ pattern: string;
52
+ };
36
53
  nonEmptyString: {
37
54
  type: string;
38
55
  minLength: number;
39
56
  maxLength: number;
40
57
  };
41
- brand: {
58
+ sellerId: {
59
+ type: string;
60
+ pattern: string;
61
+ };
62
+ amazonChannel: {
42
63
  type: string;
43
64
  required: string[];
44
65
  additionalProperties: boolean;
45
66
  properties: {
46
- name: {
47
- $ref: string;
67
+ type: {
68
+ const: string;
48
69
  };
49
70
  domain: {
71
+ enum: string[];
72
+ };
73
+ seller_id: {
50
74
  $ref: string;
51
75
  };
52
76
  };
53
77
  };
54
- sellerId: {
55
- type: string;
56
- pattern: string;
57
- };
58
- marketplaceChannel: {
78
+ walmartChannel: {
59
79
  type: string;
60
80
  required: string[];
61
81
  additionalProperties: boolean;
62
82
  properties: {
63
83
  type: {
64
- enum: string[];
84
+ const: string;
65
85
  };
66
- marketplace: {
67
- $ref: string;
86
+ domain: {
87
+ enum: string[];
68
88
  };
69
89
  seller_id: {
70
90
  $ref: string;
71
91
  };
72
92
  };
73
93
  };
74
- webChannel: {
94
+ ebayChannel: {
75
95
  type: string;
76
96
  required: string[];
77
97
  additionalProperties: boolean;
@@ -80,11 +100,14 @@ export declare const common: {
80
100
  const: string;
81
101
  };
82
102
  domain: {
103
+ enum: string[];
104
+ };
105
+ seller_id: {
83
106
  $ref: string;
84
107
  };
85
108
  };
86
109
  };
87
- physicalChannel: {
110
+ webChannel: {
88
111
  type: string;
89
112
  required: string[];
90
113
  additionalProperties: boolean;
@@ -92,23 +115,21 @@ export declare const common: {
92
115
  type: {
93
116
  const: string;
94
117
  };
95
- address: {
96
- type: string;
97
- minLength: number;
98
- maxLength: number;
99
- };
100
- country: {
101
- $ref: string;
118
+ domain: {
119
+ allOf: ({
120
+ $ref: string;
121
+ not?: never;
122
+ } | {
123
+ not: {
124
+ enum: string[];
125
+ };
126
+ $ref?: never;
127
+ })[];
102
128
  };
103
129
  };
104
130
  };
105
- verifiableChannel: {
106
- description: string;
107
- oneOf: {
108
- $ref: string;
109
- }[];
110
- };
111
131
  channel: {
132
+ description: string;
112
133
  oneOf: {
113
134
  $ref: string;
114
135
  }[];
@@ -170,10 +191,85 @@ export declare const common: {
170
191
  const?: never;
171
192
  })[];
172
193
  };
173
- scope: {
194
+ namedProductLines: {
195
+ type: string;
196
+ uniqueItems: boolean;
197
+ items: {
198
+ allOf: ({
199
+ $ref: string;
200
+ not?: never;
201
+ } | {
202
+ not: {
203
+ const: string;
204
+ };
205
+ $ref?: never;
206
+ })[];
207
+ };
208
+ };
209
+ productIds: {
210
+ type: string;
211
+ uniqueItems: boolean;
212
+ items: {
213
+ $ref: string;
214
+ };
215
+ };
216
+ gtin: {
217
+ description: string;
218
+ type: string;
219
+ pattern: string;
220
+ };
221
+ asin: {
222
+ description: string;
223
+ type: string;
224
+ pattern: string;
225
+ };
226
+ product: {
227
+ description: string;
174
228
  type: string;
175
229
  required: string[];
176
230
  additionalProperties: boolean;
231
+ properties: {
232
+ id: {
233
+ $ref: string;
234
+ };
235
+ name: {
236
+ $ref: string;
237
+ };
238
+ product_line: {
239
+ $ref: string;
240
+ };
241
+ attributes: {
242
+ type: string;
243
+ maxProperties: number;
244
+ propertyNames: {
245
+ minLength: number;
246
+ maxLength: number;
247
+ };
248
+ additionalProperties: {
249
+ type: string;
250
+ maxLength: number;
251
+ };
252
+ };
253
+ gtin: {
254
+ $ref: string;
255
+ };
256
+ asins: {
257
+ type: string;
258
+ minItems: number;
259
+ uniqueItems: boolean;
260
+ items: {
261
+ $ref: string;
262
+ };
263
+ };
264
+ };
265
+ anyOf: {
266
+ required: string[];
267
+ }[];
268
+ };
269
+ scope: {
270
+ description: string;
271
+ type: string;
272
+ additionalProperties: boolean;
177
273
  properties: {
178
274
  territories: {
179
275
  $ref: string;
@@ -181,6 +277,36 @@ export declare const common: {
181
277
  product_lines: {
182
278
  $ref: string;
183
279
  };
280
+ products: {
281
+ allOf: ({
282
+ $ref: string;
283
+ minItems?: never;
284
+ } | {
285
+ minItems: number;
286
+ $ref?: never;
287
+ })[];
288
+ };
289
+ exclude_product_lines: {
290
+ $ref: string;
291
+ };
292
+ exclude_products: {
293
+ $ref: string;
294
+ };
295
+ };
296
+ anyOf: {
297
+ required: string[];
298
+ }[];
299
+ };
300
+ exclusions: {
301
+ type: string;
302
+ additionalProperties: boolean;
303
+ properties: {
304
+ product_lines: {
305
+ $ref: string;
306
+ };
307
+ products: {
308
+ $ref: string;
309
+ };
184
310
  };
185
311
  };
186
312
  authorization: {
@@ -191,19 +317,18 @@ export declare const common: {
191
317
  id: {
192
318
  $ref: string;
193
319
  };
320
+ revocation_id: {
321
+ $ref: string;
322
+ };
194
323
  retailer: {
195
324
  $ref: string;
196
325
  };
197
326
  channels: {
198
- description: string;
199
327
  type: string;
200
328
  minItems: number;
201
329
  items: {
202
330
  $ref: string;
203
331
  };
204
- contains: {
205
- $ref: string;
206
- };
207
332
  };
208
333
  scope: {
209
334
  $ref: string;
@@ -219,8 +344,42 @@ export declare const common: {
219
344
  })[];
220
345
  };
221
346
  expires: {
347
+ description: string;
348
+ $ref: string;
349
+ };
350
+ };
351
+ };
352
+ brand: {
353
+ description: string;
354
+ type: string;
355
+ required: string[];
356
+ additionalProperties: boolean;
357
+ properties: {
358
+ name: {
222
359
  $ref: string;
223
360
  };
361
+ domain: {
362
+ $ref: string;
363
+ };
364
+ };
365
+ };
366
+ listBrand: {
367
+ description: string;
368
+ type: string;
369
+ required: string[];
370
+ additionalProperties: boolean;
371
+ properties: {
372
+ name: {
373
+ $ref: string;
374
+ };
375
+ domains: {
376
+ type: string;
377
+ minItems: number;
378
+ uniqueItems: boolean;
379
+ items: {
380
+ $ref: string;
381
+ };
382
+ };
224
383
  };
225
384
  };
226
385
  signature: {
@@ -241,7 +400,7 @@ export declare const common: {
241
400
  };
242
401
  };
243
402
  };
244
- export declare const fileFull: {
403
+ export declare const list: {
245
404
  $schema: string;
246
405
  $id: string;
247
406
  title: string;
@@ -252,16 +411,28 @@ export declare const fileFull: {
252
411
  spec: {
253
412
  $ref: string;
254
413
  };
255
- form: {
256
- const: string;
257
- };
258
414
  brand: {
259
415
  $ref: string;
260
416
  };
417
+ public: {
418
+ type: string;
419
+ };
261
420
  issued: {
262
421
  $ref: string;
263
422
  };
264
- expires: {
423
+ valid_until: {
424
+ $ref: string;
425
+ };
426
+ stale_until: {
427
+ $ref: string;
428
+ };
429
+ catalog: {
430
+ type: string;
431
+ items: {
432
+ $ref: string;
433
+ };
434
+ };
435
+ exclusions: {
265
436
  $ref: string;
266
437
  };
267
438
  authorizations: {
@@ -271,12 +442,28 @@ export declare const fileFull: {
271
442
  };
272
443
  };
273
444
  signature: {
274
- description: string;
275
445
  $ref: string;
276
446
  };
277
447
  };
448
+ if: {
449
+ properties: {
450
+ public: {
451
+ const: boolean;
452
+ };
453
+ };
454
+ };
455
+ then: {
456
+ required: string[];
457
+ };
458
+ else: {
459
+ not: {
460
+ anyOf: {
461
+ required: string[];
462
+ }[];
463
+ };
464
+ };
278
465
  };
279
- export declare const filePointer: {
466
+ export declare const pointer: {
280
467
  $schema: string;
281
468
  $id: string;
282
469
  title: string;
@@ -293,12 +480,17 @@ export declare const filePointer: {
293
480
  brand: {
294
481
  $ref: string;
295
482
  };
483
+ verify_token: {
484
+ description: string;
485
+ type: string;
486
+ pattern: string;
487
+ };
296
488
  list: {
297
489
  $ref: string;
298
490
  };
299
491
  };
300
492
  };
301
- export declare const filePrivate: {
493
+ export declare const revocationFeed: {
302
494
  $schema: string;
303
495
  $id: string;
304
496
  title: string;
@@ -309,40 +501,38 @@ export declare const filePrivate: {
309
501
  spec: {
310
502
  $ref: string;
311
503
  };
312
- form: {
504
+ feed: {
313
505
  const: string;
314
506
  };
315
- brand: {
507
+ issued: {
316
508
  $ref: string;
317
509
  };
318
- verify: {
510
+ valid_until: {
319
511
  $ref: string;
320
512
  };
321
- };
322
- };
323
- export declare const file: {
324
- $schema: string;
325
- $id: string;
326
- title: string;
327
- type: string;
328
- required: string[];
329
- properties: {
330
- form: {
331
- enum: string[];
513
+ stale_until: {
514
+ $ref: string;
332
515
  };
333
- };
334
- allOf: {
335
- if: {
336
- properties: {
337
- form: {
338
- const: string;
516
+ entries: {
517
+ type: string;
518
+ items: {
519
+ type: string;
520
+ required: string[];
521
+ additionalProperties: boolean;
522
+ properties: {
523
+ revocation_id: {
524
+ $ref: string;
525
+ };
526
+ revoked: {
527
+ $ref: string;
528
+ };
339
529
  };
340
530
  };
341
531
  };
342
- then: {
532
+ signature: {
343
533
  $ref: string;
344
534
  };
345
- }[];
535
+ };
346
536
  };
347
537
  export declare const verifyRequest: {
348
538
  $schema: string;
@@ -363,9 +553,37 @@ export declare const verifyRequest: {
363
553
  $ref: string;
364
554
  };
365
555
  product_line: {
366
- description: string;
367
556
  $ref: string;
368
557
  };
558
+ product: {
559
+ description: string;
560
+ oneOf: ({
561
+ type: string;
562
+ required: string[];
563
+ additionalProperties: boolean;
564
+ properties: {
565
+ gtin: {
566
+ $ref: string;
567
+ };
568
+ asin?: never;
569
+ };
570
+ } | {
571
+ type: string;
572
+ required: string[];
573
+ additionalProperties: boolean;
574
+ properties: {
575
+ asin: {
576
+ $ref: string;
577
+ };
578
+ gtin?: never;
579
+ };
580
+ })[];
581
+ };
582
+ as_of: {
583
+ anyOf: {
584
+ $ref: string;
585
+ }[];
586
+ };
369
587
  };
370
588
  };
371
589
  export declare const verifyResponse: {
@@ -385,15 +603,54 @@ export declare const verifyResponse: {
385
603
  authorization_id: {
386
604
  $ref: string;
387
605
  };
606
+ revocation_id: {
607
+ $ref: string;
608
+ };
388
609
  expires: {
389
610
  $ref: string;
390
611
  };
391
612
  checked: {
392
613
  $ref: string;
393
614
  };
615
+ as_of: {
616
+ $ref: string;
617
+ };
394
618
  valid_until: {
395
619
  $ref: string;
396
620
  };
621
+ stale_until: {
622
+ $ref: string;
623
+ };
624
+ product: {
625
+ type: string;
626
+ required: string[];
627
+ additionalProperties: boolean;
628
+ properties: {
629
+ in_catalog: {
630
+ type: string;
631
+ };
632
+ id: {
633
+ $ref: string;
634
+ };
635
+ product_line: {
636
+ $ref: string;
637
+ };
638
+ };
639
+ if: {
640
+ properties: {
641
+ in_catalog: {
642
+ const: boolean;
643
+ };
644
+ };
645
+ };
646
+ then: {
647
+ not: {
648
+ anyOf: {
649
+ required: string[];
650
+ }[];
651
+ };
652
+ };
653
+ };
397
654
  observed: {
398
655
  description: string;
399
656
  oneOf: ({
@@ -441,81 +698,99 @@ export declare const verifyResponse: {
441
698
  if: {
442
699
  properties: {
443
700
  status: {
444
- const: string;
445
- enum?: never;
701
+ enum: string[];
702
+ const?: never;
446
703
  };
447
704
  };
448
- not?: never;
449
705
  };
450
706
  then: {
707
+ required: string[];
708
+ properties?: never;
709
+ not?: never;
710
+ };
711
+ else: {
451
712
  not: {
452
713
  anyOf: {
453
714
  required: string[];
454
715
  }[];
716
+ required?: never;
455
717
  };
456
718
  properties?: never;
457
- required?: never;
458
719
  };
459
- else: {
460
- not: {
461
- required: string[];
720
+ } | {
721
+ if: {
722
+ properties: {
723
+ status: {
724
+ const: string;
725
+ enum?: never;
726
+ };
462
727
  };
463
728
  };
729
+ then: {
730
+ required: string[];
731
+ properties?: never;
732
+ not?: never;
733
+ };
734
+ else?: never;
464
735
  } | {
465
736
  if: {
466
- not: {
467
- properties: {
468
- status: {
469
- const: string;
470
- };
737
+ properties: {
738
+ status: {
739
+ const: string;
740
+ enum?: never;
471
741
  };
472
742
  };
473
- properties?: never;
474
743
  };
475
744
  then: {
745
+ required: string[];
746
+ properties?: never;
747
+ not?: never;
748
+ };
749
+ else: {
476
750
  properties: {
477
751
  observed: {
478
752
  const: null;
479
753
  };
480
754
  };
481
- not?: never;
482
- required?: never;
755
+ not: {
756
+ required: string[];
757
+ anyOf?: never;
758
+ };
483
759
  };
484
- else?: never;
485
760
  } | {
486
761
  if: {
487
762
  properties: {
488
763
  status: {
489
- enum: string[];
490
- const?: never;
764
+ const: string;
765
+ enum?: never;
491
766
  };
492
767
  };
493
- not?: never;
494
768
  };
495
769
  then: {
496
- required: string[];
770
+ properties: {
771
+ reason: {
772
+ enum: string[];
773
+ };
774
+ };
775
+ required?: never;
497
776
  not?: never;
498
- properties?: never;
499
777
  };
500
778
  else?: never;
501
779
  } | {
502
780
  if: {
503
781
  properties: {
504
782
  status: {
505
- const: string;
506
- enum?: never;
783
+ enum: string[];
784
+ const?: never;
507
785
  };
508
786
  };
509
- not?: never;
510
787
  };
511
788
  then: {
512
789
  not: {
513
- anyOf: {
514
- required: string[];
515
- }[];
790
+ required: string[];
516
791
  };
517
- properties?: never;
518
792
  required?: never;
793
+ properties?: never;
519
794
  };
520
795
  else?: never;
521
796
  })[];