@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.
@@ -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
  }>;
@@ -149,6 +149,8 @@ export interface DBPlan extends Timestamps {
149
149
  * @default false
150
150
  */
151
151
  can_disable_connect_ui_watermark: boolean;
152
+ /** @default true */
153
+ has_overdue_invoices_banner: boolean;
152
154
  /**
153
155
  * Sync Function Runtime
154
156
  * @default "runner"
@@ -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
  }
@@ -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
@@ -4,4 +4,5 @@ export interface DBTeam extends Timestamps {
4
4
  name: string;
5
5
  uuid: string;
6
6
  found_us: string | null;
7
+ has_baa: boolean;
7
8
  }
package/dist/web/env.d.ts CHANGED
@@ -8,6 +8,7 @@ export interface WindowEnv {
8
8
  publicUrl: string;
9
9
  connectUrl: string;
10
10
  gitHash: string | undefined;
11
+ environment: 'development' | 'staging' | 'production';
11
12
  publicSentryKey: string;
12
13
  publicPosthogKey: string;
13
14
  publicPosthogHost: string;
@@ -34,10 +34,9 @@ export interface LegacyDispatchMessage extends DispatchMessageBase {
34
34
  }
35
35
  export interface FunctionDispatchMessage extends DispatchMessageBase {
36
36
  kind: 'function';
37
- functionConfigId: number;
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.12",
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"