@composio/core 0.1.36-next.7 → 0.1.36-next.9

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
@@ -275,7 +275,8 @@ var ToolListParamsSchema = import_zod.z.object({
275
275
  scopes: import_zod.z.array(import_zod.z.string()).optional(),
276
276
  tags: import_zod.z.array(import_zod.z.string()).optional(),
277
277
  limit: import_zod.z.number().optional(),
278
- search: import_zod.z.string().optional()
278
+ search: import_zod.z.string().optional(),
279
+ authConfigIds: import_zod.z.array(import_zod.z.string()).optional()
279
280
  });
280
281
  var CustomAuthParamsSchema = import_zod.z.object({
281
282
  baseURL: import_zod.z.string().optional(),
@@ -2609,9 +2610,9 @@ var Tools = class {
2609
2610
  cause: queryParams.error
2610
2611
  });
2611
2612
  }
2612
- if (!("tools" in queryParams.data || "toolkits" in queryParams.data || "search" in queryParams.data)) {
2613
+ if (!("tools" in queryParams.data || "toolkits" in queryParams.data || "search" in queryParams.data || "authConfigIds" in queryParams.data)) {
2613
2614
  throw new ValidationError(
2614
- "Invalid tool list parameters, atleast one of the following parameters is required: tools, toolkits, search"
2615
+ "Invalid tool list parameters, atleast one of the following parameters is required: tools, toolkits, search, authConfigIds"
2615
2616
  );
2616
2617
  }
2617
2618
  let limit = "limit" in queryParams.data ? queryParams.data.limit : void 0;
@@ -2624,7 +2625,8 @@ var Tools = class {
2624
2625
  ...limit ? { limit } : {},
2625
2626
  ..."tags" in queryParams.data ? { tags: queryParams.data.tags } : {},
2626
2627
  ..."scopes" in queryParams.data ? { scopes: queryParams.data.scopes } : {},
2627
- ..."search" in queryParams.data ? { search: queryParams.data.search } : {}
2628
+ ..."search" in queryParams.data ? { search: queryParams.data.search } : {},
2629
+ ..."authConfigIds" in queryParams.data ? { auth_config_ids: queryParams.data.authConfigIds } : {}
2628
2630
  };
2629
2631
  logger_default.debug(`Fetching tools with filters: ${JSON.stringify(filters, null, 2)}`);
2630
2632
  const tools = await this.client.tools.list(filters);
@@ -3531,7 +3533,7 @@ var ConnectedAccounts = class {
3531
3533
  }
3532
3534
  rawQuery = {
3533
3535
  auth_config_ids: parsedQuery.data.authConfigIds,
3534
- cursor: parsedQuery.data.cursor,
3536
+ cursor: parsedQuery.data.cursor?.toString(),
3535
3537
  labels: parsedQuery.data.labels,
3536
3538
  limit: parsedQuery.data.limit,
3537
3539
  order_by: parsedQuery.data.orderBy,
@@ -4755,7 +4757,7 @@ var Triggers = class {
4755
4757
  });
4756
4758
  const parsedResult = transform(result).with(TriggersTypeListResponseSchema).using((raw) => ({
4757
4759
  items: raw.items,
4758
- nextCursor: raw.next_cursor,
4760
+ nextCursor: raw.next_cursor ?? null,
4759
4761
  totalPages: raw.total_pages
4760
4762
  }));
4761
4763
  return parsedResult;
@@ -6142,7 +6144,7 @@ var OpenAIProvider = class extends BaseNonAgenticProvider {
6142
6144
  };
6143
6145
 
6144
6146
  // package.json
6145
- var version = "0.1.36-next.7";
6147
+ var version = "0.1.36-next.9";
6146
6148
 
6147
6149
  // src/models/Files.ts
6148
6150
  var Files = class {
package/dist/index.d.cts CHANGED
@@ -506,6 +506,7 @@ declare const ToolListParamsSchema: z.ZodObject<{
506
506
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
507
507
  limit: z.ZodOptional<z.ZodNumber>;
508
508
  search: z.ZodOptional<z.ZodString>;
509
+ authConfigIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
509
510
  }, "strip", z.ZodTypeAny, {
510
511
  tags?: string[] | undefined;
511
512
  scopes?: string[] | undefined;
@@ -513,6 +514,7 @@ declare const ToolListParamsSchema: z.ZodObject<{
513
514
  toolkits?: string[] | undefined;
514
515
  limit?: number | undefined;
515
516
  search?: string | undefined;
517
+ authConfigIds?: string[] | undefined;
516
518
  }, {
517
519
  tags?: string[] | undefined;
518
520
  scopes?: string[] | undefined;
@@ -520,6 +522,7 @@ declare const ToolListParamsSchema: z.ZodObject<{
520
522
  toolkits?: string[] | undefined;
521
523
  limit?: number | undefined;
522
524
  search?: string | undefined;
525
+ authConfigIds?: string[] | undefined;
523
526
  }>;
524
527
  type BaseParams = {
525
528
  limit?: number;
@@ -558,11 +561,16 @@ type SearchOnlyParams = {
558
561
  search: string;
559
562
  tags?: never;
560
563
  };
564
+ type AuthConfigIdsOnlyParams = {
565
+ authConfigIds: string[];
566
+ tools?: never;
567
+ toolkit?: never;
568
+ } & Pick<BaseParams, 'limit' | 'search' | 'tags'>;
561
569
  /**
562
570
  * ToolListParams is the parameters for the list of tools.
563
571
  * You must provide either tools or toolkits, but not both.
564
572
  */
565
- type ToolListParams = ToolsOnlyParams | ToolkitsOnlyParams | ToolkitScopeOnlyParams | SearchOnlyParams | TagsOnlyParams;
573
+ type ToolListParams = ToolsOnlyParams | ToolkitsOnlyParams | ToolkitScopeOnlyParams | SearchOnlyParams | TagsOnlyParams | AuthConfigIdsOnlyParams;
566
574
  /**
567
575
  * CustomAuthParams is the parameters for the custom authentication.
568
576
  */
@@ -29181,18 +29189,18 @@ declare const ConnectedAccountListParamsSchema: z.ZodObject<{
29181
29189
  userIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
29182
29190
  }, "strip", z.ZodTypeAny, {
29183
29191
  limit?: number | null | undefined;
29192
+ authConfigIds?: string[] | null | undefined;
29184
29193
  userIds?: string[] | null | undefined;
29185
29194
  cursor?: string | null | undefined;
29186
- authConfigIds?: string[] | null | undefined;
29187
29195
  labels?: string[] | null | undefined;
29188
29196
  orderBy?: "created_at" | "updated_at" | undefined;
29189
29197
  statuses?: ("INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED")[] | null | undefined;
29190
29198
  toolkitSlugs?: string[] | null | undefined;
29191
29199
  }, {
29192
29200
  limit?: number | null | undefined;
29201
+ authConfigIds?: string[] | null | undefined;
29193
29202
  userIds?: string[] | null | undefined;
29194
29203
  cursor?: string | null | undefined;
29195
- authConfigIds?: string[] | null | undefined;
29196
29204
  labels?: string[] | null | undefined;
29197
29205
  orderBy?: "created_at" | "updated_at" | undefined;
29198
29206
  statuses?: ("INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED")[] | null | undefined;
@@ -37163,17 +37171,17 @@ declare const TriggerInstanceListActiveParamsSchema: z.ZodObject<{
37163
37171
  triggerNames: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
37164
37172
  }, "strip", z.ZodTypeAny, {
37165
37173
  limit?: number | undefined;
37174
+ authConfigIds?: string[] | null | undefined;
37166
37175
  connectedAccountIds?: string[] | null | undefined;
37167
37176
  page?: number | undefined;
37168
- authConfigIds?: string[] | null | undefined;
37169
37177
  showDisabled?: boolean | null | undefined;
37170
37178
  triggerIds?: string[] | null | undefined;
37171
37179
  triggerNames?: string[] | null | undefined;
37172
37180
  }, {
37173
37181
  limit?: number | undefined;
37182
+ authConfigIds?: string[] | null | undefined;
37174
37183
  connectedAccountIds?: string[] | null | undefined;
37175
37184
  page?: number | undefined;
37176
- authConfigIds?: string[] | null | undefined;
37177
37185
  showDisabled?: boolean | null | undefined;
37178
37186
  triggerIds?: string[] | null | undefined;
37179
37187
  triggerNames?: string[] | null | undefined;
package/dist/index.d.ts CHANGED
@@ -506,6 +506,7 @@ declare const ToolListParamsSchema: z.ZodObject<{
506
506
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
507
507
  limit: z.ZodOptional<z.ZodNumber>;
508
508
  search: z.ZodOptional<z.ZodString>;
509
+ authConfigIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
509
510
  }, "strip", z.ZodTypeAny, {
510
511
  tags?: string[] | undefined;
511
512
  scopes?: string[] | undefined;
@@ -513,6 +514,7 @@ declare const ToolListParamsSchema: z.ZodObject<{
513
514
  toolkits?: string[] | undefined;
514
515
  limit?: number | undefined;
515
516
  search?: string | undefined;
517
+ authConfigIds?: string[] | undefined;
516
518
  }, {
517
519
  tags?: string[] | undefined;
518
520
  scopes?: string[] | undefined;
@@ -520,6 +522,7 @@ declare const ToolListParamsSchema: z.ZodObject<{
520
522
  toolkits?: string[] | undefined;
521
523
  limit?: number | undefined;
522
524
  search?: string | undefined;
525
+ authConfigIds?: string[] | undefined;
523
526
  }>;
524
527
  type BaseParams = {
525
528
  limit?: number;
@@ -558,11 +561,16 @@ type SearchOnlyParams = {
558
561
  search: string;
559
562
  tags?: never;
560
563
  };
564
+ type AuthConfigIdsOnlyParams = {
565
+ authConfigIds: string[];
566
+ tools?: never;
567
+ toolkit?: never;
568
+ } & Pick<BaseParams, 'limit' | 'search' | 'tags'>;
561
569
  /**
562
570
  * ToolListParams is the parameters for the list of tools.
563
571
  * You must provide either tools or toolkits, but not both.
564
572
  */
565
- type ToolListParams = ToolsOnlyParams | ToolkitsOnlyParams | ToolkitScopeOnlyParams | SearchOnlyParams | TagsOnlyParams;
573
+ type ToolListParams = ToolsOnlyParams | ToolkitsOnlyParams | ToolkitScopeOnlyParams | SearchOnlyParams | TagsOnlyParams | AuthConfigIdsOnlyParams;
566
574
  /**
567
575
  * CustomAuthParams is the parameters for the custom authentication.
568
576
  */
@@ -29181,18 +29189,18 @@ declare const ConnectedAccountListParamsSchema: z.ZodObject<{
29181
29189
  userIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
29182
29190
  }, "strip", z.ZodTypeAny, {
29183
29191
  limit?: number | null | undefined;
29192
+ authConfigIds?: string[] | null | undefined;
29184
29193
  userIds?: string[] | null | undefined;
29185
29194
  cursor?: string | null | undefined;
29186
- authConfigIds?: string[] | null | undefined;
29187
29195
  labels?: string[] | null | undefined;
29188
29196
  orderBy?: "created_at" | "updated_at" | undefined;
29189
29197
  statuses?: ("INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED")[] | null | undefined;
29190
29198
  toolkitSlugs?: string[] | null | undefined;
29191
29199
  }, {
29192
29200
  limit?: number | null | undefined;
29201
+ authConfigIds?: string[] | null | undefined;
29193
29202
  userIds?: string[] | null | undefined;
29194
29203
  cursor?: string | null | undefined;
29195
- authConfigIds?: string[] | null | undefined;
29196
29204
  labels?: string[] | null | undefined;
29197
29205
  orderBy?: "created_at" | "updated_at" | undefined;
29198
29206
  statuses?: ("INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED")[] | null | undefined;
@@ -37163,17 +37171,17 @@ declare const TriggerInstanceListActiveParamsSchema: z.ZodObject<{
37163
37171
  triggerNames: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
37164
37172
  }, "strip", z.ZodTypeAny, {
37165
37173
  limit?: number | undefined;
37174
+ authConfigIds?: string[] | null | undefined;
37166
37175
  connectedAccountIds?: string[] | null | undefined;
37167
37176
  page?: number | undefined;
37168
- authConfigIds?: string[] | null | undefined;
37169
37177
  showDisabled?: boolean | null | undefined;
37170
37178
  triggerIds?: string[] | null | undefined;
37171
37179
  triggerNames?: string[] | null | undefined;
37172
37180
  }, {
37173
37181
  limit?: number | undefined;
37182
+ authConfigIds?: string[] | null | undefined;
37174
37183
  connectedAccountIds?: string[] | null | undefined;
37175
37184
  page?: number | undefined;
37176
- authConfigIds?: string[] | null | undefined;
37177
37185
  showDisabled?: boolean | null | undefined;
37178
37186
  triggerIds?: string[] | null | undefined;
37179
37187
  triggerNames?: string[] | null | undefined;
package/dist/index.js CHANGED
@@ -114,7 +114,8 @@ var ToolListParamsSchema = z.object({
114
114
  scopes: z.array(z.string()).optional(),
115
115
  tags: z.array(z.string()).optional(),
116
116
  limit: z.number().optional(),
117
- search: z.string().optional()
117
+ search: z.string().optional(),
118
+ authConfigIds: z.array(z.string()).optional()
118
119
  });
119
120
  var CustomAuthParamsSchema = z.object({
120
121
  baseURL: z.string().optional(),
@@ -2448,9 +2449,9 @@ var Tools = class {
2448
2449
  cause: queryParams.error
2449
2450
  });
2450
2451
  }
2451
- if (!("tools" in queryParams.data || "toolkits" in queryParams.data || "search" in queryParams.data)) {
2452
+ if (!("tools" in queryParams.data || "toolkits" in queryParams.data || "search" in queryParams.data || "authConfigIds" in queryParams.data)) {
2452
2453
  throw new ValidationError(
2453
- "Invalid tool list parameters, atleast one of the following parameters is required: tools, toolkits, search"
2454
+ "Invalid tool list parameters, atleast one of the following parameters is required: tools, toolkits, search, authConfigIds"
2454
2455
  );
2455
2456
  }
2456
2457
  let limit = "limit" in queryParams.data ? queryParams.data.limit : void 0;
@@ -2463,7 +2464,8 @@ var Tools = class {
2463
2464
  ...limit ? { limit } : {},
2464
2465
  ..."tags" in queryParams.data ? { tags: queryParams.data.tags } : {},
2465
2466
  ..."scopes" in queryParams.data ? { scopes: queryParams.data.scopes } : {},
2466
- ..."search" in queryParams.data ? { search: queryParams.data.search } : {}
2467
+ ..."search" in queryParams.data ? { search: queryParams.data.search } : {},
2468
+ ..."authConfigIds" in queryParams.data ? { auth_config_ids: queryParams.data.authConfigIds } : {}
2467
2469
  };
2468
2470
  logger_default.debug(`Fetching tools with filters: ${JSON.stringify(filters, null, 2)}`);
2469
2471
  const tools = await this.client.tools.list(filters);
@@ -3370,7 +3372,7 @@ var ConnectedAccounts = class {
3370
3372
  }
3371
3373
  rawQuery = {
3372
3374
  auth_config_ids: parsedQuery.data.authConfigIds,
3373
- cursor: parsedQuery.data.cursor,
3375
+ cursor: parsedQuery.data.cursor?.toString(),
3374
3376
  labels: parsedQuery.data.labels,
3375
3377
  limit: parsedQuery.data.limit,
3376
3378
  order_by: parsedQuery.data.orderBy,
@@ -4594,7 +4596,7 @@ var Triggers = class {
4594
4596
  });
4595
4597
  const parsedResult = transform(result).with(TriggersTypeListResponseSchema).using((raw) => ({
4596
4598
  items: raw.items,
4597
- nextCursor: raw.next_cursor,
4599
+ nextCursor: raw.next_cursor ?? null,
4598
4600
  totalPages: raw.total_pages
4599
4601
  }));
4600
4602
  return parsedResult;
@@ -5981,7 +5983,7 @@ var OpenAIProvider = class extends BaseNonAgenticProvider {
5981
5983
  };
5982
5984
 
5983
5985
  // package.json
5984
- var version = "0.1.36-next.7";
5986
+ var version = "0.1.36-next.9";
5985
5987
 
5986
5988
  // src/models/Files.ts
5987
5989
  var Files = class {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@composio/core",
3
- "version": "0.1.36-next.7",
3
+ "version": "0.1.36-next.9",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -35,8 +35,8 @@
35
35
  "@composio/json-schema-to-zod": "0.1.10-next.3"
36
36
  },
37
37
  "dependencies": {
38
- "@composio/client": "0.1.0-alpha.26",
39
- "@composio/json-schema-to-zod": "0.1.10-next.3",
38
+ "@composio/client": "0.1.0-alpha.27",
39
+ "@composio/json-schema-to-zod": "0.1.10-next.4",
40
40
  "@types/json-schema": "^7.0.15",
41
41
  "chalk": "^4.1.2",
42
42
  "openai": "^4.94.0",