-
Notifications
You must be signed in to change notification settings - Fork 5
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
Showing
17 changed files
with
677 additions
and
201 deletions.
There are no files selected for viewing
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
2 changes: 1 addition & 1 deletion
2
...sts/CreateRelationshipAttributeRequest.ts → ...teAndShareRelationshipAttributeRequest.ts
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
4 changes: 4 additions & 0 deletions
4
packages/sdk/src/types/attributes/requests/CreateAttributeRequest.ts
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,4 @@ | ||
import { CreateAndShareRelationshipAttributeRequest } from "./CreateAndShareRelationshipAttributeRequest"; | ||
import { CreateIdentityAttributeRequest } from "./CreateIdentityAttributeRequest"; | ||
|
||
export type CreateAttributeRequest = CreateIdentityAttributeRequest | CreateAndShareRelationshipAttributeRequest; |
4 changes: 4 additions & 0 deletions
4
packages/sdk/src/types/attributes/requests/CreateAttributeResponse.ts
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,4 @@ | ||
import { ConnectorRequest } from "../../requests"; | ||
import { ConnectorAttribute } from "../ConnectorAttribute"; | ||
|
||
export type CreateAttributeResponse = ConnectorAttribute | ConnectorRequest; |
4 changes: 4 additions & 0 deletions
4
packages/sdk/src/types/attributes/requests/ShareAttributeRequest.ts
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,4 @@ | ||
import { NotifyPeerAboutIdentityAttributeSuccessionRequest } from "./NotifyPeerAboutIdentityAttributeSuccessionRequest"; | ||
import { ShareIdentityAttributeRequest } from "./ShareIdentityAttributeRequest"; | ||
|
||
export type ShareAttributeRequest = (ShareIdentityAttributeRequest & { "@type": "Share" }) | (NotifyPeerAboutIdentityAttributeSuccessionRequest & { "@type": "Notify" }); |
4 changes: 4 additions & 0 deletions
4
packages/sdk/src/types/attributes/requests/ShareAttributeResponse.ts
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,4 @@ | ||
import { ConnectorRequest } from "../../requests"; | ||
import { SucceedAttributeResponse } from "./SucceedAttributeResponse"; | ||
|
||
export type ShareIdentityAttributeResponse = SucceedAttributeResponse | ConnectorRequest; |
10 changes: 10 additions & 0 deletions
10
packages/sdk/src/types/attributes/requests/ShareIdentityAttributeRequest.ts
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,10 @@ | ||
export interface ShareIdentityAttributeRequest { | ||
attributeId: string; | ||
peer: string; | ||
requestMetadata?: { | ||
title?: string; | ||
description?: string; | ||
metadata?: Record<string, any>; | ||
expiresAt?: string; | ||
}; | ||
} |
4 changes: 4 additions & 0 deletions
4
packages/sdk/src/types/attributes/requests/SucceedAttributeRequest.ts
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,4 @@ | ||
import { SucceedIdentityAttributeRequest } from "./SucceedIdentityAttributeRequest"; | ||
import { SucceedRelationshipAttributeAndNotifyPeerRequest } from "./SucceedRelationshipAttributeAndNotifyPeerRequest"; | ||
|
||
export type SucceedAttributeRequest = SucceedRelationshipAttributeAndNotifyPeerRequest | SucceedIdentityAttributeRequest; |
6 changes: 6 additions & 0 deletions
6
packages/sdk/src/types/attributes/requests/SucceedAttributeResponse.ts
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,6 @@ | ||
import { ConnectorAttribute } from "../ConnectorAttribute"; | ||
|
||
export interface SucceedAttributeResponse { | ||
predecessor: ConnectorAttribute; | ||
successor: ConnectorAttribute; | ||
} |
2 changes: 1 addition & 1 deletion
2
...ts/SucceedRelationshipAttributeRequest.ts → ...ationshipAttributeAndNotifyPeerRequest.ts
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
Oops, something went wrong.