@nangohq/types 0.67.3 → 0.67.5
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/connect/api.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Endpoint } from '../api.js';
|
|
2
2
|
import type { ConnectUISettings } from '../connectUISettings/dto.js';
|
|
3
|
+
import type { ApiEndUser } from '../endUser/index.js';
|
|
3
4
|
export interface ConnectSessionInput {
|
|
4
5
|
allowed_integrations?: string[] | undefined;
|
|
5
6
|
integrations_config_defaults?: Record<string, {
|
|
@@ -25,7 +26,8 @@ export interface EndUserInput {
|
|
|
25
26
|
display_name?: string | undefined;
|
|
26
27
|
tags?: Record<string, string> | undefined;
|
|
27
28
|
}
|
|
28
|
-
export type ConnectSessionOutput = ConnectSessionInput & {
|
|
29
|
+
export type ConnectSessionOutput = Omit<ConnectSessionInput, 'end_user' | 'organization'> & {
|
|
30
|
+
endUser: ApiEndUser;
|
|
29
31
|
isReconnecting?: boolean;
|
|
30
32
|
connectUISettings: ConnectUISettings;
|
|
31
33
|
};
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
import type { InternalEndUser } from '../endUser/index.js';
|
|
1
2
|
export interface ConnectSession {
|
|
2
3
|
readonly id: number;
|
|
3
|
-
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated use endUser instead
|
|
6
|
+
*/
|
|
7
|
+
readonly endUserId: number | null;
|
|
4
8
|
readonly accountId: number;
|
|
5
9
|
readonly environmentId: number;
|
|
6
10
|
readonly connectionId: number | null;
|
|
@@ -8,6 +12,7 @@ export interface ConnectSession {
|
|
|
8
12
|
readonly allowedIntegrations: string[] | null;
|
|
9
13
|
readonly integrationsConfigDefaults: Record<string, ConnectSessionIntegrationConfigDefaults> | null;
|
|
10
14
|
readonly overrides: Record<string, ConnectSessionOverrides> | null;
|
|
15
|
+
readonly endUser: InternalEndUser | null;
|
|
11
16
|
readonly createdAt: Date;
|
|
12
17
|
readonly updatedAt: Date | null;
|
|
13
18
|
}
|
|
@@ -130,6 +130,7 @@ export type GetPublicConnection = Endpoint<{
|
|
|
130
130
|
provider_config_key: string;
|
|
131
131
|
refresh_token?: boolean | undefined;
|
|
132
132
|
force_refresh?: boolean | undefined;
|
|
133
|
+
refresh_github_app_jwt_token?: boolean | undefined;
|
|
133
134
|
};
|
|
134
135
|
Path: '/connection/:connectionId';
|
|
135
136
|
Error: ApiError<'unknown_provider_config' | 'invalid_credentials'>;
|
package/dist/connection/db.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AllAuthCredentials, AuthModeType, AuthOperationType } from '../auth/api.js';
|
|
2
2
|
import type { TimestampsAndDeletedCorrect } from '../db.js';
|
|
3
|
-
import type {
|
|
3
|
+
import type { InternalEndUser } from '../endUser/index.js';
|
|
4
4
|
import type { DBEnvironment } from '../environment/db.js';
|
|
5
5
|
import type { DBTeam } from '../team/db.js';
|
|
6
6
|
import type { ReplaceInObject } from '../utils.js';
|
|
@@ -47,7 +47,7 @@ export interface RecentlyCreatedConnection {
|
|
|
47
47
|
operation: AuthOperationType;
|
|
48
48
|
environment: DBEnvironment;
|
|
49
49
|
account: DBTeam;
|
|
50
|
-
endUser:
|
|
50
|
+
endUser: InternalEndUser | null | undefined;
|
|
51
51
|
}
|
|
52
52
|
export interface FailedConnectionError {
|
|
53
53
|
type: string;
|
package/dist/endUser/index.d.ts
CHANGED