rtblint-core 0.10.0 → 0.11.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/index.cjs CHANGED
@@ -69,9 +69,11 @@ function validateResponseDialect(input, dialect, version) {
69
69
  * Validate an OpenRTB bid request against an exchange profile.
70
70
  * "spec" (default) is the specification only. "google-ab" is Google
71
71
  * Authorized Buyers OpenRTB: at=3 (FIXED_PRICE) is a valid auction type, and
72
- * each Imp must carry ext.billing_id.
72
+ * each Imp must carry ext.billing_id. "prebid-server" is Prebid Server
73
+ * /openrtb2/auction: each Imp must name a bidder or stored request, and
74
+ * wseat/bseat are refused.
73
75
  * @param {string} input - Raw bid request JSON.
74
- * @param {"spec"|"google-ab"} profile - Exchange profile.
76
+ * @param {"spec"|"google-ab"|"prebid-server"} profile - Exchange profile.
75
77
  * @param {string} [version] - OpenRTB version id (default: latest tracked 2.6 snapshot).
76
78
  */
77
79
  function validateProfile(input, profile, version) {
@@ -81,7 +83,7 @@ function validateProfile(input, profile, version) {
81
83
  /**
82
84
  * Validate an OpenRTB bid response against an exchange profile.
83
85
  * @param {string} input - Raw bid response JSON.
84
- * @param {"spec"|"google-ab"} profile - Exchange profile.
86
+ * @param {"spec"|"google-ab"|"prebid-server"} profile - Exchange profile.
85
87
  * @param {string} [version] - OpenRTB version id (default: latest tracked 2.6 snapshot).
86
88
  */
87
89
  function validateResponseProfile(input, profile, version) {
package/index.d.ts CHANGED
@@ -107,8 +107,10 @@ export function validateResponseDialect(
107
107
  * Exchange profile applied on top of the spec. "spec" is the specification
108
108
  * only. "google-ab" is Google Authorized Buyers OpenRTB: at=3 (FIXED_PRICE)
109
109
  * is a valid auction type, and each Imp must carry ext.billing_id.
110
+ * "prebid-server" is Prebid Server /openrtb2/auction: each Imp must name a
111
+ * bidder or stored request, and wseat/bseat are refused.
110
112
  */
111
- export type Profile = "spec" | "google-ab";
113
+ export type Profile = "spec" | "google-ab" | "prebid-server";
112
114
 
113
115
  /**
114
116
  * Validate an OpenRTB bid request against an exchange profile.
package/index.mjs CHANGED
@@ -70,9 +70,11 @@ export function validateResponseDialect(input, dialect, version) {
70
70
  * Validate an OpenRTB bid request against an exchange profile.
71
71
  * "spec" (default) is the specification only. "google-ab" is Google
72
72
  * Authorized Buyers OpenRTB: at=3 (FIXED_PRICE) is a valid auction type, and
73
- * each Imp must carry ext.billing_id.
73
+ * each Imp must carry ext.billing_id. "prebid-server" is Prebid Server
74
+ * /openrtb2/auction: each Imp must name a bidder or stored request, and
75
+ * wseat/bseat are refused.
74
76
  * @param {string} input - Raw bid request JSON.
75
- * @param {"spec"|"google-ab"} profile - Exchange profile.
77
+ * @param {"spec"|"google-ab"|"prebid-server"} profile - Exchange profile.
76
78
  * @param {string} [version] - OpenRTB version id (default: latest tracked 2.6 snapshot).
77
79
  */
78
80
  export function validateProfile(input, profile, version) {
@@ -82,7 +84,7 @@ export function validateProfile(input, profile, version) {
82
84
  /**
83
85
  * Validate an OpenRTB bid response against an exchange profile.
84
86
  * @param {string} input - Raw bid response JSON.
85
- * @param {"spec"|"google-ab"} profile - Exchange profile.
87
+ * @param {"spec"|"google-ab"|"prebid-server"} profile - Exchange profile.
86
88
  * @param {string} [version] - OpenRTB version id (default: latest tracked 2.6 snapshot).
87
89
  */
88
90
  export function validateResponseProfile(input, profile, version) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rtblint-core",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "description": "OpenRTB linter: validates OpenRTB 2.x bid requests and bid responses against versioned IAB spec snapshots",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Aleks <aleks@vastlint.org>",
@@ -55,7 +55,7 @@ export function validate_dialect(version_id: string, dialect_id: string, input:
55
55
 
56
56
  /**
57
57
  * Validate an OpenRTB bid request against a JSON dialect and an exchange
58
- * profile ("spec" or "google-ab"). Empty profile id means the specification
58
+ * profile ("spec", "google-ab", or "prebid-server"). Empty profile id means the specification
59
59
  * only. Unknown ids are rejected.
60
60
  */
61
61
  export function validate_profile(version_id: string, dialect_id: string, profile_id: string, input: string): any;
@@ -159,7 +159,7 @@ exports.validate_dialect = validate_dialect;
159
159
 
160
160
  /**
161
161
  * Validate an OpenRTB bid request against a JSON dialect and an exchange
162
- * profile ("spec" or "google-ab"). Empty profile id means the specification
162
+ * profile ("spec", "google-ab", or "prebid-server"). Empty profile id means the specification
163
163
  * only. Unknown ids are rejected.
164
164
  * @param {string} version_id
165
165
  * @param {string} dialect_id
Binary file