@nangohq/types 0.69.20 → 0.69.22

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.
@@ -0,0 +1,15 @@
1
+ import type { Endpoint } from '../api.js';
2
+ export type GetApiStatus = Endpoint<{
3
+ Method: 'GET';
4
+ Path: '/api/v1/api-status/:service';
5
+ Params: {
6
+ service: string;
7
+ };
8
+ Success: {
9
+ data: ApiStatusResponse;
10
+ };
11
+ }>;
12
+ export type ApiStatus = 'operational' | 'degraded_performance' | 'major_outage' | 'unknown';
13
+ export interface ApiStatusResponse {
14
+ status: ApiStatus;
15
+ }
@@ -62,6 +62,8 @@ export type GetPublicConnections = Endpoint<{
62
62
  endUserId?: string | undefined;
63
63
  integrationId?: string | undefined;
64
64
  endUserOrganizationId?: string | undefined;
65
+ limit?: number | undefined;
66
+ page?: number | undefined;
65
67
  };
66
68
  Path: '/connection';
67
69
  Success: {
package/dist/index.d.ts CHANGED
@@ -38,6 +38,7 @@ export type * from './scripts/on-events/db.js';
38
38
  export type * from './scripts/on-events/api.js';
39
39
  export type * from './scripts/syncs/api.js';
40
40
  export type * from './scripts/http.api.js';
41
+ export type * from './apiStatus/api.js';
41
42
  export type * from './slackNotifications/db.js';
42
43
  export type * from './notification/active-logs/db.js';
43
44
  export type * from './connection/api/get.js';
@@ -158,21 +158,21 @@ export type PatchIntegration = Endpoint<{
158
158
  forward_webhooks?: boolean | undefined;
159
159
  } | {
160
160
  authType: Extract<AuthModeType, 'OAUTH1' | 'OAUTH2' | 'TBA'>;
161
- clientId: string;
162
- clientSecret: string;
161
+ clientId?: string | undefined;
162
+ clientSecret?: string | undefined;
163
163
  scopes?: string | undefined;
164
164
  } | {
165
165
  authType: Extract<AuthModeType, 'APP'>;
166
- appId: string;
167
- appLink: string;
168
- privateKey: string;
166
+ appId?: string | undefined;
167
+ appLink?: string | undefined;
168
+ privateKey?: string | undefined;
169
169
  } | {
170
170
  authType: Extract<AuthModeType, 'CUSTOM'>;
171
- clientId: string;
172
- clientSecret: string;
173
- appId: string;
174
- appLink: string;
175
- privateKey: string;
171
+ clientId?: string | undefined;
172
+ clientSecret?: string | undefined;
173
+ appId?: string | undefined;
174
+ appLink?: string | undefined;
175
+ privateKey?: string | undefined;
176
176
  } | {
177
177
  authType: Extract<AuthModeType, 'MCP_OAUTH2'>;
178
178
  scopes?: string | undefined;
@@ -110,12 +110,14 @@ export interface ParsedNangoAction {
110
110
  export type LayoutMode = 'root' | 'nested';
111
111
  export interface NangoModel {
112
112
  name: string;
113
+ description?: string | undefined;
113
114
  fields: NangoModelField[];
114
115
  isAnon?: boolean | undefined;
115
116
  }
116
117
  export interface NangoModelField {
117
118
  name: string;
118
119
  value: string | number | boolean | null | NangoModelField[];
120
+ description?: string | undefined;
119
121
  dynamic?: boolean | undefined;
120
122
  tsType?: boolean | undefined;
121
123
  model?: boolean | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nangohq/types",
3
- "version": "0.69.20",
3
+ "version": "0.69.22",
4
4
  "description": "Types used in Nango applications",
5
5
  "type": "module",
6
6
  "typings": "dist/index.d.ts",