@nangohq/types 0.71.13 → 0.72.0
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/account/signupAdvertising.d.ts +8 -0
- package/dist/action/api.d.ts +5 -5
- package/dist/agent/playground.api.d.ts +22 -2
- package/dist/agent/session.d.ts +10 -0
- package/dist/analytics/catalogue.d.ts +700 -0
- package/dist/analytics/catalogue.unit.test.d.ts +1 -0
- package/dist/analytics/taxonomy.d.ts +72 -0
- package/dist/api-keys/scopes.d.ts +2 -2
- package/dist/api.endpoints.d.ts +6 -5
- package/dist/environment/api/index.d.ts +84 -1
- package/dist/function/config.d.ts +2 -1
- package/dist/function/db.d.ts +2 -1
- package/dist/function/tool.d.ts +20 -0
- package/dist/functions/api.d.ts +78 -8
- package/dist/functions/domain.d.ts +17 -2
- package/dist/index.d.ts +5 -0
- package/dist/integration/api.d.ts +18 -28
- package/dist/meta/api.d.ts +1 -0
- package/dist/plans/http.api.d.ts +1 -0
- package/dist/proxy/api.d.ts +9 -1
- package/dist/self-hosting/db.d.ts +44 -0
- package/dist/team/api.d.ts +1 -1
- package/dist/team/db.d.ts +1 -0
- package/package.json +3 -2
package/dist/proxy/api.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ApiKeyPrincipal } from '../api-keys/auth.js';
|
|
1
2
|
import type { AllAuthCredentials } from '../auth/api.js';
|
|
2
3
|
import type { DBConnectionDecrypted } from '../connection/db.js';
|
|
3
4
|
import type { DBIntegrationDecrypted } from '../integration/db.js';
|
|
@@ -53,7 +54,7 @@ export type ConnectionForProxy = Pick<DBConnectionDecrypted, 'connection_id' | '
|
|
|
53
54
|
credentials: AllAuthCredentials;
|
|
54
55
|
};
|
|
55
56
|
export type IntegrationConfigForProxy = Pick<DBIntegrationDecrypted, 'oauth_client_id' | 'oauth_client_secret' | 'custom'>;
|
|
56
|
-
export interface ApplicationConstructedProxyConfiguration extends BaseProxyConfiguration {
|
|
57
|
+
export interface ApplicationConstructedProxyConfiguration extends BaseProxyConfiguration, InternalProxyConfiguration {
|
|
57
58
|
decompress: boolean;
|
|
58
59
|
method: HTTP_METHOD;
|
|
59
60
|
providerName: string;
|
|
@@ -62,6 +63,13 @@ export interface ApplicationConstructedProxyConfiguration extends BaseProxyConfi
|
|
|
62
63
|
export type ResponseType = 'arraybuffer' | 'blob' | 'document' | 'json' | 'text' | 'stream';
|
|
63
64
|
export interface InternalProxyConfiguration {
|
|
64
65
|
providerName: string;
|
|
66
|
+
/** Only set for customer API/MCP proxy requests or calls from deployed code. */
|
|
67
|
+
monitoringContext?: {
|
|
68
|
+
accountId: number;
|
|
69
|
+
environmentId: number;
|
|
70
|
+
apiKey?: ApiKeyPrincipal | undefined;
|
|
71
|
+
callsite: 'proxy' | 'sdk';
|
|
72
|
+
};
|
|
65
73
|
}
|
|
66
74
|
export interface RetryHeaderConfig {
|
|
67
75
|
at?: string[] | string;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { Timestamps } from '../db.js';
|
|
2
|
+
export type SelfHostingInstallationMode = 'byoc' | 'self_managed';
|
|
3
|
+
export type SelfHostingInstallationStage = 'production' | 'staging' | 'development';
|
|
4
|
+
export type SelfHostingInstallationAlerts = 'off' | 'slack' | 'oncall';
|
|
5
|
+
export interface DBSelfHostingCustomer extends Timestamps {
|
|
6
|
+
id: number;
|
|
7
|
+
name: string;
|
|
8
|
+
deleted_at: Date | null;
|
|
9
|
+
}
|
|
10
|
+
export interface DBSelfHostingInstallation extends Timestamps {
|
|
11
|
+
id: number;
|
|
12
|
+
/** The only identity that leaves the registry: in the license, the tokens and the export files. */
|
|
13
|
+
uuid: string;
|
|
14
|
+
customer_id: number;
|
|
15
|
+
name: string;
|
|
16
|
+
mode: SelfHostingInstallationMode;
|
|
17
|
+
stage: SelfHostingInstallationStage;
|
|
18
|
+
telemetry: boolean;
|
|
19
|
+
alerts: SelfHostingInstallationAlerts;
|
|
20
|
+
deleted_at: Date | null;
|
|
21
|
+
last_seen_at: Date | null;
|
|
22
|
+
}
|
|
23
|
+
export interface DBSelfHostingInstallationKey {
|
|
24
|
+
id: number;
|
|
25
|
+
installation_id: number;
|
|
26
|
+
kid: string;
|
|
27
|
+
public_key: string;
|
|
28
|
+
created_at: Date;
|
|
29
|
+
/** Set on rotation; the key still verifies files it signed until it is pruned. */
|
|
30
|
+
deleted_at: Date | null;
|
|
31
|
+
}
|
|
32
|
+
export interface DBSelfHostingInstallationLicense {
|
|
33
|
+
id: number;
|
|
34
|
+
installation_id: number;
|
|
35
|
+
issued_at: Date;
|
|
36
|
+
expires_at: Date;
|
|
37
|
+
grace_until: Date;
|
|
38
|
+
/** The exact signed text, so the signature can be re-verified from the row. */
|
|
39
|
+
license: string;
|
|
40
|
+
signature: string;
|
|
41
|
+
signing_kid: string;
|
|
42
|
+
active: boolean;
|
|
43
|
+
created_at: Date;
|
|
44
|
+
}
|
package/dist/team/api.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ export interface ApiTeamUser extends ApiUser {
|
|
|
28
28
|
mfaEnabled: boolean;
|
|
29
29
|
}
|
|
30
30
|
export type ApiInvitation = Merge<Omit<DBInvitation, 'token'>, ApiTimestamps>;
|
|
31
|
-
export type ApiTeam = Merge<DBTeam, ApiTimestamps>;
|
|
31
|
+
export type ApiTeam = Merge<Omit<DBTeam, 'has_baa'>, ApiTimestamps>;
|
|
32
32
|
export type PutTeam = ApiEndpoint<{
|
|
33
33
|
Audit: AuditPolicy<'team', 'updated', 'account'>;
|
|
34
34
|
Method: 'PUT';
|
package/dist/team/db.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nangohq/types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.72.0",
|
|
4
4
|
"description": "Types used in Nango applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"axios": "1.20.0",
|
|
16
16
|
"json-schema": "0.4.0",
|
|
17
|
-
"type-fest": "4.41.0"
|
|
17
|
+
"type-fest": "4.41.0",
|
|
18
|
+
"zod": "4.6.7"
|
|
18
19
|
},
|
|
19
20
|
"devDependencies": {
|
|
20
21
|
"@types/json-schema": "7.0.15"
|