Skip to content

Commit 0d513ab

Browse files
authored
feat: Update profile URL handling (#238)
* feat: Update profile URL handling * chore: changelog
1 parent a2115a9 commit 0d513ab

File tree

4 files changed

+22
-3
lines changed

4 files changed

+22
-3
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "c2pa-wc",
5+
"comment": "Display profile URLs correctly",
6+
"type": "patch"
7+
}
8+
],
9+
"packageName": "c2pa-wc"
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "c2pa",
5+
"comment": "Update CAWG types",
6+
"type": "patch"
7+
}
8+
],
9+
"packageName": "c2pa"
10+
}

packages/c2pa-wc/src/getManifestSummaryData.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ function getNameAndVerifier(
105105
name: verifiedName.name,
106106
nameVerifier: {
107107
name: verifiedName.provider.name,
108-
profileUrl: verifiedName.profileUrl ?? null,
108+
profileUrl: verifiedName.uri ?? null,
109109
},
110110
};
111111
}

packages/c2pa/src/lib/cawg.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,17 @@ export interface CredentialSchema {
3232
interface VerifiedIdentityBase {
3333
verifiedAt: string;
3434
provider: Provider;
35+
uri: string;
3536
}
3637

3738
interface VerifiedIdentitySocial extends VerifiedIdentityBase {
3839
type: 'cawg.social_media';
3940
username: string;
40-
uri: string;
4141
}
4242

4343
interface VerifiedIdentityName extends VerifiedIdentityBase {
4444
type: 'cawg.document_verification';
4545
name: string;
46-
profileUrl?: string;
4746
}
4847

4948
export type VerifiedIdentity = VerifiedIdentitySocial | VerifiedIdentityName;

0 commit comments

Comments
 (0)