Skip to content

Commit

Permalink
fix: inline documentation for identities/Provider
Browse files Browse the repository at this point in the history
  • Loading branch information
amydevs committed May 13, 2024
1 parent d8f40a9 commit f90af5d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/identities/Provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ abstract class Provider {
): Promise<IdentitySignedClaim | undefined>;

/**
* Stream pages of identity claimIds from an identity
* Stream a page of identity claimIds from an identity
*/
public abstract getClaimIdsPage(
authIdentityId: IdentityId,
Expand Down Expand Up @@ -226,7 +226,7 @@ abstract class Provider {
}

/**
* Stream identity claims from an identity
* Stream a page of identity claims from an identity
*/
public async *getClaimsPage(
authIdentityId: IdentityId,
Expand Down Expand Up @@ -254,7 +254,7 @@ abstract class Provider {
}

/**
* Stream pages of identity claims from an identity
* Stream identity claims from an identity
*/
public async *getClaims(
authIdentityId: IdentityId,
Expand Down
6 changes: 4 additions & 2 deletions src/identities/providers/github/GitHubProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,8 @@ class GitHubProvider extends Provider {
}

/**
* Gets all ProviderIdentityClaimIds from a given identity.
* Gets a page of ProviderIdentityClaimIds from a given identity
* sorted by latest.
*/
public async *getClaimIdsPage(
_authIdentityId: IdentityId,
Expand Down Expand Up @@ -562,7 +563,8 @@ class GitHubProvider extends Provider {
}

/**
* Gets all IdentitySignedClaims from a given identity.
* Gets all IdentitySignedClaims from a given identity
* sorted by latest.
*/
public async *getClaimsPage(
_authIdentityId: IdentityId,
Expand Down
6 changes: 6 additions & 0 deletions src/identities/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ type ProviderAuthenticateRequest = {
data: POJO;
};

/**
* Generic opaque string used to represent a pagination token
* when making requests using an identity Provider.
* Do not expect this string to have any particular meaning
* outside of the Provider subclass it is used for.
*/
type ProviderPaginationToken = Opaque<'ProviderPaginationToken', string>;

export type {
Expand Down

0 comments on commit f90af5d

Please sign in to comment.