@nangohq/types 0.42.12 → 0.42.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -0
- package/dist/keystore/index.d.ts +15 -0
- package/dist/providers/provider.d.ts +2 -1
- package/dist/web/env.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export type * from './onboarding/api.js';
|
|
|
6
6
|
export type * from './record/api.js';
|
|
7
7
|
export type * from './logs/api.js';
|
|
8
8
|
export type * from './logs/messages.js';
|
|
9
|
+
export type * from './keystore/index.js';
|
|
9
10
|
export type * from './account/api.js';
|
|
10
11
|
export type * from './user/api.js';
|
|
11
12
|
export type * from './user/db.js';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
export type EntityType = 'session' | 'connection' | 'environment';
|
|
3
|
+
export interface PrivateKey {
|
|
4
|
+
readonly id: number;
|
|
5
|
+
readonly displayName: string;
|
|
6
|
+
readonly environmentId: number;
|
|
7
|
+
readonly accountId: number;
|
|
8
|
+
readonly encrypted: Buffer | null;
|
|
9
|
+
readonly hash: string;
|
|
10
|
+
readonly createdAt: Date;
|
|
11
|
+
readonly expiresAt: Date | null;
|
|
12
|
+
readonly lastAccessAt: Date | null;
|
|
13
|
+
readonly entityType: EntityType;
|
|
14
|
+
readonly entityId: number;
|
|
15
|
+
}
|
|
@@ -19,6 +19,7 @@ export interface ProviderAlias {
|
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
export interface BaseProvider {
|
|
22
|
+
display_name: string;
|
|
22
23
|
auth_mode: AuthModeType;
|
|
23
24
|
proxy?: {
|
|
24
25
|
base_url: string;
|
|
@@ -47,7 +48,7 @@ export interface BaseProvider {
|
|
|
47
48
|
authorization_url_replacements?: Record<string, string>;
|
|
48
49
|
redirect_uri_metadata?: string[];
|
|
49
50
|
token_response_metadata?: string[];
|
|
50
|
-
docs
|
|
51
|
+
docs: string;
|
|
51
52
|
token_expiration_buffer?: number;
|
|
52
53
|
webhook_routing_script?: string;
|
|
53
54
|
webhook_user_defined_secret?: boolean;
|
package/dist/web/env.d.ts
CHANGED