lumnisai 0.1.4 → 0.1.5

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/index.cjs CHANGED
@@ -206,19 +206,27 @@ class IntegrationsResource {
206
206
  /**
207
207
  * Check the status of a specific connection
208
208
  */
209
- async getConnectionStatus(userId, appName) {
209
+ async getConnectionStatus(params) {
210
+ const { userId, appName, provider } = params;
211
+ const queryParams = new URLSearchParams();
212
+ if (provider)
213
+ queryParams.append("provider", provider);
214
+ const query = queryParams.toString() ? `?${queryParams.toString()}` : "";
210
215
  return this.http.get(
211
- `/integrations/connections/${encodeURIComponent(userId)}/${appName.toUpperCase()}`
216
+ `/integrations/connections/${encodeURIComponent(userId)}/${appName.toUpperCase()}${query}`
212
217
  );
213
218
  }
214
219
  /**
215
220
  * Get all connections for a user
216
221
  */
217
- async getUserConnections(userId, appFilter) {
218
- const params = new URLSearchParams();
222
+ async getUserConnections(params) {
223
+ const { userId, provider, appFilter } = params;
224
+ const queryParams = new URLSearchParams();
225
+ if (provider)
226
+ queryParams.append("provider", provider);
219
227
  if (appFilter)
220
- params.append("app_filter", appFilter);
221
- const query = params.toString() ? `?${params.toString()}` : "";
228
+ queryParams.append("app_filter", appFilter);
229
+ const query = queryParams.toString() ? `?${queryParams.toString()}` : "";
222
230
  return this.http.get(
223
231
  `/integrations/connections/${encodeURIComponent(userId)}${query}`
224
232
  );
@@ -256,23 +264,41 @@ class IntegrationsResource {
256
264
  const urlParams = new URLSearchParams();
257
265
  if (params?.includeAvailable)
258
266
  urlParams.append("include_available", "true");
267
+ if (params?.provider)
268
+ urlParams.append("provider", params.provider);
259
269
  const query = urlParams.toString() ? `?${urlParams.toString()}` : "";
260
270
  return this.http.get(`/integrations/apps${query}`);
261
271
  }
272
+ /**
273
+ * List available integration providers
274
+ */
275
+ async listProviders() {
276
+ return this.http.get("/integrations/providers");
277
+ }
262
278
  /**
263
279
  * Check if a specific app is enabled
264
280
  */
265
- async checkAppEnabled(appName) {
281
+ async checkAppEnabled(params) {
282
+ const { appName, provider } = params;
283
+ const queryParams = new URLSearchParams();
284
+ if (provider)
285
+ queryParams.append("provider", provider);
286
+ const query = queryParams.toString() ? `?${queryParams.toString()}` : "";
266
287
  return this.http.get(
267
- `/integrations/apps/${appName.toUpperCase()}/enabled`
288
+ `/integrations/apps/${appName.toUpperCase()}/enabled${query}`
268
289
  );
269
290
  }
270
291
  /**
271
292
  * Enable or disable an app for the tenant
272
293
  */
273
- async updateAppStatus(appName, enabled) {
294
+ async updateAppStatus(params) {
295
+ const { appName, enabled, provider } = params;
296
+ const queryParams = new URLSearchParams();
297
+ queryParams.append("enabled", String(enabled));
298
+ if (provider)
299
+ queryParams.append("provider", provider);
274
300
  return this.http.put(
275
- `/integrations/apps/${appName.toUpperCase()}?enabled=${enabled}`
301
+ `/integrations/apps/${appName.toUpperCase()}?${queryParams.toString()}`
276
302
  );
277
303
  }
278
304
  /**
@@ -285,14 +311,14 @@ class IntegrationsResource {
285
311
  );
286
312
  }
287
313
  // Aliases for backward compatibility with client methods
288
- async isAppEnabled(appName) {
289
- return this.checkAppEnabled(appName);
314
+ async isAppEnabled(appName, provider) {
315
+ return this.checkAppEnabled({ appName, provider });
290
316
  }
291
317
  async setAppEnabled(appName, data) {
292
- return this.updateAppStatus(appName, data.enabled);
318
+ return this.updateAppStatus({ appName, enabled: data.enabled, provider: data.provider });
293
319
  }
294
320
  async listConnections(userId, params) {
295
- return this.getUserConnections(userId, params?.appFilter);
321
+ return this.getUserConnections({ userId, appFilter: params?.appFilter, provider: params?.provider });
296
322
  }
297
323
  }
298
324
 
@@ -1197,7 +1223,7 @@ class LumnisClient {
1197
1223
  return this.integrations.initiateConnection(params);
1198
1224
  }
1199
1225
  async getConnectionStatus(userId, appName) {
1200
- return this.integrations.getConnectionStatus(userId, appName);
1226
+ return this.integrations.getConnectionStatus({ userId, appName });
1201
1227
  }
1202
1228
  async listConnections(userId, params) {
1203
1229
  return this.integrations.listConnections(userId, params);
@@ -1290,6 +1316,15 @@ function createSimpleProgressCallback() {
1290
1316
  };
1291
1317
  }
1292
1318
 
1319
+ var ProviderType = /* @__PURE__ */ ((ProviderType2) => {
1320
+ ProviderType2["COMPOSIO"] = "composio";
1321
+ ProviderType2["UNIPILE"] = "unipile";
1322
+ ProviderType2["NANGO"] = "nango";
1323
+ ProviderType2["ARCADE"] = "arcade";
1324
+ ProviderType2["MERGE"] = "merge";
1325
+ return ProviderType2;
1326
+ })(ProviderType || {});
1327
+
1293
1328
  function displayProgress(update, indent = " ") {
1294
1329
  if (update.state === "tool_update") {
1295
1330
  if (update.toolCalls && update.toolCalls.length > 0) {
@@ -1392,6 +1427,7 @@ exports.LumnisClient = LumnisClient;
1392
1427
  exports.LumnisError = LumnisError;
1393
1428
  exports.NotFoundError = NotFoundError;
1394
1429
  exports.ProgressTracker = ProgressTracker;
1430
+ exports.ProviderType = ProviderType;
1395
1431
  exports.RateLimitError = RateLimitError;
1396
1432
  exports.ValidationError = ValidationError;
1397
1433
  exports.default = LumnisClient;
package/dist/index.d.cts CHANGED
@@ -50,7 +50,7 @@ interface TenantDetailsResponse {
50
50
  updatedAt: string;
51
51
  }
52
52
 
53
- type ApiProvider = 'OPENAI_API_KEY' | 'ANTHROPIC_API_KEY' | 'EXA_API_KEY' | 'COHERE_API_KEY' | 'GOOGLE_API_KEY' | 'SERPAPI_API_KEY' | 'GROQ_API_KEY' | 'NVIDIA_API_KEY' | 'FIREWORKS_API_KEY' | 'MISTRAL_API_KEY' | 'TOGETHER_API_KEY' | 'XAI_API_KEY' | 'PPLX_API_KEY' | 'HUGGINGFACE_API_KEY' | 'DEEPSEEK_API_KEY' | 'IBM_API_KEY' | 'E2B_API_KEY';
53
+ type ApiProvider = 'OPENAI_API_KEY' | 'ANTHROPIC_API_KEY' | 'EXA_API_KEY' | 'COHERE_API_KEY' | 'CORESIGNAL_API_KEY' | 'GOOGLE_API_KEY' | 'SERPAPI_API_KEY' | 'GROQ_API_KEY' | 'NVIDIA_API_KEY' | 'FIREWORKS_API_KEY' | 'MISTRAL_API_KEY' | 'TOGETHER_API_KEY' | 'XAI_API_KEY' | 'PPLX_API_KEY' | 'HUGGINGFACE_API_KEY' | 'DEEPSEEK_API_KEY' | 'IBM_API_KEY' | 'E2B_API_KEY';
54
54
  interface StoreApiKeyRequest {
55
55
  provider: ApiProvider;
56
56
  apiKey: string;
@@ -73,11 +73,24 @@ interface DeleteApiKeyResponse {
73
73
  message: string;
74
74
  }
75
75
 
76
+ /**
77
+ * Integration provider types
78
+ */
79
+ declare enum ProviderType {
80
+ COMPOSIO = "composio",
81
+ UNIPILE = "unipile",
82
+ NANGO = "nango",// Future
83
+ ARCADE = "arcade",// Future
84
+ MERGE = "merge"
85
+ }
76
86
  type ConnectionStatus = 'pending' | 'active' | 'failed' | 'expired' | 'not_connected';
77
87
  interface InitiateConnectionRequest {
78
88
  userId: string;
79
89
  appName: string;
90
+ provider?: ProviderType;
80
91
  redirectUrl?: string;
92
+ successRedirectUrl?: string;
93
+ failureRedirectUrl?: string;
81
94
  authMode?: string;
82
95
  connectionParams?: Record<string, any>;
83
96
  }
@@ -93,10 +106,14 @@ interface ConnectionStatusResponse {
93
106
  errorMessage?: string | null;
94
107
  }
95
108
  interface ConnectionInfo {
109
+ connectionId: string | null;
110
+ tenantId: string;
111
+ userId: string;
112
+ provider: ProviderType;
96
113
  appName: string;
97
114
  status: ConnectionStatus;
98
- connectedAt?: string | null;
99
- errorMessage?: string | null;
115
+ connectedAt: string | null;
116
+ metadata: Record<string, any>;
100
117
  }
101
118
  interface UserConnectionsResponse {
102
119
  userId: string;
@@ -104,6 +121,7 @@ interface UserConnectionsResponse {
104
121
  }
105
122
  interface GetToolsRequest {
106
123
  userId: string;
124
+ provider?: ProviderType;
107
125
  appFilter?: string[];
108
126
  }
109
127
  interface ToolInfo {
@@ -120,6 +138,7 @@ interface GetToolsResponse {
120
138
  interface DisconnectRequest {
121
139
  userId: string;
122
140
  appName: string;
141
+ provider?: ProviderType;
123
142
  }
124
143
  interface DisconnectResponse {
125
144
  success: boolean;
@@ -137,12 +156,15 @@ interface ConnectionCallbackResponse {
137
156
  message: string;
138
157
  }
139
158
  interface AppsListResponse {
140
- enabledApps: string[];
141
- totalEnabled: number;
159
+ providers: Record<string, string[]>;
160
+ totalProviders: number;
161
+ enabledApps?: string[];
162
+ totalEnabled?: number;
142
163
  availableApps?: string[];
143
164
  totalAvailable?: number;
144
165
  }
145
166
  interface AppEnabledResponse {
167
+ provider: ProviderType;
146
168
  appName: string;
147
169
  enabled: boolean;
148
170
  message: string;
@@ -153,6 +175,29 @@ interface UpdateAppStatusResponse {
153
175
  message: string;
154
176
  updatedAt: string;
155
177
  }
178
+ interface ListProvidersResponse {
179
+ providers: string[];
180
+ total: number;
181
+ }
182
+ interface GetConnectionStatusParams {
183
+ userId: string;
184
+ appName: string;
185
+ provider?: ProviderType;
186
+ }
187
+ interface GetUserConnectionsParams {
188
+ userId: string;
189
+ provider?: ProviderType;
190
+ appFilter?: string;
191
+ }
192
+ interface CheckAppEnabledParams {
193
+ appName: string;
194
+ provider?: ProviderType;
195
+ }
196
+ interface UpdateAppStatusParams {
197
+ appName: string;
198
+ enabled: boolean;
199
+ provider?: ProviderType;
200
+ }
156
201
 
157
202
  type MCPTransport = 'stdio' | 'streamable_http' | 'sse';
158
203
  type MCPScope = 'tenant' | 'user';
@@ -824,11 +869,11 @@ declare class IntegrationsResource {
824
869
  /**
825
870
  * Check the status of a specific connection
826
871
  */
827
- getConnectionStatus(userId: string, appName: string): Promise<ConnectionStatusResponse>;
872
+ getConnectionStatus(params: GetConnectionStatusParams): Promise<ConnectionStatusResponse>;
828
873
  /**
829
874
  * Get all connections for a user
830
875
  */
831
- getUserConnections(userId: string, appFilter?: string): Promise<UserConnectionsResponse>;
876
+ getUserConnections(params: GetUserConnectionsParams): Promise<UserConnectionsResponse>;
832
877
  /**
833
878
  * Get available tools for a user based on connections
834
879
  */
@@ -846,25 +891,32 @@ declare class IntegrationsResource {
846
891
  */
847
892
  listApps(params?: {
848
893
  includeAvailable?: boolean;
894
+ provider?: string;
849
895
  }): Promise<AppsListResponse>;
896
+ /**
897
+ * List available integration providers
898
+ */
899
+ listProviders(): Promise<ListProvidersResponse>;
850
900
  /**
851
901
  * Check if a specific app is enabled
852
902
  */
853
- checkAppEnabled(appName: string): Promise<AppEnabledResponse>;
903
+ checkAppEnabled(params: CheckAppEnabledParams): Promise<AppEnabledResponse>;
854
904
  /**
855
905
  * Enable or disable an app for the tenant
856
906
  */
857
- updateAppStatus(appName: string, enabled: boolean): Promise<UpdateAppStatusResponse>;
907
+ updateAppStatus(params: UpdateAppStatusParams): Promise<UpdateAppStatusResponse>;
858
908
  /**
859
909
  * Get required fields for non-OAuth authentication (future)
860
910
  */
861
911
  getNonOAuthRequiredFields(appName: string, authScheme: string): Promise<any>;
862
- isAppEnabled(appName: string): Promise<AppEnabledResponse>;
912
+ isAppEnabled(appName: string, provider?: string): Promise<AppEnabledResponse>;
863
913
  setAppEnabled(appName: string, data: {
864
914
  enabled: boolean;
915
+ provider?: string;
865
916
  }): Promise<UpdateAppStatusResponse>;
866
917
  listConnections(userId: string, params?: {
867
918
  appFilter?: string;
919
+ provider?: string;
868
920
  }): Promise<UserConnectionsResponse>;
869
921
  }
870
922
 
@@ -1343,4 +1395,4 @@ declare class ProgressTracker {
1343
1395
  }
1344
1396
 
1345
1397
  export = LumnisClient;
1346
- export { type AgentConfig, type ApiKeyMode, type ApiKeyModeRequest, type ApiKeyModeResponse, type ApiProvider, type AppEnabledResponse, type AppsListResponse, type ArtifactObject, type ArtifactsListResponse, AuthenticationError, type BaseResource, type BillingStatus, type BulkDeleteRequest, type BulkDeleteResponse, type BulkUploadResponse, type CancelResponseResponse, type ChunkingStrategy, type ConnectionCallbackRequest, type ConnectionCallbackResponse, type ConnectionInfo, type ConnectionStatus, type ConnectionStatusResponse, type ContentType, type CreateFeedbackRequest, type CreateFeedbackResponse, type CreateResponseRequest, type CreateResponseResponse, type CreateThreadRequest, type DatabaseStatus, type DeleteApiKeyResponse, type DisconnectRequest, type DisconnectResponse, type DuplicateHandling, type Email, type ErrorResponse, ExternalAPIKeysResource, type ExternalApiKeyResponse, type FeedbackListResponse, type FeedbackObject, type FeedbackType, type FileAttachment, type FileChunk, type FileContentResponse, type FileListResponse, type FileMetadata, type FileScope, type FileScopeUpdateRequest, type FileSearchRequest, type FileSearchResponse, type FileSearchResult, type FileStatisticsResponse, type FileUploadResponse, FilesResource, type GetToolsRequest, type GetToolsResponse, type InitiateConnectionRequest, type InitiateConnectionResponse, IntegrationsResource, InternalServerError, LocalFileNotSupportedError, LumnisClient, type LumnisClientOptions, LumnisError, type LumnisErrorOptions, type MCPScope, type MCPServerCreateRequest, type MCPServerListResponse, type MCPServerResponse, type MCPServerUpdateRequest, MCPServersResource, type MCPToolListResponse, type MCPToolResponse, type MCPTransport, type Message, type ModelAvailability, type ModelOverrides, type ModelPreferenceCreate, type ModelPreferencesBulkUpdate, ModelPreferencesResource, type ModelProvider, type ModelType, NotFoundError, type PaginationInfo, type PaginationParams, type Plan, type ProcessingStatus, type ProcessingStatusResponse, type ProgressEntry, ProgressTracker, RateLimitError, type RateLimitErrorOptions, type ResponseArtifact, type ResponseListResponse, type ResponseObject, type ResponseStatus, ResponsesResource, type Scope, type SelectedSkill, type SkillAnalyticsRequest, type SkillEffectivenessMetrics, type SkillGuidelineBase, type SkillGuidelineCreate, type SkillGuidelineListResponse, type SkillGuidelineResponse, type SkillGuidelineUpdate, type SkillRetrievalMetadata, type SkillUsageBase, type SkillUsageCreate, type SkillUsageListResponse, type SkillUsageResponse, type SkillUsageUpdate, SkillsResource, type StoreApiKeyRequest, type TenantDetailsResponse, TenantInfoResource, type TenantModelPreference, type TenantModelPreferencesResponse, type TestConnectionResponse, type ThreadListResponse, type ThreadObject, type ThreadResponsesParams, ThreadsResource, type ToolInfo, type UUID, type UpdateAppStatusResponse, type UpdateThreadRequest, type UserConnectionsResponse, type UserCreateRequest, type UserDeleteResponse, type UserIdentifier, type UserListResponse, type UserResponse, type UserUpdateRequest, UsersResource, ValidationError, displayProgress, formatProgressEntry };
1398
+ export { type AgentConfig, type ApiKeyMode, type ApiKeyModeRequest, type ApiKeyModeResponse, type ApiProvider, type AppEnabledResponse, type AppsListResponse, type ArtifactObject, type ArtifactsListResponse, AuthenticationError, type BaseResource, type BillingStatus, type BulkDeleteRequest, type BulkDeleteResponse, type BulkUploadResponse, type CancelResponseResponse, type CheckAppEnabledParams, type ChunkingStrategy, type ConnectionCallbackRequest, type ConnectionCallbackResponse, type ConnectionInfo, type ConnectionStatus, type ConnectionStatusResponse, type ContentType, type CreateFeedbackRequest, type CreateFeedbackResponse, type CreateResponseRequest, type CreateResponseResponse, type CreateThreadRequest, type DatabaseStatus, type DeleteApiKeyResponse, type DisconnectRequest, type DisconnectResponse, type DuplicateHandling, type Email, type ErrorResponse, ExternalAPIKeysResource, type ExternalApiKeyResponse, type FeedbackListResponse, type FeedbackObject, type FeedbackType, type FileAttachment, type FileChunk, type FileContentResponse, type FileListResponse, type FileMetadata, type FileScope, type FileScopeUpdateRequest, type FileSearchRequest, type FileSearchResponse, type FileSearchResult, type FileStatisticsResponse, type FileUploadResponse, FilesResource, type GetConnectionStatusParams, type GetToolsRequest, type GetToolsResponse, type GetUserConnectionsParams, type InitiateConnectionRequest, type InitiateConnectionResponse, IntegrationsResource, InternalServerError, type ListProvidersResponse, LocalFileNotSupportedError, LumnisClient, type LumnisClientOptions, LumnisError, type LumnisErrorOptions, type MCPScope, type MCPServerCreateRequest, type MCPServerListResponse, type MCPServerResponse, type MCPServerUpdateRequest, MCPServersResource, type MCPToolListResponse, type MCPToolResponse, type MCPTransport, type Message, type ModelAvailability, type ModelOverrides, type ModelPreferenceCreate, type ModelPreferencesBulkUpdate, ModelPreferencesResource, type ModelProvider, type ModelType, NotFoundError, type PaginationInfo, type PaginationParams, type Plan, type ProcessingStatus, type ProcessingStatusResponse, type ProgressEntry, ProgressTracker, ProviderType, RateLimitError, type RateLimitErrorOptions, type ResponseArtifact, type ResponseListResponse, type ResponseObject, type ResponseStatus, ResponsesResource, type Scope, type SelectedSkill, type SkillAnalyticsRequest, type SkillEffectivenessMetrics, type SkillGuidelineBase, type SkillGuidelineCreate, type SkillGuidelineListResponse, type SkillGuidelineResponse, type SkillGuidelineUpdate, type SkillRetrievalMetadata, type SkillUsageBase, type SkillUsageCreate, type SkillUsageListResponse, type SkillUsageResponse, type SkillUsageUpdate, SkillsResource, type StoreApiKeyRequest, type TenantDetailsResponse, TenantInfoResource, type TenantModelPreference, type TenantModelPreferencesResponse, type TestConnectionResponse, type ThreadListResponse, type ThreadObject, type ThreadResponsesParams, ThreadsResource, type ToolInfo, type UUID, type UpdateAppStatusParams, type UpdateAppStatusResponse, type UpdateThreadRequest, type UserConnectionsResponse, type UserCreateRequest, type UserDeleteResponse, type UserIdentifier, type UserListResponse, type UserResponse, type UserUpdateRequest, UsersResource, ValidationError, displayProgress, formatProgressEntry };
package/dist/index.d.mts CHANGED
@@ -50,7 +50,7 @@ interface TenantDetailsResponse {
50
50
  updatedAt: string;
51
51
  }
52
52
 
53
- type ApiProvider = 'OPENAI_API_KEY' | 'ANTHROPIC_API_KEY' | 'EXA_API_KEY' | 'COHERE_API_KEY' | 'GOOGLE_API_KEY' | 'SERPAPI_API_KEY' | 'GROQ_API_KEY' | 'NVIDIA_API_KEY' | 'FIREWORKS_API_KEY' | 'MISTRAL_API_KEY' | 'TOGETHER_API_KEY' | 'XAI_API_KEY' | 'PPLX_API_KEY' | 'HUGGINGFACE_API_KEY' | 'DEEPSEEK_API_KEY' | 'IBM_API_KEY' | 'E2B_API_KEY';
53
+ type ApiProvider = 'OPENAI_API_KEY' | 'ANTHROPIC_API_KEY' | 'EXA_API_KEY' | 'COHERE_API_KEY' | 'CORESIGNAL_API_KEY' | 'GOOGLE_API_KEY' | 'SERPAPI_API_KEY' | 'GROQ_API_KEY' | 'NVIDIA_API_KEY' | 'FIREWORKS_API_KEY' | 'MISTRAL_API_KEY' | 'TOGETHER_API_KEY' | 'XAI_API_KEY' | 'PPLX_API_KEY' | 'HUGGINGFACE_API_KEY' | 'DEEPSEEK_API_KEY' | 'IBM_API_KEY' | 'E2B_API_KEY';
54
54
  interface StoreApiKeyRequest {
55
55
  provider: ApiProvider;
56
56
  apiKey: string;
@@ -73,11 +73,24 @@ interface DeleteApiKeyResponse {
73
73
  message: string;
74
74
  }
75
75
 
76
+ /**
77
+ * Integration provider types
78
+ */
79
+ declare enum ProviderType {
80
+ COMPOSIO = "composio",
81
+ UNIPILE = "unipile",
82
+ NANGO = "nango",// Future
83
+ ARCADE = "arcade",// Future
84
+ MERGE = "merge"
85
+ }
76
86
  type ConnectionStatus = 'pending' | 'active' | 'failed' | 'expired' | 'not_connected';
77
87
  interface InitiateConnectionRequest {
78
88
  userId: string;
79
89
  appName: string;
90
+ provider?: ProviderType;
80
91
  redirectUrl?: string;
92
+ successRedirectUrl?: string;
93
+ failureRedirectUrl?: string;
81
94
  authMode?: string;
82
95
  connectionParams?: Record<string, any>;
83
96
  }
@@ -93,10 +106,14 @@ interface ConnectionStatusResponse {
93
106
  errorMessage?: string | null;
94
107
  }
95
108
  interface ConnectionInfo {
109
+ connectionId: string | null;
110
+ tenantId: string;
111
+ userId: string;
112
+ provider: ProviderType;
96
113
  appName: string;
97
114
  status: ConnectionStatus;
98
- connectedAt?: string | null;
99
- errorMessage?: string | null;
115
+ connectedAt: string | null;
116
+ metadata: Record<string, any>;
100
117
  }
101
118
  interface UserConnectionsResponse {
102
119
  userId: string;
@@ -104,6 +121,7 @@ interface UserConnectionsResponse {
104
121
  }
105
122
  interface GetToolsRequest {
106
123
  userId: string;
124
+ provider?: ProviderType;
107
125
  appFilter?: string[];
108
126
  }
109
127
  interface ToolInfo {
@@ -120,6 +138,7 @@ interface GetToolsResponse {
120
138
  interface DisconnectRequest {
121
139
  userId: string;
122
140
  appName: string;
141
+ provider?: ProviderType;
123
142
  }
124
143
  interface DisconnectResponse {
125
144
  success: boolean;
@@ -137,12 +156,15 @@ interface ConnectionCallbackResponse {
137
156
  message: string;
138
157
  }
139
158
  interface AppsListResponse {
140
- enabledApps: string[];
141
- totalEnabled: number;
159
+ providers: Record<string, string[]>;
160
+ totalProviders: number;
161
+ enabledApps?: string[];
162
+ totalEnabled?: number;
142
163
  availableApps?: string[];
143
164
  totalAvailable?: number;
144
165
  }
145
166
  interface AppEnabledResponse {
167
+ provider: ProviderType;
146
168
  appName: string;
147
169
  enabled: boolean;
148
170
  message: string;
@@ -153,6 +175,29 @@ interface UpdateAppStatusResponse {
153
175
  message: string;
154
176
  updatedAt: string;
155
177
  }
178
+ interface ListProvidersResponse {
179
+ providers: string[];
180
+ total: number;
181
+ }
182
+ interface GetConnectionStatusParams {
183
+ userId: string;
184
+ appName: string;
185
+ provider?: ProviderType;
186
+ }
187
+ interface GetUserConnectionsParams {
188
+ userId: string;
189
+ provider?: ProviderType;
190
+ appFilter?: string;
191
+ }
192
+ interface CheckAppEnabledParams {
193
+ appName: string;
194
+ provider?: ProviderType;
195
+ }
196
+ interface UpdateAppStatusParams {
197
+ appName: string;
198
+ enabled: boolean;
199
+ provider?: ProviderType;
200
+ }
156
201
 
157
202
  type MCPTransport = 'stdio' | 'streamable_http' | 'sse';
158
203
  type MCPScope = 'tenant' | 'user';
@@ -824,11 +869,11 @@ declare class IntegrationsResource {
824
869
  /**
825
870
  * Check the status of a specific connection
826
871
  */
827
- getConnectionStatus(userId: string, appName: string): Promise<ConnectionStatusResponse>;
872
+ getConnectionStatus(params: GetConnectionStatusParams): Promise<ConnectionStatusResponse>;
828
873
  /**
829
874
  * Get all connections for a user
830
875
  */
831
- getUserConnections(userId: string, appFilter?: string): Promise<UserConnectionsResponse>;
876
+ getUserConnections(params: GetUserConnectionsParams): Promise<UserConnectionsResponse>;
832
877
  /**
833
878
  * Get available tools for a user based on connections
834
879
  */
@@ -846,25 +891,32 @@ declare class IntegrationsResource {
846
891
  */
847
892
  listApps(params?: {
848
893
  includeAvailable?: boolean;
894
+ provider?: string;
849
895
  }): Promise<AppsListResponse>;
896
+ /**
897
+ * List available integration providers
898
+ */
899
+ listProviders(): Promise<ListProvidersResponse>;
850
900
  /**
851
901
  * Check if a specific app is enabled
852
902
  */
853
- checkAppEnabled(appName: string): Promise<AppEnabledResponse>;
903
+ checkAppEnabled(params: CheckAppEnabledParams): Promise<AppEnabledResponse>;
854
904
  /**
855
905
  * Enable or disable an app for the tenant
856
906
  */
857
- updateAppStatus(appName: string, enabled: boolean): Promise<UpdateAppStatusResponse>;
907
+ updateAppStatus(params: UpdateAppStatusParams): Promise<UpdateAppStatusResponse>;
858
908
  /**
859
909
  * Get required fields for non-OAuth authentication (future)
860
910
  */
861
911
  getNonOAuthRequiredFields(appName: string, authScheme: string): Promise<any>;
862
- isAppEnabled(appName: string): Promise<AppEnabledResponse>;
912
+ isAppEnabled(appName: string, provider?: string): Promise<AppEnabledResponse>;
863
913
  setAppEnabled(appName: string, data: {
864
914
  enabled: boolean;
915
+ provider?: string;
865
916
  }): Promise<UpdateAppStatusResponse>;
866
917
  listConnections(userId: string, params?: {
867
918
  appFilter?: string;
919
+ provider?: string;
868
920
  }): Promise<UserConnectionsResponse>;
869
921
  }
870
922
 
@@ -1342,4 +1394,4 @@ declare class ProgressTracker {
1342
1394
  reset(): void;
1343
1395
  }
1344
1396
 
1345
- export { type AgentConfig, type ApiKeyMode, type ApiKeyModeRequest, type ApiKeyModeResponse, type ApiProvider, type AppEnabledResponse, type AppsListResponse, type ArtifactObject, type ArtifactsListResponse, AuthenticationError, type BaseResource, type BillingStatus, type BulkDeleteRequest, type BulkDeleteResponse, type BulkUploadResponse, type CancelResponseResponse, type ChunkingStrategy, type ConnectionCallbackRequest, type ConnectionCallbackResponse, type ConnectionInfo, type ConnectionStatus, type ConnectionStatusResponse, type ContentType, type CreateFeedbackRequest, type CreateFeedbackResponse, type CreateResponseRequest, type CreateResponseResponse, type CreateThreadRequest, type DatabaseStatus, type DeleteApiKeyResponse, type DisconnectRequest, type DisconnectResponse, type DuplicateHandling, type Email, type ErrorResponse, ExternalAPIKeysResource, type ExternalApiKeyResponse, type FeedbackListResponse, type FeedbackObject, type FeedbackType, type FileAttachment, type FileChunk, type FileContentResponse, type FileListResponse, type FileMetadata, type FileScope, type FileScopeUpdateRequest, type FileSearchRequest, type FileSearchResponse, type FileSearchResult, type FileStatisticsResponse, type FileUploadResponse, FilesResource, type GetToolsRequest, type GetToolsResponse, type InitiateConnectionRequest, type InitiateConnectionResponse, IntegrationsResource, InternalServerError, LocalFileNotSupportedError, LumnisClient, type LumnisClientOptions, LumnisError, type LumnisErrorOptions, type MCPScope, type MCPServerCreateRequest, type MCPServerListResponse, type MCPServerResponse, type MCPServerUpdateRequest, MCPServersResource, type MCPToolListResponse, type MCPToolResponse, type MCPTransport, type Message, type ModelAvailability, type ModelOverrides, type ModelPreferenceCreate, type ModelPreferencesBulkUpdate, ModelPreferencesResource, type ModelProvider, type ModelType, NotFoundError, type PaginationInfo, type PaginationParams, type Plan, type ProcessingStatus, type ProcessingStatusResponse, type ProgressEntry, ProgressTracker, RateLimitError, type RateLimitErrorOptions, type ResponseArtifact, type ResponseListResponse, type ResponseObject, type ResponseStatus, ResponsesResource, type Scope, type SelectedSkill, type SkillAnalyticsRequest, type SkillEffectivenessMetrics, type SkillGuidelineBase, type SkillGuidelineCreate, type SkillGuidelineListResponse, type SkillGuidelineResponse, type SkillGuidelineUpdate, type SkillRetrievalMetadata, type SkillUsageBase, type SkillUsageCreate, type SkillUsageListResponse, type SkillUsageResponse, type SkillUsageUpdate, SkillsResource, type StoreApiKeyRequest, type TenantDetailsResponse, TenantInfoResource, type TenantModelPreference, type TenantModelPreferencesResponse, type TestConnectionResponse, type ThreadListResponse, type ThreadObject, type ThreadResponsesParams, ThreadsResource, type ToolInfo, type UUID, type UpdateAppStatusResponse, type UpdateThreadRequest, type UserConnectionsResponse, type UserCreateRequest, type UserDeleteResponse, type UserIdentifier, type UserListResponse, type UserResponse, type UserUpdateRequest, UsersResource, ValidationError, LumnisClient as default, displayProgress, formatProgressEntry };
1397
+ export { type AgentConfig, type ApiKeyMode, type ApiKeyModeRequest, type ApiKeyModeResponse, type ApiProvider, type AppEnabledResponse, type AppsListResponse, type ArtifactObject, type ArtifactsListResponse, AuthenticationError, type BaseResource, type BillingStatus, type BulkDeleteRequest, type BulkDeleteResponse, type BulkUploadResponse, type CancelResponseResponse, type CheckAppEnabledParams, type ChunkingStrategy, type ConnectionCallbackRequest, type ConnectionCallbackResponse, type ConnectionInfo, type ConnectionStatus, type ConnectionStatusResponse, type ContentType, type CreateFeedbackRequest, type CreateFeedbackResponse, type CreateResponseRequest, type CreateResponseResponse, type CreateThreadRequest, type DatabaseStatus, type DeleteApiKeyResponse, type DisconnectRequest, type DisconnectResponse, type DuplicateHandling, type Email, type ErrorResponse, ExternalAPIKeysResource, type ExternalApiKeyResponse, type FeedbackListResponse, type FeedbackObject, type FeedbackType, type FileAttachment, type FileChunk, type FileContentResponse, type FileListResponse, type FileMetadata, type FileScope, type FileScopeUpdateRequest, type FileSearchRequest, type FileSearchResponse, type FileSearchResult, type FileStatisticsResponse, type FileUploadResponse, FilesResource, type GetConnectionStatusParams, type GetToolsRequest, type GetToolsResponse, type GetUserConnectionsParams, type InitiateConnectionRequest, type InitiateConnectionResponse, IntegrationsResource, InternalServerError, type ListProvidersResponse, LocalFileNotSupportedError, LumnisClient, type LumnisClientOptions, LumnisError, type LumnisErrorOptions, type MCPScope, type MCPServerCreateRequest, type MCPServerListResponse, type MCPServerResponse, type MCPServerUpdateRequest, MCPServersResource, type MCPToolListResponse, type MCPToolResponse, type MCPTransport, type Message, type ModelAvailability, type ModelOverrides, type ModelPreferenceCreate, type ModelPreferencesBulkUpdate, ModelPreferencesResource, type ModelProvider, type ModelType, NotFoundError, type PaginationInfo, type PaginationParams, type Plan, type ProcessingStatus, type ProcessingStatusResponse, type ProgressEntry, ProgressTracker, ProviderType, RateLimitError, type RateLimitErrorOptions, type ResponseArtifact, type ResponseListResponse, type ResponseObject, type ResponseStatus, ResponsesResource, type Scope, type SelectedSkill, type SkillAnalyticsRequest, type SkillEffectivenessMetrics, type SkillGuidelineBase, type SkillGuidelineCreate, type SkillGuidelineListResponse, type SkillGuidelineResponse, type SkillGuidelineUpdate, type SkillRetrievalMetadata, type SkillUsageBase, type SkillUsageCreate, type SkillUsageListResponse, type SkillUsageResponse, type SkillUsageUpdate, SkillsResource, type StoreApiKeyRequest, type TenantDetailsResponse, TenantInfoResource, type TenantModelPreference, type TenantModelPreferencesResponse, type TestConnectionResponse, type ThreadListResponse, type ThreadObject, type ThreadResponsesParams, ThreadsResource, type ToolInfo, type UUID, type UpdateAppStatusParams, type UpdateAppStatusResponse, type UpdateThreadRequest, type UserConnectionsResponse, type UserCreateRequest, type UserDeleteResponse, type UserIdentifier, type UserListResponse, type UserResponse, type UserUpdateRequest, UsersResource, ValidationError, LumnisClient as default, displayProgress, formatProgressEntry };
package/dist/index.d.ts CHANGED
@@ -50,7 +50,7 @@ interface TenantDetailsResponse {
50
50
  updatedAt: string;
51
51
  }
52
52
 
53
- type ApiProvider = 'OPENAI_API_KEY' | 'ANTHROPIC_API_KEY' | 'EXA_API_KEY' | 'COHERE_API_KEY' | 'GOOGLE_API_KEY' | 'SERPAPI_API_KEY' | 'GROQ_API_KEY' | 'NVIDIA_API_KEY' | 'FIREWORKS_API_KEY' | 'MISTRAL_API_KEY' | 'TOGETHER_API_KEY' | 'XAI_API_KEY' | 'PPLX_API_KEY' | 'HUGGINGFACE_API_KEY' | 'DEEPSEEK_API_KEY' | 'IBM_API_KEY' | 'E2B_API_KEY';
53
+ type ApiProvider = 'OPENAI_API_KEY' | 'ANTHROPIC_API_KEY' | 'EXA_API_KEY' | 'COHERE_API_KEY' | 'CORESIGNAL_API_KEY' | 'GOOGLE_API_KEY' | 'SERPAPI_API_KEY' | 'GROQ_API_KEY' | 'NVIDIA_API_KEY' | 'FIREWORKS_API_KEY' | 'MISTRAL_API_KEY' | 'TOGETHER_API_KEY' | 'XAI_API_KEY' | 'PPLX_API_KEY' | 'HUGGINGFACE_API_KEY' | 'DEEPSEEK_API_KEY' | 'IBM_API_KEY' | 'E2B_API_KEY';
54
54
  interface StoreApiKeyRequest {
55
55
  provider: ApiProvider;
56
56
  apiKey: string;
@@ -73,11 +73,24 @@ interface DeleteApiKeyResponse {
73
73
  message: string;
74
74
  }
75
75
 
76
+ /**
77
+ * Integration provider types
78
+ */
79
+ declare enum ProviderType {
80
+ COMPOSIO = "composio",
81
+ UNIPILE = "unipile",
82
+ NANGO = "nango",// Future
83
+ ARCADE = "arcade",// Future
84
+ MERGE = "merge"
85
+ }
76
86
  type ConnectionStatus = 'pending' | 'active' | 'failed' | 'expired' | 'not_connected';
77
87
  interface InitiateConnectionRequest {
78
88
  userId: string;
79
89
  appName: string;
90
+ provider?: ProviderType;
80
91
  redirectUrl?: string;
92
+ successRedirectUrl?: string;
93
+ failureRedirectUrl?: string;
81
94
  authMode?: string;
82
95
  connectionParams?: Record<string, any>;
83
96
  }
@@ -93,10 +106,14 @@ interface ConnectionStatusResponse {
93
106
  errorMessage?: string | null;
94
107
  }
95
108
  interface ConnectionInfo {
109
+ connectionId: string | null;
110
+ tenantId: string;
111
+ userId: string;
112
+ provider: ProviderType;
96
113
  appName: string;
97
114
  status: ConnectionStatus;
98
- connectedAt?: string | null;
99
- errorMessage?: string | null;
115
+ connectedAt: string | null;
116
+ metadata: Record<string, any>;
100
117
  }
101
118
  interface UserConnectionsResponse {
102
119
  userId: string;
@@ -104,6 +121,7 @@ interface UserConnectionsResponse {
104
121
  }
105
122
  interface GetToolsRequest {
106
123
  userId: string;
124
+ provider?: ProviderType;
107
125
  appFilter?: string[];
108
126
  }
109
127
  interface ToolInfo {
@@ -120,6 +138,7 @@ interface GetToolsResponse {
120
138
  interface DisconnectRequest {
121
139
  userId: string;
122
140
  appName: string;
141
+ provider?: ProviderType;
123
142
  }
124
143
  interface DisconnectResponse {
125
144
  success: boolean;
@@ -137,12 +156,15 @@ interface ConnectionCallbackResponse {
137
156
  message: string;
138
157
  }
139
158
  interface AppsListResponse {
140
- enabledApps: string[];
141
- totalEnabled: number;
159
+ providers: Record<string, string[]>;
160
+ totalProviders: number;
161
+ enabledApps?: string[];
162
+ totalEnabled?: number;
142
163
  availableApps?: string[];
143
164
  totalAvailable?: number;
144
165
  }
145
166
  interface AppEnabledResponse {
167
+ provider: ProviderType;
146
168
  appName: string;
147
169
  enabled: boolean;
148
170
  message: string;
@@ -153,6 +175,29 @@ interface UpdateAppStatusResponse {
153
175
  message: string;
154
176
  updatedAt: string;
155
177
  }
178
+ interface ListProvidersResponse {
179
+ providers: string[];
180
+ total: number;
181
+ }
182
+ interface GetConnectionStatusParams {
183
+ userId: string;
184
+ appName: string;
185
+ provider?: ProviderType;
186
+ }
187
+ interface GetUserConnectionsParams {
188
+ userId: string;
189
+ provider?: ProviderType;
190
+ appFilter?: string;
191
+ }
192
+ interface CheckAppEnabledParams {
193
+ appName: string;
194
+ provider?: ProviderType;
195
+ }
196
+ interface UpdateAppStatusParams {
197
+ appName: string;
198
+ enabled: boolean;
199
+ provider?: ProviderType;
200
+ }
156
201
 
157
202
  type MCPTransport = 'stdio' | 'streamable_http' | 'sse';
158
203
  type MCPScope = 'tenant' | 'user';
@@ -824,11 +869,11 @@ declare class IntegrationsResource {
824
869
  /**
825
870
  * Check the status of a specific connection
826
871
  */
827
- getConnectionStatus(userId: string, appName: string): Promise<ConnectionStatusResponse>;
872
+ getConnectionStatus(params: GetConnectionStatusParams): Promise<ConnectionStatusResponse>;
828
873
  /**
829
874
  * Get all connections for a user
830
875
  */
831
- getUserConnections(userId: string, appFilter?: string): Promise<UserConnectionsResponse>;
876
+ getUserConnections(params: GetUserConnectionsParams): Promise<UserConnectionsResponse>;
832
877
  /**
833
878
  * Get available tools for a user based on connections
834
879
  */
@@ -846,25 +891,32 @@ declare class IntegrationsResource {
846
891
  */
847
892
  listApps(params?: {
848
893
  includeAvailable?: boolean;
894
+ provider?: string;
849
895
  }): Promise<AppsListResponse>;
896
+ /**
897
+ * List available integration providers
898
+ */
899
+ listProviders(): Promise<ListProvidersResponse>;
850
900
  /**
851
901
  * Check if a specific app is enabled
852
902
  */
853
- checkAppEnabled(appName: string): Promise<AppEnabledResponse>;
903
+ checkAppEnabled(params: CheckAppEnabledParams): Promise<AppEnabledResponse>;
854
904
  /**
855
905
  * Enable or disable an app for the tenant
856
906
  */
857
- updateAppStatus(appName: string, enabled: boolean): Promise<UpdateAppStatusResponse>;
907
+ updateAppStatus(params: UpdateAppStatusParams): Promise<UpdateAppStatusResponse>;
858
908
  /**
859
909
  * Get required fields for non-OAuth authentication (future)
860
910
  */
861
911
  getNonOAuthRequiredFields(appName: string, authScheme: string): Promise<any>;
862
- isAppEnabled(appName: string): Promise<AppEnabledResponse>;
912
+ isAppEnabled(appName: string, provider?: string): Promise<AppEnabledResponse>;
863
913
  setAppEnabled(appName: string, data: {
864
914
  enabled: boolean;
915
+ provider?: string;
865
916
  }): Promise<UpdateAppStatusResponse>;
866
917
  listConnections(userId: string, params?: {
867
918
  appFilter?: string;
919
+ provider?: string;
868
920
  }): Promise<UserConnectionsResponse>;
869
921
  }
870
922
 
@@ -1343,4 +1395,4 @@ declare class ProgressTracker {
1343
1395
  }
1344
1396
 
1345
1397
  export = LumnisClient;
1346
- export { type AgentConfig, type ApiKeyMode, type ApiKeyModeRequest, type ApiKeyModeResponse, type ApiProvider, type AppEnabledResponse, type AppsListResponse, type ArtifactObject, type ArtifactsListResponse, AuthenticationError, type BaseResource, type BillingStatus, type BulkDeleteRequest, type BulkDeleteResponse, type BulkUploadResponse, type CancelResponseResponse, type ChunkingStrategy, type ConnectionCallbackRequest, type ConnectionCallbackResponse, type ConnectionInfo, type ConnectionStatus, type ConnectionStatusResponse, type ContentType, type CreateFeedbackRequest, type CreateFeedbackResponse, type CreateResponseRequest, type CreateResponseResponse, type CreateThreadRequest, type DatabaseStatus, type DeleteApiKeyResponse, type DisconnectRequest, type DisconnectResponse, type DuplicateHandling, type Email, type ErrorResponse, ExternalAPIKeysResource, type ExternalApiKeyResponse, type FeedbackListResponse, type FeedbackObject, type FeedbackType, type FileAttachment, type FileChunk, type FileContentResponse, type FileListResponse, type FileMetadata, type FileScope, type FileScopeUpdateRequest, type FileSearchRequest, type FileSearchResponse, type FileSearchResult, type FileStatisticsResponse, type FileUploadResponse, FilesResource, type GetToolsRequest, type GetToolsResponse, type InitiateConnectionRequest, type InitiateConnectionResponse, IntegrationsResource, InternalServerError, LocalFileNotSupportedError, LumnisClient, type LumnisClientOptions, LumnisError, type LumnisErrorOptions, type MCPScope, type MCPServerCreateRequest, type MCPServerListResponse, type MCPServerResponse, type MCPServerUpdateRequest, MCPServersResource, type MCPToolListResponse, type MCPToolResponse, type MCPTransport, type Message, type ModelAvailability, type ModelOverrides, type ModelPreferenceCreate, type ModelPreferencesBulkUpdate, ModelPreferencesResource, type ModelProvider, type ModelType, NotFoundError, type PaginationInfo, type PaginationParams, type Plan, type ProcessingStatus, type ProcessingStatusResponse, type ProgressEntry, ProgressTracker, RateLimitError, type RateLimitErrorOptions, type ResponseArtifact, type ResponseListResponse, type ResponseObject, type ResponseStatus, ResponsesResource, type Scope, type SelectedSkill, type SkillAnalyticsRequest, type SkillEffectivenessMetrics, type SkillGuidelineBase, type SkillGuidelineCreate, type SkillGuidelineListResponse, type SkillGuidelineResponse, type SkillGuidelineUpdate, type SkillRetrievalMetadata, type SkillUsageBase, type SkillUsageCreate, type SkillUsageListResponse, type SkillUsageResponse, type SkillUsageUpdate, SkillsResource, type StoreApiKeyRequest, type TenantDetailsResponse, TenantInfoResource, type TenantModelPreference, type TenantModelPreferencesResponse, type TestConnectionResponse, type ThreadListResponse, type ThreadObject, type ThreadResponsesParams, ThreadsResource, type ToolInfo, type UUID, type UpdateAppStatusResponse, type UpdateThreadRequest, type UserConnectionsResponse, type UserCreateRequest, type UserDeleteResponse, type UserIdentifier, type UserListResponse, type UserResponse, type UserUpdateRequest, UsersResource, ValidationError, displayProgress, formatProgressEntry };
1398
+ export { type AgentConfig, type ApiKeyMode, type ApiKeyModeRequest, type ApiKeyModeResponse, type ApiProvider, type AppEnabledResponse, type AppsListResponse, type ArtifactObject, type ArtifactsListResponse, AuthenticationError, type BaseResource, type BillingStatus, type BulkDeleteRequest, type BulkDeleteResponse, type BulkUploadResponse, type CancelResponseResponse, type CheckAppEnabledParams, type ChunkingStrategy, type ConnectionCallbackRequest, type ConnectionCallbackResponse, type ConnectionInfo, type ConnectionStatus, type ConnectionStatusResponse, type ContentType, type CreateFeedbackRequest, type CreateFeedbackResponse, type CreateResponseRequest, type CreateResponseResponse, type CreateThreadRequest, type DatabaseStatus, type DeleteApiKeyResponse, type DisconnectRequest, type DisconnectResponse, type DuplicateHandling, type Email, type ErrorResponse, ExternalAPIKeysResource, type ExternalApiKeyResponse, type FeedbackListResponse, type FeedbackObject, type FeedbackType, type FileAttachment, type FileChunk, type FileContentResponse, type FileListResponse, type FileMetadata, type FileScope, type FileScopeUpdateRequest, type FileSearchRequest, type FileSearchResponse, type FileSearchResult, type FileStatisticsResponse, type FileUploadResponse, FilesResource, type GetConnectionStatusParams, type GetToolsRequest, type GetToolsResponse, type GetUserConnectionsParams, type InitiateConnectionRequest, type InitiateConnectionResponse, IntegrationsResource, InternalServerError, type ListProvidersResponse, LocalFileNotSupportedError, LumnisClient, type LumnisClientOptions, LumnisError, type LumnisErrorOptions, type MCPScope, type MCPServerCreateRequest, type MCPServerListResponse, type MCPServerResponse, type MCPServerUpdateRequest, MCPServersResource, type MCPToolListResponse, type MCPToolResponse, type MCPTransport, type Message, type ModelAvailability, type ModelOverrides, type ModelPreferenceCreate, type ModelPreferencesBulkUpdate, ModelPreferencesResource, type ModelProvider, type ModelType, NotFoundError, type PaginationInfo, type PaginationParams, type Plan, type ProcessingStatus, type ProcessingStatusResponse, type ProgressEntry, ProgressTracker, ProviderType, RateLimitError, type RateLimitErrorOptions, type ResponseArtifact, type ResponseListResponse, type ResponseObject, type ResponseStatus, ResponsesResource, type Scope, type SelectedSkill, type SkillAnalyticsRequest, type SkillEffectivenessMetrics, type SkillGuidelineBase, type SkillGuidelineCreate, type SkillGuidelineListResponse, type SkillGuidelineResponse, type SkillGuidelineUpdate, type SkillRetrievalMetadata, type SkillUsageBase, type SkillUsageCreate, type SkillUsageListResponse, type SkillUsageResponse, type SkillUsageUpdate, SkillsResource, type StoreApiKeyRequest, type TenantDetailsResponse, TenantInfoResource, type TenantModelPreference, type TenantModelPreferencesResponse, type TestConnectionResponse, type ThreadListResponse, type ThreadObject, type ThreadResponsesParams, ThreadsResource, type ToolInfo, type UUID, type UpdateAppStatusParams, type UpdateAppStatusResponse, type UpdateThreadRequest, type UserConnectionsResponse, type UserCreateRequest, type UserDeleteResponse, type UserIdentifier, type UserListResponse, type UserResponse, type UserUpdateRequest, UsersResource, ValidationError, displayProgress, formatProgressEntry };
package/dist/index.mjs CHANGED
@@ -202,19 +202,27 @@ class IntegrationsResource {
202
202
  /**
203
203
  * Check the status of a specific connection
204
204
  */
205
- async getConnectionStatus(userId, appName) {
205
+ async getConnectionStatus(params) {
206
+ const { userId, appName, provider } = params;
207
+ const queryParams = new URLSearchParams();
208
+ if (provider)
209
+ queryParams.append("provider", provider);
210
+ const query = queryParams.toString() ? `?${queryParams.toString()}` : "";
206
211
  return this.http.get(
207
- `/integrations/connections/${encodeURIComponent(userId)}/${appName.toUpperCase()}`
212
+ `/integrations/connections/${encodeURIComponent(userId)}/${appName.toUpperCase()}${query}`
208
213
  );
209
214
  }
210
215
  /**
211
216
  * Get all connections for a user
212
217
  */
213
- async getUserConnections(userId, appFilter) {
214
- const params = new URLSearchParams();
218
+ async getUserConnections(params) {
219
+ const { userId, provider, appFilter } = params;
220
+ const queryParams = new URLSearchParams();
221
+ if (provider)
222
+ queryParams.append("provider", provider);
215
223
  if (appFilter)
216
- params.append("app_filter", appFilter);
217
- const query = params.toString() ? `?${params.toString()}` : "";
224
+ queryParams.append("app_filter", appFilter);
225
+ const query = queryParams.toString() ? `?${queryParams.toString()}` : "";
218
226
  return this.http.get(
219
227
  `/integrations/connections/${encodeURIComponent(userId)}${query}`
220
228
  );
@@ -252,23 +260,41 @@ class IntegrationsResource {
252
260
  const urlParams = new URLSearchParams();
253
261
  if (params?.includeAvailable)
254
262
  urlParams.append("include_available", "true");
263
+ if (params?.provider)
264
+ urlParams.append("provider", params.provider);
255
265
  const query = urlParams.toString() ? `?${urlParams.toString()}` : "";
256
266
  return this.http.get(`/integrations/apps${query}`);
257
267
  }
268
+ /**
269
+ * List available integration providers
270
+ */
271
+ async listProviders() {
272
+ return this.http.get("/integrations/providers");
273
+ }
258
274
  /**
259
275
  * Check if a specific app is enabled
260
276
  */
261
- async checkAppEnabled(appName) {
277
+ async checkAppEnabled(params) {
278
+ const { appName, provider } = params;
279
+ const queryParams = new URLSearchParams();
280
+ if (provider)
281
+ queryParams.append("provider", provider);
282
+ const query = queryParams.toString() ? `?${queryParams.toString()}` : "";
262
283
  return this.http.get(
263
- `/integrations/apps/${appName.toUpperCase()}/enabled`
284
+ `/integrations/apps/${appName.toUpperCase()}/enabled${query}`
264
285
  );
265
286
  }
266
287
  /**
267
288
  * Enable or disable an app for the tenant
268
289
  */
269
- async updateAppStatus(appName, enabled) {
290
+ async updateAppStatus(params) {
291
+ const { appName, enabled, provider } = params;
292
+ const queryParams = new URLSearchParams();
293
+ queryParams.append("enabled", String(enabled));
294
+ if (provider)
295
+ queryParams.append("provider", provider);
270
296
  return this.http.put(
271
- `/integrations/apps/${appName.toUpperCase()}?enabled=${enabled}`
297
+ `/integrations/apps/${appName.toUpperCase()}?${queryParams.toString()}`
272
298
  );
273
299
  }
274
300
  /**
@@ -281,14 +307,14 @@ class IntegrationsResource {
281
307
  );
282
308
  }
283
309
  // Aliases for backward compatibility with client methods
284
- async isAppEnabled(appName) {
285
- return this.checkAppEnabled(appName);
310
+ async isAppEnabled(appName, provider) {
311
+ return this.checkAppEnabled({ appName, provider });
286
312
  }
287
313
  async setAppEnabled(appName, data) {
288
- return this.updateAppStatus(appName, data.enabled);
314
+ return this.updateAppStatus({ appName, enabled: data.enabled, provider: data.provider });
289
315
  }
290
316
  async listConnections(userId, params) {
291
- return this.getUserConnections(userId, params?.appFilter);
317
+ return this.getUserConnections({ userId, appFilter: params?.appFilter, provider: params?.provider });
292
318
  }
293
319
  }
294
320
 
@@ -1193,7 +1219,7 @@ class LumnisClient {
1193
1219
  return this.integrations.initiateConnection(params);
1194
1220
  }
1195
1221
  async getConnectionStatus(userId, appName) {
1196
- return this.integrations.getConnectionStatus(userId, appName);
1222
+ return this.integrations.getConnectionStatus({ userId, appName });
1197
1223
  }
1198
1224
  async listConnections(userId, params) {
1199
1225
  return this.integrations.listConnections(userId, params);
@@ -1286,6 +1312,15 @@ function createSimpleProgressCallback() {
1286
1312
  };
1287
1313
  }
1288
1314
 
1315
+ var ProviderType = /* @__PURE__ */ ((ProviderType2) => {
1316
+ ProviderType2["COMPOSIO"] = "composio";
1317
+ ProviderType2["UNIPILE"] = "unipile";
1318
+ ProviderType2["NANGO"] = "nango";
1319
+ ProviderType2["ARCADE"] = "arcade";
1320
+ ProviderType2["MERGE"] = "merge";
1321
+ return ProviderType2;
1322
+ })(ProviderType || {});
1323
+
1289
1324
  function displayProgress(update, indent = " ") {
1290
1325
  if (update.state === "tool_update") {
1291
1326
  if (update.toolCalls && update.toolCalls.length > 0) {
@@ -1381,4 +1416,4 @@ class ProgressTracker {
1381
1416
  }
1382
1417
  }
1383
1418
 
1384
- export { AuthenticationError, InternalServerError, LocalFileNotSupportedError, LumnisClient, LumnisError, NotFoundError, ProgressTracker, RateLimitError, ValidationError, LumnisClient as default, displayProgress, formatProgressEntry };
1419
+ export { AuthenticationError, InternalServerError, LocalFileNotSupportedError, LumnisClient, LumnisError, NotFoundError, ProgressTracker, ProviderType, RateLimitError, ValidationError, LumnisClient as default, displayProgress, formatProgressEntry };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lumnisai",
3
3
  "type": "module",
4
- "version": "0.1.4",
4
+ "version": "0.1.5",
5
5
  "description": "Official Node.js SDK for the Lumnis AI API",
6
6
  "author": "Lumnis AI",
7
7
  "license": "MIT",