@nangohq/types 0.71.12 → 0.71.14
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/acquisition.d.ts +10 -0
- package/dist/account/api.d.ts +4 -1
- package/dist/account/signupAdvertising.d.ts +8 -0
- package/dist/action/api.d.ts +5 -5
- package/dist/agent/api.d.ts +11 -9
- package/dist/agent/playground.api.d.ts +30 -1
- package/dist/agent/session.d.ts +10 -0
- package/dist/agent/toolset.d.ts +9 -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 +1 -1
- package/dist/api.endpoints.d.ts +6 -5
- package/dist/audit-trail/event.d.ts +4 -1
- package/dist/audit-trail/metadata.d.ts +8 -0
- package/dist/billing/types.d.ts +3 -1
- package/dist/environment/api/index.d.ts +83 -1
- package/dist/flow/http.api.d.ts +1 -1
- package/dist/function/config.d.ts +1 -0
- package/dist/function/db.d.ts +2 -1
- package/dist/function/tool.d.ts +5 -0
- package/dist/functions/api.d.ts +98 -5
- package/dist/functions/domain.d.ts +17 -2
- package/dist/index.d.ts +6 -0
- package/dist/integration/api.d.ts +11 -11
- package/dist/internal-auth.d.ts +5 -0
- package/dist/meta/api.d.ts +5 -1
- package/dist/plans/db.d.ts +2 -0
- package/dist/plans/http.api.d.ts +5 -1
- package/dist/providers/provider.d.ts +3 -0
- package/dist/team/api.d.ts +1 -1
- package/dist/team/db.d.ts +1 -0
- package/dist/web/env.d.ts +1 -0
- package/dist/webhooks/dispatch.d.ts +1 -2
- package/package.json +3 -2
package/dist/meta/api.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
+
import type { SignupAcquisition } from '../account/acquisition.js';
|
|
1
2
|
import type { ApiEndpoint, ApiError } from '../api.js';
|
|
2
3
|
import type { DBEnvironment } from '../environment/db.js';
|
|
3
4
|
export type ApiEnvironmentSummary = Pick<DBEnvironment, 'id' | 'account_id' | 'name' | 'is_production'>;
|
|
4
|
-
export type AccountGroupProperties = {
|
|
5
|
+
export type AccountGroupProperties = SignupAcquisition & {
|
|
5
6
|
name?: string;
|
|
6
7
|
plan?: string;
|
|
7
8
|
created_date?: string;
|
|
8
9
|
is_internal?: boolean;
|
|
10
|
+
discovery_source?: string;
|
|
9
11
|
};
|
|
10
12
|
export type GetMeta = ApiEndpoint<{
|
|
11
13
|
Audit: {
|
|
@@ -26,8 +28,10 @@ export type GetMeta = ApiEndpoint<{
|
|
|
26
28
|
debugMode: boolean;
|
|
27
29
|
gettingStartedClosed: boolean;
|
|
28
30
|
auditTrail: boolean;
|
|
31
|
+
toolsCatalog: boolean;
|
|
29
32
|
accountGroup: AccountGroupProperties;
|
|
30
33
|
agentPlayground: boolean;
|
|
34
|
+
hasBaa: boolean;
|
|
31
35
|
};
|
|
32
36
|
};
|
|
33
37
|
}>;
|
package/dist/plans/db.d.ts
CHANGED
package/dist/plans/http.api.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ApiEndpoint } from '../api.js';
|
|
1
|
+
import type { ApiEndpoint, ApiError } from '../api.js';
|
|
2
2
|
import type { AuditPolicy } from '../audit-trail/event.js';
|
|
3
3
|
import type { ApiBillingUsageMetrics, BillingCustomer, BillingInvoicingDetails, BreakdownDimensions } from '../billing/types.js';
|
|
4
4
|
import type { MetricUsageSummary, UsageMetric } from '../usage/index.js';
|
|
@@ -248,6 +248,8 @@ export type GetSpendAlert = ApiEndpoint<{
|
|
|
248
248
|
* or no Orb subscription yet; otherwise set even when the threshold is null.
|
|
249
249
|
*/
|
|
250
250
|
currency: string | null;
|
|
251
|
+
/** A threshold has to be above this. Null when the plan gets no spend alerts. */
|
|
252
|
+
floorInCents: number | null;
|
|
251
253
|
};
|
|
252
254
|
};
|
|
253
255
|
}>;
|
|
@@ -261,6 +263,7 @@ export type PutSpendAlert = ApiEndpoint<{
|
|
|
261
263
|
Body: {
|
|
262
264
|
thresholdInCents: number;
|
|
263
265
|
};
|
|
266
|
+
Error: ApiError<'threshold_below_floor'>;
|
|
264
267
|
Success: {
|
|
265
268
|
data: {
|
|
266
269
|
thresholdInCents: number;
|
|
@@ -310,3 +313,4 @@ export type PostPlanChange = ApiEndpoint<{
|
|
|
310
313
|
};
|
|
311
314
|
};
|
|
312
315
|
}>;
|
|
316
|
+
export type GrowthAddonState = 'none' | 'active' | 'pending-removal' | 'pending-activation';
|
|
@@ -83,10 +83,12 @@ export interface BaseProvider {
|
|
|
83
83
|
authorization_code_param_in_webhook?: string;
|
|
84
84
|
docs: string;
|
|
85
85
|
docs_connect?: string;
|
|
86
|
+
mcp_endpoint?: string;
|
|
86
87
|
setup_guide_url?: string;
|
|
87
88
|
token_expiration_buffer?: number;
|
|
88
89
|
webhook_routing_script?: string;
|
|
89
90
|
webhook_user_defined_secret?: boolean;
|
|
91
|
+
webhook_signature_enforced?: boolean;
|
|
90
92
|
webhook_allowed_query_params?: string[];
|
|
91
93
|
post_connection_script?: string;
|
|
92
94
|
pre_connection_deletion_script?: string;
|
|
@@ -100,6 +102,7 @@ export interface BaseProvider {
|
|
|
100
102
|
authorization_url_fragment?: string;
|
|
101
103
|
body_format?: OAuthBodyFormatType;
|
|
102
104
|
require_client_certificate?: boolean;
|
|
105
|
+
allow_unverified_https?: boolean;
|
|
103
106
|
token_request_auth_method?: 'basic' | 'custom' | 'private_key_jwt';
|
|
104
107
|
available_scopes?: string[];
|
|
105
108
|
}
|
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/dist/web/env.d.ts
CHANGED
|
@@ -34,10 +34,9 @@ export interface LegacyDispatchMessage extends DispatchMessageBase {
|
|
|
34
34
|
}
|
|
35
35
|
export interface FunctionDispatchMessage extends DispatchMessageBase {
|
|
36
36
|
kind: 'function';
|
|
37
|
-
|
|
37
|
+
functionUuid: string;
|
|
38
38
|
/** Deterministic key used to deduplicate queue redeliveries. */
|
|
39
39
|
idempotencyKey: string;
|
|
40
|
-
functionName: string;
|
|
41
40
|
trigger: Omit<Extract<FunctionTrigger, {
|
|
42
41
|
kind: 'http';
|
|
43
42
|
}>, 'request' | 'connection'> & {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nangohq/types",
|
|
3
|
-
"version": "0.71.
|
|
3
|
+
"version": "0.71.14",
|
|
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"
|