Skip to content

Commit

Permalink
[Release 3.0.4] Inline documentation enriched.
Browse files Browse the repository at this point in the history
  • Loading branch information
UnumID Admin committed Jun 9, 2021
1 parent 8cc52d8 commit f12787c
Show file tree
Hide file tree
Showing 49 changed files with 470 additions and 295 deletions.
24 changes: 21 additions & 3 deletions build/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,6 @@ export interface HolderApp {
*/
export declare type VersionedDto<N extends string, T = any> = {
[n in N]: {
/**
* The version will be the key for the type T.
*/
[version: string]: T;
};
};
Expand Down Expand Up @@ -400,14 +397,26 @@ export declare type PushProvider = typeof pushProviders[number];
*/
export interface PushToken {
value: string;
/**
* If not included, the SaaS will attempt to determine the provider based on the token value.
*/
provider?: PushProvider;
}
/**
* Interface encapsulating options for sending push notifications via the SaaS.
*/
export interface PushNotificationOptions {
/**
* The deep link to be sent as a push notification.
*/
deeplink: string;
/**
* PushToken(s) identifying the app + provider a notification should be sent to.
*/
token: PushToken | PushToken[];
/**
* The holder app to send the notification to.
*/
holderAppUuid: string;
}
/**
Expand All @@ -424,6 +433,9 @@ export declare const _CredentialStatusOptions: Union<[Literal<"valid">, Literal<
* Thanks to created a templated message from the deeplink's presentation request uuid and in turn the corresponding verifier, no custom message content needed.
*/
export interface ExternalChannelMessageInput {
/**
* Email address or phone number.
*/
to: string;
deeplink: string;
}
Expand All @@ -436,6 +448,12 @@ export interface VerificationResponse {
type: 'VerifiablePresentation' | 'DeclinedPresentation';
presentationReceiptInfo: PresentationReceiptInfo;
}
/**
* Helper which adds a named key with a specific value type to an existing type.
*/
export declare type WithKeyAndValue<T, K extends string, V> = T & Record<K, V>;
/**
* Helper type which adds a version string.
*/
export declare type WithVersion<T> = WithKeyAndValue<T, 'version', string>;
//# sourceMappingURL=index.d.ts.map
2 changes: 1 addition & 1 deletion build/index.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ <h2>Naming Conventions</h2>
<a href="#documentation" id="documentation" style="color: inherit; text-decoration: none;">
<h2>Documentation</h2>
</a>
<p>Detailed documentation generated from source can be found <a href="https://docs.unum.id/types/index.html">here</a> which is served by this repo&#39;s Github Pages configuration. It is setup to server via the /docs folder of the main branch.</p>
<p>Detailed documentation generated from source can be found <a href="https://docs.unum.id/types/index.html">here</a> which is served by this <a href="https://github.com/UnumID/types">repo</a>&#39;s Github Pages configuration. It is setup to server via the /docs folder of the main branch.</p>
<p>In order to generate the documentation from the source code run the <code>createTypedocs.sh</code> script.</p>
</div>
</div>
Expand Down
Loading

0 comments on commit f12787c

Please sign in to comment.