forked from vmihalev/addressable-network-proposals
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aca9ce4
commit 40b954a
Showing
98 changed files
with
3,902 additions
and
566 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"title": "Error", | ||
"description": "The description of an error", | ||
"$id": "error", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"message": { | ||
"type": "string", | ||
"description": "The error message" | ||
} | ||
}, | ||
"required": [ | ||
"message" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "get-3pc-request", | ||
"title": "GET /v1/3pc request", | ||
"type": "null", | ||
"additionalProperties": false, | ||
"description": "No parameter expected to call this endpoint" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "get-3pc-response", | ||
"title": "GET /v1/3pc response", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"3pc": { | ||
"$ref": "test-3pc.json", | ||
"description": "Value of `paf_test_3pc` if it was found (3rd party cookies are supported)\n\nIf 3rd party cookies are not supported, the endpoint returns `404` and an error message" | ||
} | ||
}, | ||
"required": [ | ||
"3pc" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "get-identity-request", | ||
"title": "GET /v1/identity request", | ||
"type": "null", | ||
"additionalProperties": false, | ||
"description": "No parameter expected to call this endpoint" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "get-identity-response", | ||
"title": "GET /v1/identity response", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"description": "The name of the contracting party, since the domain may not reflect the company name.\n", | ||
"examples": ["Criteo"] | ||
}, | ||
"type": { | ||
"type": "string", | ||
"enum": ["vendor", "operator"], | ||
"description": "The type of contracting party in the PAF ecosystem" | ||
}, | ||
"version": { | ||
"$ref": "version.json", | ||
"description": "The type of contracting party in the PAF ecosystem" | ||
}, | ||
"keys": { | ||
"type": "array", | ||
"description": "List of public keys the contracting party used or is using for signing data and messages", | ||
"items": { | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"key": { | ||
"type": "string", | ||
"description": "Public key string value", | ||
"examples": [ | ||
"-----BEGIN PUBLIC KEY-----\nMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEUnarwp0gUZgjb9fsYNLcNrddNKV5\nh4/WfMRMVh3HIqojt3LIsvUQig1rm9ZkcNx+IHZVhDM+hso2sXlGjF9xOQ==\n-----END PUBLIC KEY-----" | ||
] | ||
}, | ||
"start": { | ||
"$ref": "timestamp.json", | ||
"description": "Timestamp when the contracting party started using this key for signing" | ||
}, | ||
"end": { | ||
"$ref": "timestamp.json", | ||
"description": "Timestamp when the contracting party stopped using this key for signing" | ||
} | ||
}, | ||
"required": [ | ||
"key", | ||
"start" | ||
] | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"name", | ||
"type", | ||
"version", | ||
"keys" | ||
] | ||
} |
4 changes: 2 additions & 2 deletions
4
...ec/json-schemas/get-id-prefs-request.json → ...c/json-schemas/get-ids-prefs-request.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "get-ids-prefs-response", | ||
"title": "GET /v1/ids-prefs response", | ||
"additionalProperties": false, | ||
"properties": { | ||
"sender": { | ||
"$ref": "domain.json", | ||
"description": "The domain name of the sender of this response (the operator domain name)" | ||
}, | ||
"receiver": { | ||
"$ref": "domain.json", | ||
"description": "The domain name of the receiver of this request (the website)" | ||
}, | ||
"timestamp": { | ||
"$ref": "timestamp.json" | ||
}, | ||
"signature": { | ||
"$ref": "signature.json", | ||
"description": "Signature based on input:\n```\nsender + '\\u2063' +\nreceiver + '\\u2063' +\ntimestamp + '\\u2063' +\npreferences.source.signature + '\\u2063' +\nidentifiers[0].source.signature + '\\u2063' +\nidentifiers[1].source.signature + '\\u2063' +\n...\nidentifiers[n].source.signature\n```" | ||
}, | ||
"body": { | ||
"$ref": "ids-and-optional-preferences.json" | ||
} | ||
}, | ||
"required": [ | ||
"sender", | ||
"receiver", | ||
"timestamp", | ||
"signature", | ||
"body" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"title": "List of identifiers", | ||
"$id": "identifiers", | ||
"type": "array", | ||
"additionalProperties": false, | ||
"items": { | ||
"$ref": "identifier.json", | ||
"description": "Signature based on input **that depends on the identifiers**:\n\n```identifier.source.domain + '\\u2063' + \nidentifier.source.timestamp + '\\u2063' + \nidentifier.type + '\\u2063'+\nidentifier.value\n```" | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...-schemas/id-and-optional-preferences.json → ...schemas/ids-and-optional-preferences.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "redirect-get-ids-prefs-request", | ||
"title": "GET /v1/redirect/get-ids-prefs request", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"returnUrl": { | ||
"$ref": "return-url.json" | ||
}, | ||
"request": { | ||
"$ref": "get-ids-prefs-request.json" | ||
} | ||
}, | ||
"required": [ | ||
"returnUrl", | ||
"request" | ||
] | ||
} |
Oops, something went wrong.