@composio/core 0.2.0 → 0.2.1

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
@@ -860,8 +860,10 @@ var ToolSchema = import_v33.z.object({
860
860
  tags: import_v33.z.array(import_v33.z.string()).describe("The tags of the tool. eg: Important").default([]).optional(),
861
861
  toolkit: ToolkitSchema.describe("The toolkit of the tool").optional(),
862
862
  version: import_v33.z.string().describe('The version of the tool, e.g. "20250909_00"').optional(),
863
+ isDeprecated: import_v33.z.boolean().describe("Whether the tool is deprecated").optional(),
863
864
  availableVersions: import_v33.z.array(import_v33.z.string()).describe("Available versions of the tool.").default([]).optional(),
864
- scopes: import_v33.z.array(import_v33.z.string()).describe('The scopes of the tool. eg: ["task:add"]').optional()
865
+ scopes: import_v33.z.array(import_v33.z.string()).describe('The scopes of the tool. eg: ["task:add"]').optional(),
866
+ isNoAuth: import_v33.z.boolean().describe("Do the tool support no auth?").optional()
865
867
  });
866
868
  var ToolListResponseSchema = import_v33.z.object({
867
869
  items: import_v33.z.array(ToolSchema),
@@ -2787,7 +2789,9 @@ var Tools = class {
2787
2789
  ...tool,
2788
2790
  inputParameters: tool.input_parameters,
2789
2791
  outputParameters: tool.output_parameters,
2790
- availableVersions: tool.available_versions
2792
+ availableVersions: tool.available_versions,
2793
+ isDeprecated: tool.is_deprecated,
2794
+ isNoAuth: tool.no_auth
2791
2795
  });
2792
2796
  }
2793
2797
  /**
@@ -3450,7 +3454,8 @@ var ToolKitMetaSchema = import_v37.z.object({
3450
3454
  logo: import_v37.z.string().optional(),
3451
3455
  toolsCount: import_v37.z.number().optional(),
3452
3456
  triggersCount: import_v37.z.number().optional(),
3453
- updatedAt: import_v37.z.string().optional()
3457
+ updatedAt: import_v37.z.string().optional(),
3458
+ availableVersions: import_v37.z.array(import_v37.z.string()).optional()
3454
3459
  });
3455
3460
  var ToolKitItemSchema = import_v37.z.object({
3456
3461
  name: import_v37.z.string(),
@@ -4285,7 +4290,8 @@ var transformToolkitRetrieveResponse = (response) => {
4285
4290
  categories: response2.meta.categories?.map((category) => ({
4286
4291
  slug: category.slug,
4287
4292
  name: category.name
4288
- }))
4293
+ })),
4294
+ availableVersions: response2.meta.available_versions
4289
4295
  // appUrl: response.meta.app_url, @TODO Update the client type to include this
4290
4296
  },
4291
4297
  isLocalToolkit: response2.is_local_toolkit,
@@ -4663,7 +4669,8 @@ var TriggerTypeSchema = import_v38.z.object({
4663
4669
  name: import_v38.z.string()
4664
4670
  }),
4665
4671
  payload: import_v38.z.record(import_v38.z.unknown()),
4666
- config: import_v38.z.record(import_v38.z.unknown())
4672
+ config: import_v38.z.record(import_v38.z.unknown()),
4673
+ version: import_v38.z.string().optional()
4667
4674
  });
4668
4675
  var TriggersTypeListResponseSchema = import_v38.z.object({
4669
4676
  items: import_v38.z.array(TriggerTypeSchema),
@@ -4979,6 +4986,7 @@ function transformTriggerTypeRetrieveResponse(response) {
4979
4986
  slug: response2.toolkit.slug,
4980
4987
  name: response2.toolkit.name
4981
4988
  },
4989
+ version: response2.version,
4982
4990
  payload: response2.payload,
4983
4991
  config: response2.config
4984
4992
  }));
@@ -5015,9 +5023,11 @@ function transformTriggerInstanceListActiveResponse(response) {
5015
5023
  var Triggers = class {
5016
5024
  client;
5017
5025
  pusherService;
5018
- constructor(client) {
5026
+ toolkitVersions;
5027
+ constructor(client, config) {
5019
5028
  this.client = client;
5020
5029
  this.pusherService = new PusherService(client);
5030
+ this.toolkitVersions = config?.toolkitVersions ?? "latest";
5021
5031
  telemetry.instrument(this);
5022
5032
  }
5023
5033
  /**
@@ -5206,7 +5216,8 @@ var Triggers = class {
5206
5216
  const result = await this.client.triggersTypes.list({
5207
5217
  cursor: parsedQuery.cursor,
5208
5218
  limit: parsedQuery.limit,
5209
- toolkit_slugs: parsedQuery.toolkits
5219
+ toolkit_slugs: parsedQuery.toolkits,
5220
+ toolkit_versions: this.toolkitVersions
5210
5221
  });
5211
5222
  return transformTriggerTypeListResponse(result);
5212
5223
  }
@@ -7340,7 +7351,7 @@ var OpenAIProvider = class extends BaseNonAgenticProvider {
7340
7351
  };
7341
7352
 
7342
7353
  // package.json
7343
- var version = "0.2.0";
7354
+ var version = "0.2.1";
7344
7355
 
7345
7356
  // src/models/Files.ts
7346
7357
  var Files = class {
@@ -7562,7 +7573,7 @@ var Composio = class _Composio {
7562
7573
  this.tools = new Tools(this.client, this.provider, this.config);
7563
7574
  this.mcp = new MCP(this.client);
7564
7575
  this.toolkits = new Toolkits(this.client);
7565
- this.triggers = new Triggers(this.client);
7576
+ this.triggers = new Triggers(this.client, this.config);
7566
7577
  this.authConfigs = new AuthConfigs(this.client);
7567
7578
  this.files = new Files(this.client);
7568
7579
  this.connectedAccounts = new ConnectedAccounts(this.client);
package/dist/index.d.cts CHANGED
@@ -135,8 +135,10 @@ declare const ToolSchema: z.ZodObject<{
135
135
  logo?: string | undefined;
136
136
  }>>;
137
137
  version: z.ZodOptional<z.ZodString>;
138
+ isDeprecated: z.ZodOptional<z.ZodBoolean>;
138
139
  availableVersions: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
139
140
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
141
+ isNoAuth: z.ZodOptional<z.ZodBoolean>;
140
142
  }, "strip", z.ZodTypeAny, {
141
143
  name: string;
142
144
  slug: string;
@@ -177,7 +179,9 @@ declare const ToolSchema: z.ZodObject<{
177
179
  additionalProperties?: boolean | undefined;
178
180
  } | undefined;
179
181
  tags?: string[] | undefined;
182
+ isDeprecated?: boolean | undefined;
180
183
  availableVersions?: string[] | undefined;
184
+ isNoAuth?: boolean | undefined;
181
185
  }, {
182
186
  name: string;
183
187
  slug: string;
@@ -218,7 +222,9 @@ declare const ToolSchema: z.ZodObject<{
218
222
  additionalProperties?: boolean | undefined;
219
223
  } | undefined;
220
224
  tags?: string[] | undefined;
225
+ isDeprecated?: boolean | undefined;
221
226
  availableVersions?: string[] | undefined;
227
+ isNoAuth?: boolean | undefined;
222
228
  }>;
223
229
  type Tool = z.infer<typeof ToolSchema>;
224
230
  /**
@@ -324,8 +330,10 @@ declare const ToolListResponseSchema: z.ZodObject<{
324
330
  logo?: string | undefined;
325
331
  }>>;
326
332
  version: z.ZodOptional<z.ZodString>;
333
+ isDeprecated: z.ZodOptional<z.ZodBoolean>;
327
334
  availableVersions: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
328
335
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
336
+ isNoAuth: z.ZodOptional<z.ZodBoolean>;
329
337
  }, "strip", z.ZodTypeAny, {
330
338
  name: string;
331
339
  slug: string;
@@ -366,7 +374,9 @@ declare const ToolListResponseSchema: z.ZodObject<{
366
374
  additionalProperties?: boolean | undefined;
367
375
  } | undefined;
368
376
  tags?: string[] | undefined;
377
+ isDeprecated?: boolean | undefined;
369
378
  availableVersions?: string[] | undefined;
379
+ isNoAuth?: boolean | undefined;
370
380
  }, {
371
381
  name: string;
372
382
  slug: string;
@@ -407,7 +417,9 @@ declare const ToolListResponseSchema: z.ZodObject<{
407
417
  additionalProperties?: boolean | undefined;
408
418
  } | undefined;
409
419
  tags?: string[] | undefined;
420
+ isDeprecated?: boolean | undefined;
410
421
  availableVersions?: string[] | undefined;
422
+ isNoAuth?: boolean | undefined;
411
423
  }>, "many">;
412
424
  nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
413
425
  totalPages: z.ZodNumber;
@@ -452,7 +464,9 @@ declare const ToolListResponseSchema: z.ZodObject<{
452
464
  additionalProperties?: boolean | undefined;
453
465
  } | undefined;
454
466
  tags?: string[] | undefined;
467
+ isDeprecated?: boolean | undefined;
455
468
  availableVersions?: string[] | undefined;
469
+ isNoAuth?: boolean | undefined;
456
470
  }[];
457
471
  totalPages: number;
458
472
  nextCursor?: string | null | undefined;
@@ -497,7 +511,9 @@ declare const ToolListResponseSchema: z.ZodObject<{
497
511
  additionalProperties?: boolean | undefined;
498
512
  } | undefined;
499
513
  tags?: string[] | undefined;
514
+ isDeprecated?: boolean | undefined;
500
515
  availableVersions?: string[] | undefined;
516
+ isNoAuth?: boolean | undefined;
501
517
  }[];
502
518
  totalPages: number;
503
519
  nextCursor?: string | null | undefined;
@@ -17400,10 +17416,12 @@ declare const ToolKitMetaSchema: z.ZodObject<{
17400
17416
  toolsCount: z.ZodOptional<z.ZodNumber>;
17401
17417
  triggersCount: z.ZodOptional<z.ZodNumber>;
17402
17418
  updatedAt: z.ZodOptional<z.ZodString>;
17419
+ availableVersions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
17403
17420
  }, "strip", z.ZodTypeAny, {
17404
17421
  logo?: string | undefined;
17405
17422
  createdAt?: string | undefined;
17406
17423
  description?: string | undefined;
17424
+ availableVersions?: string[] | undefined;
17407
17425
  updatedAt?: string | undefined;
17408
17426
  categories?: {
17409
17427
  name: string;
@@ -17416,6 +17434,7 @@ declare const ToolKitMetaSchema: z.ZodObject<{
17416
17434
  logo?: string | undefined;
17417
17435
  createdAt?: string | undefined;
17418
17436
  description?: string | undefined;
17437
+ availableVersions?: string[] | undefined;
17419
17438
  updatedAt?: string | undefined;
17420
17439
  categories?: {
17421
17440
  name: string;
@@ -17446,10 +17465,12 @@ declare const ToolKitItemSchema: z.ZodObject<{
17446
17465
  toolsCount: z.ZodOptional<z.ZodNumber>;
17447
17466
  triggersCount: z.ZodOptional<z.ZodNumber>;
17448
17467
  updatedAt: z.ZodOptional<z.ZodString>;
17468
+ availableVersions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
17449
17469
  }, "strip", z.ZodTypeAny, {
17450
17470
  logo?: string | undefined;
17451
17471
  createdAt?: string | undefined;
17452
17472
  description?: string | undefined;
17473
+ availableVersions?: string[] | undefined;
17453
17474
  updatedAt?: string | undefined;
17454
17475
  categories?: {
17455
17476
  name: string;
@@ -17462,6 +17483,7 @@ declare const ToolKitItemSchema: z.ZodObject<{
17462
17483
  logo?: string | undefined;
17463
17484
  createdAt?: string | undefined;
17464
17485
  description?: string | undefined;
17486
+ availableVersions?: string[] | undefined;
17465
17487
  updatedAt?: string | undefined;
17466
17488
  categories?: {
17467
17489
  name: string;
@@ -17480,6 +17502,7 @@ declare const ToolKitItemSchema: z.ZodObject<{
17480
17502
  logo?: string | undefined;
17481
17503
  createdAt?: string | undefined;
17482
17504
  description?: string | undefined;
17505
+ availableVersions?: string[] | undefined;
17483
17506
  updatedAt?: string | undefined;
17484
17507
  categories?: {
17485
17508
  name: string;
@@ -17500,6 +17523,7 @@ declare const ToolKitItemSchema: z.ZodObject<{
17500
17523
  logo?: string | undefined;
17501
17524
  createdAt?: string | undefined;
17502
17525
  description?: string | undefined;
17526
+ availableVersions?: string[] | undefined;
17503
17527
  updatedAt?: string | undefined;
17504
17528
  categories?: {
17505
17529
  name: string;
@@ -17537,10 +17561,12 @@ declare const ToolKitListResponseSchema: z.ZodArray<z.ZodObject<{
17537
17561
  toolsCount: z.ZodOptional<z.ZodNumber>;
17538
17562
  triggersCount: z.ZodOptional<z.ZodNumber>;
17539
17563
  updatedAt: z.ZodOptional<z.ZodString>;
17564
+ availableVersions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
17540
17565
  }, "strip", z.ZodTypeAny, {
17541
17566
  logo?: string | undefined;
17542
17567
  createdAt?: string | undefined;
17543
17568
  description?: string | undefined;
17569
+ availableVersions?: string[] | undefined;
17544
17570
  updatedAt?: string | undefined;
17545
17571
  categories?: {
17546
17572
  name: string;
@@ -17553,6 +17579,7 @@ declare const ToolKitListResponseSchema: z.ZodArray<z.ZodObject<{
17553
17579
  logo?: string | undefined;
17554
17580
  createdAt?: string | undefined;
17555
17581
  description?: string | undefined;
17582
+ availableVersions?: string[] | undefined;
17556
17583
  updatedAt?: string | undefined;
17557
17584
  categories?: {
17558
17585
  name: string;
@@ -17571,6 +17598,7 @@ declare const ToolKitListResponseSchema: z.ZodArray<z.ZodObject<{
17571
17598
  logo?: string | undefined;
17572
17599
  createdAt?: string | undefined;
17573
17600
  description?: string | undefined;
17601
+ availableVersions?: string[] | undefined;
17574
17602
  updatedAt?: string | undefined;
17575
17603
  categories?: {
17576
17604
  name: string;
@@ -17591,6 +17619,7 @@ declare const ToolKitListResponseSchema: z.ZodArray<z.ZodObject<{
17591
17619
  logo?: string | undefined;
17592
17620
  createdAt?: string | undefined;
17593
17621
  description?: string | undefined;
17622
+ availableVersions?: string[] | undefined;
17594
17623
  updatedAt?: string | undefined;
17595
17624
  categories?: {
17596
17625
  name: string;
@@ -17991,10 +18020,12 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
17991
18020
  toolsCount: z.ZodOptional<z.ZodNumber>;
17992
18021
  triggersCount: z.ZodOptional<z.ZodNumber>;
17993
18022
  updatedAt: z.ZodOptional<z.ZodString>;
18023
+ availableVersions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
17994
18024
  }, "strip", z.ZodTypeAny, {
17995
18025
  logo?: string | undefined;
17996
18026
  createdAt?: string | undefined;
17997
18027
  description?: string | undefined;
18028
+ availableVersions?: string[] | undefined;
17998
18029
  updatedAt?: string | undefined;
17999
18030
  categories?: {
18000
18031
  name: string;
@@ -18007,6 +18038,7 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
18007
18038
  logo?: string | undefined;
18008
18039
  createdAt?: string | undefined;
18009
18040
  description?: string | undefined;
18041
+ availableVersions?: string[] | undefined;
18010
18042
  updatedAt?: string | undefined;
18011
18043
  categories?: {
18012
18044
  name: string;
@@ -18360,6 +18392,7 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
18360
18392
  logo?: string | undefined;
18361
18393
  createdAt?: string | undefined;
18362
18394
  description?: string | undefined;
18395
+ availableVersions?: string[] | undefined;
18363
18396
  updatedAt?: string | undefined;
18364
18397
  categories?: {
18365
18398
  name: string;
@@ -18425,6 +18458,7 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
18425
18458
  logo?: string | undefined;
18426
18459
  createdAt?: string | undefined;
18427
18460
  description?: string | undefined;
18461
+ availableVersions?: string[] | undefined;
18428
18462
  updatedAt?: string | undefined;
18429
18463
  categories?: {
18430
18464
  name: string;
@@ -64792,6 +64826,7 @@ declare const TriggerTypeSchema: z.ZodObject<{
64792
64826
  }>;
64793
64827
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
64794
64828
  config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
64829
+ version: z.ZodOptional<z.ZodString>;
64795
64830
  }, "strip", z.ZodTypeAny, {
64796
64831
  name: string;
64797
64832
  toolkit: {
@@ -64803,6 +64838,7 @@ declare const TriggerTypeSchema: z.ZodObject<{
64803
64838
  description: string;
64804
64839
  config: Record<string, unknown>;
64805
64840
  payload: Record<string, unknown>;
64841
+ version?: string | undefined;
64806
64842
  instructions?: string | undefined;
64807
64843
  }, {
64808
64844
  name: string;
@@ -64815,6 +64851,7 @@ declare const TriggerTypeSchema: z.ZodObject<{
64815
64851
  description: string;
64816
64852
  config: Record<string, unknown>;
64817
64853
  payload: Record<string, unknown>;
64854
+ version?: string | undefined;
64818
64855
  instructions?: string | undefined;
64819
64856
  }>;
64820
64857
  type TriggerType = z.infer<typeof TriggerTypeSchema>;
@@ -64839,6 +64876,7 @@ declare const TriggersTypeListResponseSchema: z.ZodObject<{
64839
64876
  }>;
64840
64877
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
64841
64878
  config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
64879
+ version: z.ZodOptional<z.ZodString>;
64842
64880
  }, "strip", z.ZodTypeAny, {
64843
64881
  name: string;
64844
64882
  toolkit: {
@@ -64850,6 +64888,7 @@ declare const TriggersTypeListResponseSchema: z.ZodObject<{
64850
64888
  description: string;
64851
64889
  config: Record<string, unknown>;
64852
64890
  payload: Record<string, unknown>;
64891
+ version?: string | undefined;
64853
64892
  instructions?: string | undefined;
64854
64893
  }, {
64855
64894
  name: string;
@@ -64862,6 +64901,7 @@ declare const TriggersTypeListResponseSchema: z.ZodObject<{
64862
64901
  description: string;
64863
64902
  config: Record<string, unknown>;
64864
64903
  payload: Record<string, unknown>;
64904
+ version?: string | undefined;
64865
64905
  instructions?: string | undefined;
64866
64906
  }>, "many">;
64867
64907
  nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -64878,6 +64918,7 @@ declare const TriggersTypeListResponseSchema: z.ZodObject<{
64878
64918
  description: string;
64879
64919
  config: Record<string, unknown>;
64880
64920
  payload: Record<string, unknown>;
64921
+ version?: string | undefined;
64881
64922
  instructions?: string | undefined;
64882
64923
  }[];
64883
64924
  totalPages: number;
@@ -64894,6 +64935,7 @@ declare const TriggersTypeListResponseSchema: z.ZodObject<{
64894
64935
  description: string;
64895
64936
  config: Record<string, unknown>;
64896
64937
  payload: Record<string, unknown>;
64938
+ version?: string | undefined;
64897
64939
  instructions?: string | undefined;
64898
64940
  }[];
64899
64941
  totalPages: number;
@@ -64925,10 +64967,11 @@ type TriggerEventData<TPayload = unknown> = TPayload & {
64925
64967
  * /api/v3/trigger_instances
64926
64968
  *
64927
64969
  */
64928
- declare class Triggers {
64970
+ declare class Triggers<TProvider extends BaseComposioProvider<unknown, unknown, unknown>> {
64929
64971
  private client;
64930
64972
  private pusherService;
64931
- constructor(client: ComposioClient);
64973
+ private toolkitVersions;
64974
+ constructor(client: ComposioClient, config?: ComposioConfig<TProvider>);
64932
64975
  /**
64933
64976
  * Fetch list of all the active triggers
64934
64977
  *
@@ -66980,7 +67023,7 @@ declare class Composio<TProvider extends BaseComposioProvider<unknown, unknown,
66980
67023
  */
66981
67024
  tools: Tools<unknown, unknown, TProvider>;
66982
67025
  toolkits: Toolkits;
66983
- triggers: Triggers;
67026
+ triggers: Triggers<TProvider>;
66984
67027
  provider: TProvider;
66985
67028
  files: Files;
66986
67029
  authConfigs: AuthConfigs;
package/dist/index.d.ts CHANGED
@@ -135,8 +135,10 @@ declare const ToolSchema: z.ZodObject<{
135
135
  logo?: string | undefined;
136
136
  }>>;
137
137
  version: z.ZodOptional<z.ZodString>;
138
+ isDeprecated: z.ZodOptional<z.ZodBoolean>;
138
139
  availableVersions: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
139
140
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
141
+ isNoAuth: z.ZodOptional<z.ZodBoolean>;
140
142
  }, "strip", z.ZodTypeAny, {
141
143
  name: string;
142
144
  slug: string;
@@ -177,7 +179,9 @@ declare const ToolSchema: z.ZodObject<{
177
179
  additionalProperties?: boolean | undefined;
178
180
  } | undefined;
179
181
  tags?: string[] | undefined;
182
+ isDeprecated?: boolean | undefined;
180
183
  availableVersions?: string[] | undefined;
184
+ isNoAuth?: boolean | undefined;
181
185
  }, {
182
186
  name: string;
183
187
  slug: string;
@@ -218,7 +222,9 @@ declare const ToolSchema: z.ZodObject<{
218
222
  additionalProperties?: boolean | undefined;
219
223
  } | undefined;
220
224
  tags?: string[] | undefined;
225
+ isDeprecated?: boolean | undefined;
221
226
  availableVersions?: string[] | undefined;
227
+ isNoAuth?: boolean | undefined;
222
228
  }>;
223
229
  type Tool = z.infer<typeof ToolSchema>;
224
230
  /**
@@ -324,8 +330,10 @@ declare const ToolListResponseSchema: z.ZodObject<{
324
330
  logo?: string | undefined;
325
331
  }>>;
326
332
  version: z.ZodOptional<z.ZodString>;
333
+ isDeprecated: z.ZodOptional<z.ZodBoolean>;
327
334
  availableVersions: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
328
335
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
336
+ isNoAuth: z.ZodOptional<z.ZodBoolean>;
329
337
  }, "strip", z.ZodTypeAny, {
330
338
  name: string;
331
339
  slug: string;
@@ -366,7 +374,9 @@ declare const ToolListResponseSchema: z.ZodObject<{
366
374
  additionalProperties?: boolean | undefined;
367
375
  } | undefined;
368
376
  tags?: string[] | undefined;
377
+ isDeprecated?: boolean | undefined;
369
378
  availableVersions?: string[] | undefined;
379
+ isNoAuth?: boolean | undefined;
370
380
  }, {
371
381
  name: string;
372
382
  slug: string;
@@ -407,7 +417,9 @@ declare const ToolListResponseSchema: z.ZodObject<{
407
417
  additionalProperties?: boolean | undefined;
408
418
  } | undefined;
409
419
  tags?: string[] | undefined;
420
+ isDeprecated?: boolean | undefined;
410
421
  availableVersions?: string[] | undefined;
422
+ isNoAuth?: boolean | undefined;
411
423
  }>, "many">;
412
424
  nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
413
425
  totalPages: z.ZodNumber;
@@ -452,7 +464,9 @@ declare const ToolListResponseSchema: z.ZodObject<{
452
464
  additionalProperties?: boolean | undefined;
453
465
  } | undefined;
454
466
  tags?: string[] | undefined;
467
+ isDeprecated?: boolean | undefined;
455
468
  availableVersions?: string[] | undefined;
469
+ isNoAuth?: boolean | undefined;
456
470
  }[];
457
471
  totalPages: number;
458
472
  nextCursor?: string | null | undefined;
@@ -497,7 +511,9 @@ declare const ToolListResponseSchema: z.ZodObject<{
497
511
  additionalProperties?: boolean | undefined;
498
512
  } | undefined;
499
513
  tags?: string[] | undefined;
514
+ isDeprecated?: boolean | undefined;
500
515
  availableVersions?: string[] | undefined;
516
+ isNoAuth?: boolean | undefined;
501
517
  }[];
502
518
  totalPages: number;
503
519
  nextCursor?: string | null | undefined;
@@ -17400,10 +17416,12 @@ declare const ToolKitMetaSchema: z.ZodObject<{
17400
17416
  toolsCount: z.ZodOptional<z.ZodNumber>;
17401
17417
  triggersCount: z.ZodOptional<z.ZodNumber>;
17402
17418
  updatedAt: z.ZodOptional<z.ZodString>;
17419
+ availableVersions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
17403
17420
  }, "strip", z.ZodTypeAny, {
17404
17421
  logo?: string | undefined;
17405
17422
  createdAt?: string | undefined;
17406
17423
  description?: string | undefined;
17424
+ availableVersions?: string[] | undefined;
17407
17425
  updatedAt?: string | undefined;
17408
17426
  categories?: {
17409
17427
  name: string;
@@ -17416,6 +17434,7 @@ declare const ToolKitMetaSchema: z.ZodObject<{
17416
17434
  logo?: string | undefined;
17417
17435
  createdAt?: string | undefined;
17418
17436
  description?: string | undefined;
17437
+ availableVersions?: string[] | undefined;
17419
17438
  updatedAt?: string | undefined;
17420
17439
  categories?: {
17421
17440
  name: string;
@@ -17446,10 +17465,12 @@ declare const ToolKitItemSchema: z.ZodObject<{
17446
17465
  toolsCount: z.ZodOptional<z.ZodNumber>;
17447
17466
  triggersCount: z.ZodOptional<z.ZodNumber>;
17448
17467
  updatedAt: z.ZodOptional<z.ZodString>;
17468
+ availableVersions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
17449
17469
  }, "strip", z.ZodTypeAny, {
17450
17470
  logo?: string | undefined;
17451
17471
  createdAt?: string | undefined;
17452
17472
  description?: string | undefined;
17473
+ availableVersions?: string[] | undefined;
17453
17474
  updatedAt?: string | undefined;
17454
17475
  categories?: {
17455
17476
  name: string;
@@ -17462,6 +17483,7 @@ declare const ToolKitItemSchema: z.ZodObject<{
17462
17483
  logo?: string | undefined;
17463
17484
  createdAt?: string | undefined;
17464
17485
  description?: string | undefined;
17486
+ availableVersions?: string[] | undefined;
17465
17487
  updatedAt?: string | undefined;
17466
17488
  categories?: {
17467
17489
  name: string;
@@ -17480,6 +17502,7 @@ declare const ToolKitItemSchema: z.ZodObject<{
17480
17502
  logo?: string | undefined;
17481
17503
  createdAt?: string | undefined;
17482
17504
  description?: string | undefined;
17505
+ availableVersions?: string[] | undefined;
17483
17506
  updatedAt?: string | undefined;
17484
17507
  categories?: {
17485
17508
  name: string;
@@ -17500,6 +17523,7 @@ declare const ToolKitItemSchema: z.ZodObject<{
17500
17523
  logo?: string | undefined;
17501
17524
  createdAt?: string | undefined;
17502
17525
  description?: string | undefined;
17526
+ availableVersions?: string[] | undefined;
17503
17527
  updatedAt?: string | undefined;
17504
17528
  categories?: {
17505
17529
  name: string;
@@ -17537,10 +17561,12 @@ declare const ToolKitListResponseSchema: z.ZodArray<z.ZodObject<{
17537
17561
  toolsCount: z.ZodOptional<z.ZodNumber>;
17538
17562
  triggersCount: z.ZodOptional<z.ZodNumber>;
17539
17563
  updatedAt: z.ZodOptional<z.ZodString>;
17564
+ availableVersions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
17540
17565
  }, "strip", z.ZodTypeAny, {
17541
17566
  logo?: string | undefined;
17542
17567
  createdAt?: string | undefined;
17543
17568
  description?: string | undefined;
17569
+ availableVersions?: string[] | undefined;
17544
17570
  updatedAt?: string | undefined;
17545
17571
  categories?: {
17546
17572
  name: string;
@@ -17553,6 +17579,7 @@ declare const ToolKitListResponseSchema: z.ZodArray<z.ZodObject<{
17553
17579
  logo?: string | undefined;
17554
17580
  createdAt?: string | undefined;
17555
17581
  description?: string | undefined;
17582
+ availableVersions?: string[] | undefined;
17556
17583
  updatedAt?: string | undefined;
17557
17584
  categories?: {
17558
17585
  name: string;
@@ -17571,6 +17598,7 @@ declare const ToolKitListResponseSchema: z.ZodArray<z.ZodObject<{
17571
17598
  logo?: string | undefined;
17572
17599
  createdAt?: string | undefined;
17573
17600
  description?: string | undefined;
17601
+ availableVersions?: string[] | undefined;
17574
17602
  updatedAt?: string | undefined;
17575
17603
  categories?: {
17576
17604
  name: string;
@@ -17591,6 +17619,7 @@ declare const ToolKitListResponseSchema: z.ZodArray<z.ZodObject<{
17591
17619
  logo?: string | undefined;
17592
17620
  createdAt?: string | undefined;
17593
17621
  description?: string | undefined;
17622
+ availableVersions?: string[] | undefined;
17594
17623
  updatedAt?: string | undefined;
17595
17624
  categories?: {
17596
17625
  name: string;
@@ -17991,10 +18020,12 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
17991
18020
  toolsCount: z.ZodOptional<z.ZodNumber>;
17992
18021
  triggersCount: z.ZodOptional<z.ZodNumber>;
17993
18022
  updatedAt: z.ZodOptional<z.ZodString>;
18023
+ availableVersions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
17994
18024
  }, "strip", z.ZodTypeAny, {
17995
18025
  logo?: string | undefined;
17996
18026
  createdAt?: string | undefined;
17997
18027
  description?: string | undefined;
18028
+ availableVersions?: string[] | undefined;
17998
18029
  updatedAt?: string | undefined;
17999
18030
  categories?: {
18000
18031
  name: string;
@@ -18007,6 +18038,7 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
18007
18038
  logo?: string | undefined;
18008
18039
  createdAt?: string | undefined;
18009
18040
  description?: string | undefined;
18041
+ availableVersions?: string[] | undefined;
18010
18042
  updatedAt?: string | undefined;
18011
18043
  categories?: {
18012
18044
  name: string;
@@ -18360,6 +18392,7 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
18360
18392
  logo?: string | undefined;
18361
18393
  createdAt?: string | undefined;
18362
18394
  description?: string | undefined;
18395
+ availableVersions?: string[] | undefined;
18363
18396
  updatedAt?: string | undefined;
18364
18397
  categories?: {
18365
18398
  name: string;
@@ -18425,6 +18458,7 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
18425
18458
  logo?: string | undefined;
18426
18459
  createdAt?: string | undefined;
18427
18460
  description?: string | undefined;
18461
+ availableVersions?: string[] | undefined;
18428
18462
  updatedAt?: string | undefined;
18429
18463
  categories?: {
18430
18464
  name: string;
@@ -64792,6 +64826,7 @@ declare const TriggerTypeSchema: z.ZodObject<{
64792
64826
  }>;
64793
64827
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
64794
64828
  config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
64829
+ version: z.ZodOptional<z.ZodString>;
64795
64830
  }, "strip", z.ZodTypeAny, {
64796
64831
  name: string;
64797
64832
  toolkit: {
@@ -64803,6 +64838,7 @@ declare const TriggerTypeSchema: z.ZodObject<{
64803
64838
  description: string;
64804
64839
  config: Record<string, unknown>;
64805
64840
  payload: Record<string, unknown>;
64841
+ version?: string | undefined;
64806
64842
  instructions?: string | undefined;
64807
64843
  }, {
64808
64844
  name: string;
@@ -64815,6 +64851,7 @@ declare const TriggerTypeSchema: z.ZodObject<{
64815
64851
  description: string;
64816
64852
  config: Record<string, unknown>;
64817
64853
  payload: Record<string, unknown>;
64854
+ version?: string | undefined;
64818
64855
  instructions?: string | undefined;
64819
64856
  }>;
64820
64857
  type TriggerType = z.infer<typeof TriggerTypeSchema>;
@@ -64839,6 +64876,7 @@ declare const TriggersTypeListResponseSchema: z.ZodObject<{
64839
64876
  }>;
64840
64877
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
64841
64878
  config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
64879
+ version: z.ZodOptional<z.ZodString>;
64842
64880
  }, "strip", z.ZodTypeAny, {
64843
64881
  name: string;
64844
64882
  toolkit: {
@@ -64850,6 +64888,7 @@ declare const TriggersTypeListResponseSchema: z.ZodObject<{
64850
64888
  description: string;
64851
64889
  config: Record<string, unknown>;
64852
64890
  payload: Record<string, unknown>;
64891
+ version?: string | undefined;
64853
64892
  instructions?: string | undefined;
64854
64893
  }, {
64855
64894
  name: string;
@@ -64862,6 +64901,7 @@ declare const TriggersTypeListResponseSchema: z.ZodObject<{
64862
64901
  description: string;
64863
64902
  config: Record<string, unknown>;
64864
64903
  payload: Record<string, unknown>;
64904
+ version?: string | undefined;
64865
64905
  instructions?: string | undefined;
64866
64906
  }>, "many">;
64867
64907
  nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -64878,6 +64918,7 @@ declare const TriggersTypeListResponseSchema: z.ZodObject<{
64878
64918
  description: string;
64879
64919
  config: Record<string, unknown>;
64880
64920
  payload: Record<string, unknown>;
64921
+ version?: string | undefined;
64881
64922
  instructions?: string | undefined;
64882
64923
  }[];
64883
64924
  totalPages: number;
@@ -64894,6 +64935,7 @@ declare const TriggersTypeListResponseSchema: z.ZodObject<{
64894
64935
  description: string;
64895
64936
  config: Record<string, unknown>;
64896
64937
  payload: Record<string, unknown>;
64938
+ version?: string | undefined;
64897
64939
  instructions?: string | undefined;
64898
64940
  }[];
64899
64941
  totalPages: number;
@@ -64925,10 +64967,11 @@ type TriggerEventData<TPayload = unknown> = TPayload & {
64925
64967
  * /api/v3/trigger_instances
64926
64968
  *
64927
64969
  */
64928
- declare class Triggers {
64970
+ declare class Triggers<TProvider extends BaseComposioProvider<unknown, unknown, unknown>> {
64929
64971
  private client;
64930
64972
  private pusherService;
64931
- constructor(client: ComposioClient);
64973
+ private toolkitVersions;
64974
+ constructor(client: ComposioClient, config?: ComposioConfig<TProvider>);
64932
64975
  /**
64933
64976
  * Fetch list of all the active triggers
64934
64977
  *
@@ -66980,7 +67023,7 @@ declare class Composio<TProvider extends BaseComposioProvider<unknown, unknown,
66980
67023
  */
66981
67024
  tools: Tools<unknown, unknown, TProvider>;
66982
67025
  toolkits: Toolkits;
66983
- triggers: Triggers;
67026
+ triggers: Triggers<TProvider>;
66984
67027
  provider: TProvider;
66985
67028
  files: Files;
66986
67029
  authConfigs: AuthConfigs;
package/dist/index.js CHANGED
@@ -683,8 +683,10 @@ var ToolSchema = z3.object({
683
683
  tags: z3.array(z3.string()).describe("The tags of the tool. eg: Important").default([]).optional(),
684
684
  toolkit: ToolkitSchema.describe("The toolkit of the tool").optional(),
685
685
  version: z3.string().describe('The version of the tool, e.g. "20250909_00"').optional(),
686
+ isDeprecated: z3.boolean().describe("Whether the tool is deprecated").optional(),
686
687
  availableVersions: z3.array(z3.string()).describe("Available versions of the tool.").default([]).optional(),
687
- scopes: z3.array(z3.string()).describe('The scopes of the tool. eg: ["task:add"]').optional()
688
+ scopes: z3.array(z3.string()).describe('The scopes of the tool. eg: ["task:add"]').optional(),
689
+ isNoAuth: z3.boolean().describe("Do the tool support no auth?").optional()
688
690
  });
689
691
  var ToolListResponseSchema = z3.object({
690
692
  items: z3.array(ToolSchema),
@@ -2610,7 +2612,9 @@ var Tools = class {
2610
2612
  ...tool,
2611
2613
  inputParameters: tool.input_parameters,
2612
2614
  outputParameters: tool.output_parameters,
2613
- availableVersions: tool.available_versions
2615
+ availableVersions: tool.available_versions,
2616
+ isDeprecated: tool.is_deprecated,
2617
+ isNoAuth: tool.no_auth
2614
2618
  });
2615
2619
  }
2616
2620
  /**
@@ -3273,7 +3277,8 @@ var ToolKitMetaSchema = z5.object({
3273
3277
  logo: z5.string().optional(),
3274
3278
  toolsCount: z5.number().optional(),
3275
3279
  triggersCount: z5.number().optional(),
3276
- updatedAt: z5.string().optional()
3280
+ updatedAt: z5.string().optional(),
3281
+ availableVersions: z5.array(z5.string()).optional()
3277
3282
  });
3278
3283
  var ToolKitItemSchema = z5.object({
3279
3284
  name: z5.string(),
@@ -4108,7 +4113,8 @@ var transformToolkitRetrieveResponse = (response) => {
4108
4113
  categories: response2.meta.categories?.map((category) => ({
4109
4114
  slug: category.slug,
4110
4115
  name: category.name
4111
- }))
4116
+ })),
4117
+ availableVersions: response2.meta.available_versions
4112
4118
  // appUrl: response.meta.app_url, @TODO Update the client type to include this
4113
4119
  },
4114
4120
  isLocalToolkit: response2.is_local_toolkit,
@@ -4486,7 +4492,8 @@ var TriggerTypeSchema = z6.object({
4486
4492
  name: z6.string()
4487
4493
  }),
4488
4494
  payload: z6.record(z6.unknown()),
4489
- config: z6.record(z6.unknown())
4495
+ config: z6.record(z6.unknown()),
4496
+ version: z6.string().optional()
4490
4497
  });
4491
4498
  var TriggersTypeListResponseSchema = z6.object({
4492
4499
  items: z6.array(TriggerTypeSchema),
@@ -4802,6 +4809,7 @@ function transformTriggerTypeRetrieveResponse(response) {
4802
4809
  slug: response2.toolkit.slug,
4803
4810
  name: response2.toolkit.name
4804
4811
  },
4812
+ version: response2.version,
4805
4813
  payload: response2.payload,
4806
4814
  config: response2.config
4807
4815
  }));
@@ -4838,9 +4846,11 @@ function transformTriggerInstanceListActiveResponse(response) {
4838
4846
  var Triggers = class {
4839
4847
  client;
4840
4848
  pusherService;
4841
- constructor(client) {
4849
+ toolkitVersions;
4850
+ constructor(client, config) {
4842
4851
  this.client = client;
4843
4852
  this.pusherService = new PusherService(client);
4853
+ this.toolkitVersions = config?.toolkitVersions ?? "latest";
4844
4854
  telemetry.instrument(this);
4845
4855
  }
4846
4856
  /**
@@ -5029,7 +5039,8 @@ var Triggers = class {
5029
5039
  const result = await this.client.triggersTypes.list({
5030
5040
  cursor: parsedQuery.cursor,
5031
5041
  limit: parsedQuery.limit,
5032
- toolkit_slugs: parsedQuery.toolkits
5042
+ toolkit_slugs: parsedQuery.toolkits,
5043
+ toolkit_versions: this.toolkitVersions
5033
5044
  });
5034
5045
  return transformTriggerTypeListResponse(result);
5035
5046
  }
@@ -7163,7 +7174,7 @@ var OpenAIProvider = class extends BaseNonAgenticProvider {
7163
7174
  };
7164
7175
 
7165
7176
  // package.json
7166
- var version = "0.2.0";
7177
+ var version = "0.2.1";
7167
7178
 
7168
7179
  // src/models/Files.ts
7169
7180
  var Files = class {
@@ -7385,7 +7396,7 @@ var Composio = class _Composio {
7385
7396
  this.tools = new Tools(this.client, this.provider, this.config);
7386
7397
  this.mcp = new MCP(this.client);
7387
7398
  this.toolkits = new Toolkits(this.client);
7388
- this.triggers = new Triggers(this.client);
7399
+ this.triggers = new Triggers(this.client, this.config);
7389
7400
  this.authConfigs = new AuthConfigs(this.client);
7390
7401
  this.files = new Files(this.client);
7391
7402
  this.connectedAccounts = new ConnectedAccounts(this.client);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@composio/core",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -39,7 +39,7 @@
39
39
  "zod": ">=3.25.76 <5"
40
40
  },
41
41
  "dependencies": {
42
- "@composio/client": "0.1.0-alpha.37",
42
+ "@composio/client": "0.1.0-alpha.38",
43
43
  "@types/json-schema": "^7.0.15",
44
44
  "chalk": "^4.1.2",
45
45
  "openai": "^5.16.0",