@nangohq/types 0.69.14 → 0.69.16
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/account/api.d.ts +1 -1
- package/dist/api.endpoints.d.ts +2 -2
- package/dist/plans/http.api.d.ts +3 -2
- package/dist/providers/api.d.ts +28 -0
- package/dist/proxy/api.d.ts +2 -0
- package/dist/runner/sdk.d.ts +2 -0
- package/dist/web/env.d.ts +2 -0
- package/dist/webhooks/api.d.ts +1 -0
- package/package.json +1 -1
package/dist/account/api.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export type ValidateEmailAndLogin = Endpoint<{
|
|
|
24
24
|
Body: {
|
|
25
25
|
token: string;
|
|
26
26
|
};
|
|
27
|
-
Error: ApiError<'error_logging_in'> | ApiError<'error_validating_user'> | ApiError<'token_expired'> | ApiError<'error_refreshing_token'>;
|
|
27
|
+
Error: ApiError<'error_logging_in'> | ApiError<'error_validating_user'> | ApiError<'invalid_token'> | ApiError<'token_expired'> | ApiError<'error_refreshing_token'>;
|
|
28
28
|
Success: {
|
|
29
29
|
user: ApiUser;
|
|
30
30
|
};
|
package/dist/api.endpoints.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ import type { DeleteInvite, GetInvite, PostInvite } from './invitations/api.js';
|
|
|
18
18
|
import type { GetOperation, PostInsights, SearchFilters, SearchMessages, SearchOperations } from './logs/api.js';
|
|
19
19
|
import type { GetMeta } from './meta/api.js';
|
|
20
20
|
import type { PostPlanExtendTrial } from './plans/http.api.js';
|
|
21
|
-
import type { GetPublicProvider, GetPublicProviders } from './providers/api.js';
|
|
21
|
+
import type { GetProvider, GetProviders, GetPublicProvider, GetPublicProviders } from './providers/api.js';
|
|
22
22
|
import type { AllPublicProxy } from './proxy/http.api.js';
|
|
23
23
|
import type { GetPublicRecords } from './record/api.js';
|
|
24
24
|
import type { GetPublicScriptsConfig } from './scripts/http.api.js';
|
|
@@ -28,7 +28,7 @@ import type { DeleteTeamUser, GetTeam, PutTeam } from './team/api.js';
|
|
|
28
28
|
import type { GetUser, PatchUser } from './user/api.js';
|
|
29
29
|
import type { PostPublicWebhook } from './webhooks/http.api.js';
|
|
30
30
|
export type PublicApiEndpoints = SetMetadata | UpdateMetadata | PostDeploy | PostDeployConfirmation | PostPublicTrigger | PostPublicTbaAuthorization | PostPublicJwtAuthorization | PostPublicUnauthenticatedAuthorization | PostPublicApiKeyAuthorization | PostPublicBasicAuthorization | PostPublicAppStoreAuthorization | GetPublicProviders | GetPublicProvider | GetPublicListIntegrations | GetPublicIntegration | DeletePublicIntegration | PostConnectSessions | PostPublicConnectSessionsReconnect | GetPublicConnections | GetPublicConnection | GetConnectSession | DeleteConnectSession | PostDeployInternal | PostPublicBillAuthorization | DeletePublicConnection | PostPublicSignatureAuthorization | PostPublicTwoStepAuthorization | PostPublicWebhook | GetPublicRecords | GetPublicScriptsConfig | PostPublicConnectTelemetry | PutPublicSyncConnectionFrequency | PostPublicIntegration | PatchPublicIntegration | GetAsyncActionResult | PostPublicOauthOutboundAuthorization | PostPublicConnection | PostPublicSyncStart | PostPublicSyncPause | GetPublicSyncStatus | GetPublicV1 | PostPublicTriggerAction | AllPublicProxy;
|
|
31
|
-
export type PrivateApiEndpoints = PostSignup | PostSignin | PostLogout | GetTeam | PutTeam | PostPlanExtendTrial | GetUser | PatchUser | PostInvite | DeleteInvite | DeleteTeamUser | PostInsights | PostForgotPassword | PutResetPassword | SearchOperations | GetOperation | SearchMessages | SearchFilters | PostInternalConnectSessions | GetIntegrationFlows | DeleteIntegration | PatchIntegration | GetIntegration | PostIntegration | GetConnections | GetConnectionsCount | GetConnection | GetInvite | GetMeta | GetEmailByExpiredToken | GetEmailByUuid | GetManagedCallback | PatchFlowDisable | PatchFlowEnable | PatchFlowFrequency | PutUpgradePreBuiltFlow | PostConnectionRefresh | PostManagedSignup | PostPreBuiltDeploy | PostEnvironment | PatchEnvironment | DeleteEnvironment | PatchWebhook | PostEnvironmentVariables | PostImpersonate | GetSharedCredentialsProviders | GetSharedCredentialsProvider | PostSharedCredentialsProvider | PatchSharedCredentialsProvider | GetGettingStarted | PatchGettingStarted | GetConnectUISettings | PutConnectUISettings;
|
|
31
|
+
export type PrivateApiEndpoints = PostSignup | PostSignin | PostLogout | GetTeam | PutTeam | PostPlanExtendTrial | GetUser | PatchUser | PostInvite | DeleteInvite | DeleteTeamUser | PostInsights | PostForgotPassword | PutResetPassword | SearchOperations | GetOperation | SearchMessages | SearchFilters | PostInternalConnectSessions | GetIntegrationFlows | DeleteIntegration | PatchIntegration | GetIntegration | PostIntegration | GetConnections | GetConnectionsCount | GetConnection | GetInvite | GetMeta | GetEmailByExpiredToken | GetEmailByUuid | GetManagedCallback | PatchFlowDisable | PatchFlowEnable | PatchFlowFrequency | PutUpgradePreBuiltFlow | PostConnectionRefresh | PostManagedSignup | PostPreBuiltDeploy | PostEnvironment | PatchEnvironment | DeleteEnvironment | PatchWebhook | PostEnvironmentVariables | PostImpersonate | GetSharedCredentialsProviders | GetSharedCredentialsProvider | PostSharedCredentialsProvider | PatchSharedCredentialsProvider | GetGettingStarted | PatchGettingStarted | GetConnectUISettings | PutConnectUISettings | GetProviders | GetProvider;
|
|
32
32
|
export type APIEndpoints = PrivateApiEndpoints | PublicApiEndpoints;
|
|
33
33
|
/**
|
|
34
34
|
* Automatically narrow endpoints type with Method + Path
|
package/dist/plans/http.api.d.ts
CHANGED
|
@@ -66,12 +66,13 @@ export type GetBillingUsage = Endpoint<{
|
|
|
66
66
|
Path: '/api/v1/plans/billing-usage';
|
|
67
67
|
Querystring: {
|
|
68
68
|
env: string;
|
|
69
|
+
from?: string | undefined;
|
|
70
|
+
to?: string | undefined;
|
|
69
71
|
};
|
|
70
72
|
Success: {
|
|
71
73
|
data: {
|
|
72
74
|
customer: BillingCustomer;
|
|
73
|
-
|
|
74
|
-
previous: ApiBillingUsageMetrics;
|
|
75
|
+
usage: ApiBillingUsageMetrics;
|
|
75
76
|
};
|
|
76
77
|
};
|
|
77
78
|
}>;
|
package/dist/providers/api.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Endpoint } from '../api.js';
|
|
2
2
|
import type { Provider } from './provider.js';
|
|
3
|
+
import type { AuthModeType } from '../auth/api.js';
|
|
3
4
|
export type GetPublicProviders = Endpoint<{
|
|
4
5
|
Method: 'GET';
|
|
5
6
|
Path: `/providers`;
|
|
@@ -27,3 +28,30 @@ export type GetPublicProvider = Endpoint<{
|
|
|
27
28
|
data: ApiProvider;
|
|
28
29
|
};
|
|
29
30
|
}>;
|
|
31
|
+
export interface ApiProviderListItem {
|
|
32
|
+
name: string;
|
|
33
|
+
displayName: string;
|
|
34
|
+
defaultScopes?: string[] | undefined;
|
|
35
|
+
authMode: AuthModeType;
|
|
36
|
+
categories?: string[] | undefined;
|
|
37
|
+
docs: string;
|
|
38
|
+
preConfigured: boolean;
|
|
39
|
+
preConfiguredScopes: string[];
|
|
40
|
+
}
|
|
41
|
+
export type GetProviders = Endpoint<{
|
|
42
|
+
Method: 'GET';
|
|
43
|
+
Path: '/api/v1/providers';
|
|
44
|
+
Success: {
|
|
45
|
+
data: ApiProviderListItem[];
|
|
46
|
+
};
|
|
47
|
+
}>;
|
|
48
|
+
export type GetProvider = Endpoint<{
|
|
49
|
+
Method: 'GET';
|
|
50
|
+
Path: '/api/v1/providers/:providerConfigKey';
|
|
51
|
+
Params: {
|
|
52
|
+
providerConfigKey: string;
|
|
53
|
+
};
|
|
54
|
+
Success: {
|
|
55
|
+
data: ApiProviderListItem;
|
|
56
|
+
};
|
|
57
|
+
}>;
|
package/dist/proxy/api.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { DBConnectionDecrypted } from '../connection/db.js';
|
|
2
|
+
import type { DBIntegrationDecrypted } from '../integration/db.js';
|
|
2
3
|
import type { HTTP_METHOD } from '../nangoYaml/index.js';
|
|
3
4
|
import type { Provider } from '../providers/provider.js';
|
|
4
5
|
import type { AxiosResponse } from 'axios';
|
|
@@ -32,6 +33,7 @@ export interface UserProvidedProxyConfiguration extends BaseProxyConfiguration {
|
|
|
32
33
|
paginate?: Partial<CursorPagination> | Partial<LinkPagination> | Partial<OffsetPagination>;
|
|
33
34
|
}
|
|
34
35
|
export type ConnectionForProxy = Pick<DBConnectionDecrypted, 'connection_id' | 'connection_config' | 'credentials' | 'metadata'>;
|
|
36
|
+
export type IntegrationConfigForProxy = Pick<DBIntegrationDecrypted, 'oauth_client_id' | 'oauth_client_secret'>;
|
|
35
37
|
export interface ApplicationConstructedProxyConfiguration extends BaseProxyConfiguration {
|
|
36
38
|
decompress: boolean;
|
|
37
39
|
method: HTTP_METHOD;
|
package/dist/runner/sdk.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { RunnerFlags } from './index.js';
|
|
2
2
|
import type { LogLevel } from '../logs/messages.js';
|
|
3
|
+
import type { IntegrationConfigForProxy } from '../proxy/api.js';
|
|
3
4
|
import type { DBSyncConfig } from '../syncConfigs/db.js';
|
|
4
5
|
import type { DBTeam } from '../team/db.js';
|
|
5
6
|
import type { AxiosError, AxiosInterceptorManager, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
@@ -40,6 +41,7 @@ export interface NangoProps {
|
|
|
40
41
|
} | null;
|
|
41
42
|
heartbeatTimeoutSecs?: number | undefined;
|
|
42
43
|
isCLI?: boolean | undefined;
|
|
44
|
+
integrationConfig?: IntegrationConfigForProxy;
|
|
43
45
|
axios?: {
|
|
44
46
|
request?: AxiosInterceptorManager<AxiosRequestConfig>;
|
|
45
47
|
response?: {
|
package/dist/web/env.d.ts
CHANGED
package/dist/webhooks/api.d.ts
CHANGED