@authorizedretailers/spec 0.1.0 → 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.
- package/README.md +66 -47
- package/dist/constants.d.ts +25 -6
- package/dist/constants.js +41 -7
- package/dist/identity.d.ts +29 -14
- package/dist/identity.js +79 -39
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/jws.d.ts +36 -5
- package/dist/jws.js +48 -14
- package/dist/match.d.ts +21 -0
- package/dist/match.js +89 -0
- package/dist/product.d.ts +34 -0
- package/dist/product.js +75 -0
- package/dist/published.d.ts +14 -8
- package/dist/published.js +32 -10
- package/dist/schemas.d.ts +366 -88
- package/dist/schemas.js +802 -178
- package/dist/types.d.ts +121 -47
- package/dist/types.js +2 -2
- package/dist/validate.d.ts +24 -10
- package/dist/validate.js +302 -82
- package/fixtures/list/invalid/list-all-mixed.json +53 -0
- package/fixtures/list/invalid/list-amazon-missing-seller-id.json +51 -0
- package/fixtures/list/invalid/list-amazon-on-walmart-domain.json +52 -0
- package/fixtures/{file/invalid/full-attached-jws.json → list/invalid/list-attached-jws.json} +14 -12
- package/fixtures/list/invalid/list-bad-asin.json +102 -0
- package/fixtures/list/invalid/list-bad-gtin.json +102 -0
- package/fixtures/list/invalid/list-brand-exclusion-no-catalog.json +57 -0
- package/fixtures/list/invalid/list-duplicate-asin.json +102 -0
- package/fixtures/{file/invalid/full-duplicate-authorization-id.json → list/invalid/list-duplicate-authorization-id.json} +23 -18
- package/fixtures/list/invalid/list-duplicate-gtin.json +102 -0
- package/fixtures/list/invalid/list-duplicate-product-id.json +102 -0
- package/fixtures/{file/invalid/full-empty-territories.json → list/invalid/list-empty-territories.json} +17 -10
- package/fixtures/list/invalid/list-exclude-unknown-product.json +105 -0
- package/fixtures/list/invalid/list-expires-field.json +53 -0
- package/fixtures/list/invalid/list-extra-property.json +53 -0
- package/fixtures/list/invalid/list-generic-web-no-territories.json +39 -0
- package/fixtures/list/invalid/list-gtin-11-digits.json +102 -0
- package/fixtures/list/invalid/list-impossible-date.json +53 -0
- package/fixtures/list/invalid/list-lowercase-territory.json +52 -0
- package/fixtures/{file/invalid/full-signature-missing-kid.json → list/invalid/list-marketplace-field.json} +14 -11
- package/fixtures/list/invalid/list-marketplace-territory-mismatch.json +52 -0
- package/fixtures/list/invalid/list-missing-revocation-id.json +51 -0
- package/fixtures/list/invalid/list-missing-scope.json +44 -0
- package/fixtures/list/invalid/list-missing-stale-until.json +51 -0
- package/fixtures/list/invalid/list-name-only-retailer.json +36 -0
- package/fixtures/list/invalid/list-no-channels.json +37 -0
- package/fixtures/list/invalid/list-non-utc-timestamp.json +52 -0
- package/fixtures/list/invalid/list-not-public-with-authorizations.json +18 -0
- package/fixtures/list/invalid/list-not-public-with-catalog.json +18 -0
- package/fixtures/list/invalid/list-physical.json +43 -0
- package/fixtures/list/invalid/list-product-no-identifier.json +98 -0
- package/fixtures/list/invalid/list-scope-no-products.json +49 -0
- package/fixtures/{file/valid/full-signed.json → list/invalid/list-single-domain.json} +12 -12
- package/fixtures/list/invalid/list-stale-over-24-hours.json +52 -0
- package/fixtures/list/invalid/list-territory-uk.json +52 -0
- package/fixtures/{file/invalid/full-unknown-channel-type.json → list/invalid/list-unknown-channel-type.json} +18 -12
- package/fixtures/list/invalid/list-unknown-line.json +102 -0
- package/fixtures/list/invalid/list-unknown-product.json +105 -0
- package/fixtures/{file/invalid/full-missing-authorization-expires.json → list/invalid/list-unsigned.json} +12 -9
- package/fixtures/list/invalid/list-valid-over-15-minutes.json +52 -0
- package/fixtures/{file/invalid/full-web-domain-is-url.json → list/invalid/list-web-domain-is-url.json} +18 -12
- package/fixtures/list/invalid/list-web-on-marketplace-domain.json +52 -0
- package/fixtures/{file/invalid/full-wildcard-mixed.json → list/invalid/list-wildcard-mixed.json} +17 -10
- package/fixtures/list/valid/list-catalog-line-scope.json +102 -0
- package/fixtures/list/valid/list-cctld-web.json +39 -0
- package/fixtures/list/valid/list-fractional-seconds.json +52 -0
- package/fixtures/{file/invalid/full-amazon-missing-seller-id.json → list/valid/list-generic-web-territories.json} +15 -17
- package/fixtures/list/valid/list-marketplace-no-territories.json +40 -0
- package/fixtures/list/valid/list-no-authorizations.json +18 -0
- package/fixtures/list/valid/list-no-catalog.json +52 -0
- package/fixtures/list/valid/list-no-expires.json +52 -0
- package/fixtures/list/valid/list-not-public.json +17 -0
- package/fixtures/list/valid/list-product-scope.json +103 -0
- package/fixtures/list/valid/list-proposed-by.json +55 -0
- package/fixtures/list/valid/list-with-expires.json +53 -0
- package/fixtures/list/valid/list-worldwide.json +52 -0
- package/fixtures/manifest.json +609 -154
- package/fixtures/match/all-scope-excluded-line.json +194 -0
- package/fixtures/match/all-scope-not-in-catalog.json +194 -0
- package/fixtures/match/as-of-before-end-date.json +194 -0
- package/fixtures/match/brand-exclusion-beats-named-product.json +194 -0
- package/fixtures/match/duplicate-asin-authorized-seller.json +192 -0
- package/fixtures/match/duplicate-asin-unauthorized-seller.json +191 -0
- package/fixtures/match/expired-end-date.json +193 -0
- package/fixtures/match/marketplace-territory-default.json +186 -0
- package/fixtures/match/marketplace-territory-mismatch.json +187 -0
- package/fixtures/match/match-by-channel-key.json +186 -0
- package/fixtures/match/product-excluded-by-authorization.json +194 -0
- package/fixtures/match/product-line-request.json +186 -0
- package/fixtures/match/product-not-in-scope.json +194 -0
- package/fixtures/match/seller-authorized-by-gtin.json +194 -0
- package/fixtures/match/seller-authorized-for-line.json +194 -0
- package/fixtures/match/worldwide-web.json +186 -0
- package/fixtures/pointer/invalid/full-form.json +11 -0
- package/fixtures/pointer/invalid/pointer-domain-mismatch.json +10 -0
- package/fixtures/{file → pointer}/invalid/pointer-http-url.json +2 -1
- package/fixtures/pointer/invalid/pointer-missing-verify-token.json +9 -0
- package/fixtures/pointer/invalid/pointer-other-host.json +10 -0
- package/fixtures/{file/valid/pointer.json → pointer/invalid/pointer-wrong-spec.json} +1 -0
- package/fixtures/pointer/invalid/private-form.json +10 -0
- package/fixtures/pointer/invalid/unknown-form.json +10 -0
- package/fixtures/pointer/valid/pointer-fetched-via-www.json +10 -0
- package/fixtures/pointer/valid/pointer.json +10 -0
- package/fixtures/revocation-feed/invalid/feed-hashed-entry.json +17 -0
- package/fixtures/revocation-feed/invalid/feed-valid-over-15-minutes.json +17 -0
- package/fixtures/revocation-feed/valid/feed-empty.json +12 -0
- package/fixtures/revocation-feed/valid/feed.json +17 -0
- package/fixtures/verify-request/invalid/bad-as-of.json +9 -0
- package/fixtures/verify-request/invalid/bad-gtin.json +11 -0
- package/fixtures/verify-request/invalid/domain-with-scheme.json +2 -4
- package/fixtures/verify-request/{valid/web-no-product-line.json → invalid/generic-web-no-territory.json} +1 -2
- package/fixtures/verify-request/invalid/gtin-and-asin.json +12 -0
- package/fixtures/verify-request/{valid/amazon.json → invalid/marketplace-field.json} +1 -3
- package/fixtures/verify-request/invalid/missing-channel.json +1 -3
- package/fixtures/verify-request/invalid/physical-channel.json +1 -3
- package/fixtures/verify-request/invalid/retailer-name-only.json +0 -2
- package/fixtures/verify-request/invalid/territory-uk.json +9 -0
- package/fixtures/verify-request/invalid/wildcard-territory.json +2 -3
- package/fixtures/verify-request/valid/as-of-datetime.json +9 -0
- package/fixtures/verify-request/valid/full.json +13 -0
- package/fixtures/verify-request/valid/gtin.json +11 -0
- package/fixtures/verify-request/valid/minimal-marketplace.json +8 -0
- package/fixtures/verify-request/valid/web-cctld-no-territory.json +7 -0
- package/fixtures/verify-request/valid/web-generic-with-territory.json +9 -0
- package/fixtures/verify-response/invalid/authorized-missing-revocation-id.json +18 -0
- package/fixtures/verify-response/invalid/authorized-with-reason.json +20 -0
- package/fixtures/verify-response/invalid/brand-unverified.json +13 -0
- package/fixtures/verify-response/invalid/expired-without-expires.json +18 -0
- package/fixtures/verify-response/invalid/missing-observed.json +11 -5
- package/fixtures/verify-response/invalid/missing-signature.json +9 -3
- package/fixtures/verify-response/invalid/missing-stale-until.json +18 -0
- package/fixtures/verify-response/invalid/not-in-catalog-with-id.json +17 -0
- package/fixtures/verify-response/invalid/not-registered-with-unlisted-reason.json +13 -0
- package/fixtures/verify-response/invalid/stale-until-over-24-hours.json +19 -0
- package/fixtures/verify-response/invalid/unlisted-observed.json +5 -4
- package/fixtures/verify-response/invalid/unlisted-with-authorization-id.json +5 -4
- package/fixtures/verify-response/invalid/unlisted-with-not-registered-reason.json +13 -0
- package/fixtures/verify-response/invalid/unlisted-with-revocation-id.json +13 -0
- package/fixtures/verify-response/invalid/valid-until-before-checked.json +11 -5
- package/fixtures/verify-response/invalid/valid-until-over-15-minutes.json +19 -0
- package/fixtures/verify-response/invalid/with-stale-flag.json +20 -0
- package/fixtures/verify-response/invalid/with-tier.json +11 -5
- package/fixtures/verify-response/valid/authorized-no-product.json +14 -0
- package/fixtures/verify-response/valid/authorized-not-in-catalog.json +22 -0
- package/fixtures/verify-response/valid/authorized-observed.json +11 -5
- package/fixtures/verify-response/valid/authorized-private-product.json +17 -0
- package/fixtures/verify-response/valid/authorized-with-end-date.json +20 -0
- package/fixtures/verify-response/valid/authorized.json +11 -5
- package/fixtures/verify-response/valid/disputed.json +10 -5
- package/fixtures/verify-response/valid/expired.json +12 -6
- package/fixtures/verify-response/valid/not-registered-no-reason.json +12 -0
- package/fixtures/verify-response/valid/not-registered-reason.json +13 -0
- package/fixtures/verify-response/valid/unlisted-product-excluded.json +18 -0
- package/fixtures/verify-response/valid/unlisted-product-not-in-catalog.json +16 -0
- package/fixtures/verify-response/valid/unlisted-territory-mismatch.json +13 -0
- package/fixtures/verify-response/valid/unlisted.json +5 -4
- package/fixtures/verify-response/valid/with-as-of.json +20 -0
- package/fixtures/verify-response/valid/with-signal.json +11 -5
- package/package.json +5 -4
- package/schemas/{common.json → 0.1/common.json} +3 -2
- package/schemas/0.2/common.json +761 -0
- package/schemas/0.2/list.json +87 -0
- package/schemas/0.2/pointer.json +33 -0
- package/schemas/0.2/revocation-feed.json +55 -0
- package/schemas/0.2/verify-request.json +65 -0
- package/schemas/0.2/verify-response.json +284 -0
- package/spec/spec-v0.1.md +11 -3
- package/spec/spec-v0.2.md +531 -0
- package/fixtures/file/invalid/full-all-mixed.json +0 -47
- package/fixtures/file/invalid/full-authorization-expires-after-file.json +0 -46
- package/fixtures/file/invalid/full-expires-before-issued.json +0 -46
- package/fixtures/file/invalid/full-expiry-over-180-days.json +0 -46
- package/fixtures/file/invalid/full-extra-property.json +0 -47
- package/fixtures/file/invalid/full-impossible-date.json +0 -46
- package/fixtures/file/invalid/full-lowercase-territory.json +0 -45
- package/fixtures/file/invalid/full-missing-file-expires.json +0 -45
- package/fixtures/file/invalid/full-missing-product-lines.json +0 -43
- package/fixtures/file/invalid/full-missing-scope.json +0 -37
- package/fixtures/file/invalid/full-missing-territories.json +0 -42
- package/fixtures/file/invalid/full-name-only-retailer.json +0 -30
- package/fixtures/file/invalid/full-no-channels.json +0 -31
- package/fixtures/file/invalid/full-non-utc-timestamp.json +0 -46
- package/fixtures/file/invalid/full-physical-missing-country.json +0 -50
- package/fixtures/file/invalid/full-web-missing-domain.json +0 -45
- package/fixtures/file/invalid/full-wrong-spec.json +0 -46
- package/fixtures/file/invalid/private-missing-verify.json +0 -8
- package/fixtures/file/invalid/private-with-authorizations.json +0 -45
- package/fixtures/file/invalid/unknown-form.json +0 -9
- package/fixtures/file/valid/full-fractional-seconds.json +0 -46
- package/fixtures/file/valid/full-max-expiry.json +0 -46
- package/fixtures/file/valid/full-no-authorizations.json +0 -11
- package/fixtures/file/valid/full-unsigned-handwritten.json +0 -46
- package/fixtures/file/valid/full-worldwide-physical-proposed.json +0 -82
- package/fixtures/file/valid/private.json +0 -9
- package/fixtures/verify-response/invalid/authorized-missing-authorization-id.json +0 -12
- package/fixtures/verify-response/invalid/missing-valid-until.json +0 -12
- package/fixtures/verify-response/invalid/observed-without-last-seen.json +0 -13
- package/fixtures/verify-response/invalid/unknown-status.json +0 -13
- package/fixtures/verify-response/invalid/unlisted-with-reason.json +0 -12
- package/fixtures/verify-response/invalid/valid-until-over-24h.json +0 -13
- package/fixtures/verify-response/valid/brand-unverified-no-reason.json +0 -11
- package/fixtures/verify-response/valid/brand-unverified-reason.json +0 -12
- /package/schemas/{file-full.json → 0.1/file-full.json} +0 -0
- /package/schemas/{file-pointer.json → 0.1/file-pointer.json} +0 -0
- /package/schemas/{file-private.json → 0.1/file-private.json} +0 -0
- /package/schemas/{file.json → 0.1/file.json} +0 -0
- /package/schemas/{verify-request.json → 0.1/verify-request.json} +0 -0
- /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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
47
|
-
|
|
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
|
-
|
|
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
|
-
|
|
84
|
+
const: string;
|
|
65
85
|
};
|
|
66
|
-
|
|
67
|
-
|
|
86
|
+
domain: {
|
|
87
|
+
enum: string[];
|
|
68
88
|
};
|
|
69
89
|
seller_id: {
|
|
70
90
|
$ref: string;
|
|
71
91
|
};
|
|
72
92
|
};
|
|
73
93
|
};
|
|
74
|
-
|
|
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
|
-
|
|
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
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
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
|
-
|
|
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,11 +317,13 @@ 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: {
|
|
@@ -216,8 +344,42 @@ export declare const common: {
|
|
|
216
344
|
})[];
|
|
217
345
|
};
|
|
218
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: {
|
|
359
|
+
$ref: string;
|
|
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: {
|
|
219
373
|
$ref: string;
|
|
220
374
|
};
|
|
375
|
+
domains: {
|
|
376
|
+
type: string;
|
|
377
|
+
minItems: number;
|
|
378
|
+
uniqueItems: boolean;
|
|
379
|
+
items: {
|
|
380
|
+
$ref: string;
|
|
381
|
+
};
|
|
382
|
+
};
|
|
221
383
|
};
|
|
222
384
|
};
|
|
223
385
|
signature: {
|
|
@@ -238,7 +400,7 @@ export declare const common: {
|
|
|
238
400
|
};
|
|
239
401
|
};
|
|
240
402
|
};
|
|
241
|
-
export declare const
|
|
403
|
+
export declare const list: {
|
|
242
404
|
$schema: string;
|
|
243
405
|
$id: string;
|
|
244
406
|
title: string;
|
|
@@ -249,16 +411,28 @@ export declare const fileFull: {
|
|
|
249
411
|
spec: {
|
|
250
412
|
$ref: string;
|
|
251
413
|
};
|
|
252
|
-
form: {
|
|
253
|
-
const: string;
|
|
254
|
-
};
|
|
255
414
|
brand: {
|
|
256
415
|
$ref: string;
|
|
257
416
|
};
|
|
417
|
+
public: {
|
|
418
|
+
type: string;
|
|
419
|
+
};
|
|
258
420
|
issued: {
|
|
259
421
|
$ref: string;
|
|
260
422
|
};
|
|
261
|
-
|
|
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: {
|
|
262
436
|
$ref: string;
|
|
263
437
|
};
|
|
264
438
|
authorizations: {
|
|
@@ -268,12 +442,28 @@ export declare const fileFull: {
|
|
|
268
442
|
};
|
|
269
443
|
};
|
|
270
444
|
signature: {
|
|
271
|
-
description: string;
|
|
272
445
|
$ref: string;
|
|
273
446
|
};
|
|
274
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
|
+
};
|
|
275
465
|
};
|
|
276
|
-
export declare const
|
|
466
|
+
export declare const pointer: {
|
|
277
467
|
$schema: string;
|
|
278
468
|
$id: string;
|
|
279
469
|
title: string;
|
|
@@ -290,12 +480,17 @@ export declare const filePointer: {
|
|
|
290
480
|
brand: {
|
|
291
481
|
$ref: string;
|
|
292
482
|
};
|
|
483
|
+
verify_token: {
|
|
484
|
+
description: string;
|
|
485
|
+
type: string;
|
|
486
|
+
pattern: string;
|
|
487
|
+
};
|
|
293
488
|
list: {
|
|
294
489
|
$ref: string;
|
|
295
490
|
};
|
|
296
491
|
};
|
|
297
492
|
};
|
|
298
|
-
export declare const
|
|
493
|
+
export declare const revocationFeed: {
|
|
299
494
|
$schema: string;
|
|
300
495
|
$id: string;
|
|
301
496
|
title: string;
|
|
@@ -306,40 +501,38 @@ export declare const filePrivate: {
|
|
|
306
501
|
spec: {
|
|
307
502
|
$ref: string;
|
|
308
503
|
};
|
|
309
|
-
|
|
504
|
+
feed: {
|
|
310
505
|
const: string;
|
|
311
506
|
};
|
|
312
|
-
|
|
507
|
+
issued: {
|
|
313
508
|
$ref: string;
|
|
314
509
|
};
|
|
315
|
-
|
|
510
|
+
valid_until: {
|
|
316
511
|
$ref: string;
|
|
317
512
|
};
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
export declare const file: {
|
|
321
|
-
$schema: string;
|
|
322
|
-
$id: string;
|
|
323
|
-
title: string;
|
|
324
|
-
type: string;
|
|
325
|
-
required: string[];
|
|
326
|
-
properties: {
|
|
327
|
-
form: {
|
|
328
|
-
enum: string[];
|
|
513
|
+
stale_until: {
|
|
514
|
+
$ref: string;
|
|
329
515
|
};
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
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
|
+
};
|
|
336
529
|
};
|
|
337
530
|
};
|
|
338
531
|
};
|
|
339
|
-
|
|
532
|
+
signature: {
|
|
340
533
|
$ref: string;
|
|
341
534
|
};
|
|
342
|
-
}
|
|
535
|
+
};
|
|
343
536
|
};
|
|
344
537
|
export declare const verifyRequest: {
|
|
345
538
|
$schema: string;
|
|
@@ -360,9 +553,37 @@ export declare const verifyRequest: {
|
|
|
360
553
|
$ref: string;
|
|
361
554
|
};
|
|
362
555
|
product_line: {
|
|
363
|
-
description: string;
|
|
364
556
|
$ref: string;
|
|
365
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
|
+
};
|
|
366
587
|
};
|
|
367
588
|
};
|
|
368
589
|
export declare const verifyResponse: {
|
|
@@ -382,15 +603,54 @@ export declare const verifyResponse: {
|
|
|
382
603
|
authorization_id: {
|
|
383
604
|
$ref: string;
|
|
384
605
|
};
|
|
606
|
+
revocation_id: {
|
|
607
|
+
$ref: string;
|
|
608
|
+
};
|
|
385
609
|
expires: {
|
|
386
610
|
$ref: string;
|
|
387
611
|
};
|
|
388
612
|
checked: {
|
|
389
613
|
$ref: string;
|
|
390
614
|
};
|
|
615
|
+
as_of: {
|
|
616
|
+
$ref: string;
|
|
617
|
+
};
|
|
391
618
|
valid_until: {
|
|
392
619
|
$ref: string;
|
|
393
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
|
+
};
|
|
394
654
|
observed: {
|
|
395
655
|
description: string;
|
|
396
656
|
oneOf: ({
|
|
@@ -438,81 +698,99 @@ export declare const verifyResponse: {
|
|
|
438
698
|
if: {
|
|
439
699
|
properties: {
|
|
440
700
|
status: {
|
|
441
|
-
|
|
442
|
-
|
|
701
|
+
enum: string[];
|
|
702
|
+
const?: never;
|
|
443
703
|
};
|
|
444
704
|
};
|
|
445
|
-
not?: never;
|
|
446
705
|
};
|
|
447
706
|
then: {
|
|
707
|
+
required: string[];
|
|
708
|
+
properties?: never;
|
|
709
|
+
not?: never;
|
|
710
|
+
};
|
|
711
|
+
else: {
|
|
448
712
|
not: {
|
|
449
713
|
anyOf: {
|
|
450
714
|
required: string[];
|
|
451
715
|
}[];
|
|
716
|
+
required?: never;
|
|
452
717
|
};
|
|
453
718
|
properties?: never;
|
|
454
|
-
required?: never;
|
|
455
719
|
};
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
720
|
+
} | {
|
|
721
|
+
if: {
|
|
722
|
+
properties: {
|
|
723
|
+
status: {
|
|
724
|
+
const: string;
|
|
725
|
+
enum?: never;
|
|
726
|
+
};
|
|
459
727
|
};
|
|
460
728
|
};
|
|
729
|
+
then: {
|
|
730
|
+
required: string[];
|
|
731
|
+
properties?: never;
|
|
732
|
+
not?: never;
|
|
733
|
+
};
|
|
734
|
+
else?: never;
|
|
461
735
|
} | {
|
|
462
736
|
if: {
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
};
|
|
737
|
+
properties: {
|
|
738
|
+
status: {
|
|
739
|
+
const: string;
|
|
740
|
+
enum?: never;
|
|
468
741
|
};
|
|
469
742
|
};
|
|
470
|
-
properties?: never;
|
|
471
743
|
};
|
|
472
744
|
then: {
|
|
745
|
+
required: string[];
|
|
746
|
+
properties?: never;
|
|
747
|
+
not?: never;
|
|
748
|
+
};
|
|
749
|
+
else: {
|
|
473
750
|
properties: {
|
|
474
751
|
observed: {
|
|
475
752
|
const: null;
|
|
476
753
|
};
|
|
477
754
|
};
|
|
478
|
-
not
|
|
479
|
-
|
|
755
|
+
not: {
|
|
756
|
+
required: string[];
|
|
757
|
+
anyOf?: never;
|
|
758
|
+
};
|
|
480
759
|
};
|
|
481
|
-
else?: never;
|
|
482
760
|
} | {
|
|
483
761
|
if: {
|
|
484
762
|
properties: {
|
|
485
763
|
status: {
|
|
486
|
-
|
|
487
|
-
|
|
764
|
+
const: string;
|
|
765
|
+
enum?: never;
|
|
488
766
|
};
|
|
489
767
|
};
|
|
490
|
-
not?: never;
|
|
491
768
|
};
|
|
492
769
|
then: {
|
|
493
|
-
|
|
770
|
+
properties: {
|
|
771
|
+
reason: {
|
|
772
|
+
enum: string[];
|
|
773
|
+
};
|
|
774
|
+
};
|
|
775
|
+
required?: never;
|
|
494
776
|
not?: never;
|
|
495
|
-
properties?: never;
|
|
496
777
|
};
|
|
497
778
|
else?: never;
|
|
498
779
|
} | {
|
|
499
780
|
if: {
|
|
500
781
|
properties: {
|
|
501
782
|
status: {
|
|
502
|
-
|
|
503
|
-
|
|
783
|
+
enum: string[];
|
|
784
|
+
const?: never;
|
|
504
785
|
};
|
|
505
786
|
};
|
|
506
|
-
not?: never;
|
|
507
787
|
};
|
|
508
788
|
then: {
|
|
509
789
|
not: {
|
|
510
|
-
|
|
511
|
-
required: string[];
|
|
512
|
-
}[];
|
|
790
|
+
required: string[];
|
|
513
791
|
};
|
|
514
|
-
properties?: never;
|
|
515
792
|
required?: never;
|
|
793
|
+
properties?: never;
|
|
516
794
|
};
|
|
517
795
|
else?: never;
|
|
518
796
|
})[];
|