@composio/core 0.1.36-next.8 → 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
@@ -1706,7 +1706,7 @@ var ConnectedAccountRetrieveResponseSchema = import_zod6.z.object({
1706
1706
  });
1707
1707
  var ConnectedAccountListParamsSchema = import_zod6.z.object({
1708
1708
  authConfigIds: import_zod6.z.array(import_zod6.z.string()).nullable().optional().describe("The auth config ids of the connected accounts"),
1709
- cursor: import_zod6.z.number().nullable().optional().describe("The cursor to paginate through the connected accounts"),
1709
+ cursor: import_zod6.z.string().nullish().describe("The cursor to paginate through the connected accounts"),
1710
1710
  labels: import_zod6.z.array(import_zod6.z.string()).nullable().optional().describe("The labels of the connected accounts"),
1711
1711
  limit: import_zod6.z.number().nullable().optional().describe("The limit of the connected accounts to return"),
1712
1712
  orderBy: import_zod6.z.enum(["created_at", "updated_at"]).optional().describe("The order by of the connected accounts"),
@@ -1716,7 +1716,7 @@ var ConnectedAccountListParamsSchema = import_zod6.z.object({
1716
1716
  });
1717
1717
  var ConnectedAccountListResponseSchema = import_zod6.z.object({
1718
1718
  items: import_zod6.z.array(ConnectedAccountRetrieveResponseSchema).describe("The list of connected accounts"),
1719
- nextCursor: import_zod6.z.string().nullable().describe("The next cursor to paginate through the connected accounts"),
1719
+ nextCursor: import_zod6.z.string().nullish().describe("The next cursor to paginate through the connected accounts"),
1720
1720
  totalPages: import_zod6.z.number().describe("The total number of pages of connected accounts")
1721
1721
  });
1722
1722
 
@@ -3133,7 +3133,7 @@ var AuthConfigs = class {
3133
3133
  * @private
3134
3134
  */
3135
3135
  parseAuthConfigRetrieveResponse(authConfig) {
3136
- const result = AuthConfigRetrieveResponseSchema.safeParse({
3136
+ const responseToParse = {
3137
3137
  id: authConfig.id,
3138
3138
  name: authConfig.name,
3139
3139
  noOfConnections: authConfig.no_of_connections,
@@ -3151,11 +3151,13 @@ var AuthConfigs = class {
3151
3151
  createdAt: authConfig.created_at,
3152
3152
  lastUpdatedAt: authConfig.last_updated_at,
3153
3153
  restrictToFollowingTools: authConfig.restrict_to_following_tools
3154
- });
3154
+ };
3155
+ const result = AuthConfigRetrieveResponseSchema.safeParse(responseToParse);
3155
3156
  if (result.error) {
3156
- throw new ValidationError("Failed to parse auth config response", {
3157
+ logger_default.error("Failed to parse auth config response", {
3157
3158
  cause: result.error
3158
3159
  });
3160
+ return responseToParse;
3159
3161
  }
3160
3162
  return result.data;
3161
3163
  }
@@ -4213,7 +4215,7 @@ var TriggerTypeSchema = import_zod8.z.object({
4213
4215
  });
4214
4216
  var TriggersTypeListResponseSchema = import_zod8.z.object({
4215
4217
  items: import_zod8.z.array(TriggerTypeSchema),
4216
- nextCursor: import_zod8.z.string().nullable(),
4218
+ nextCursor: import_zod8.z.string().nullish(),
4217
4219
  totalPages: import_zod8.z.number()
4218
4220
  });
4219
4221
 
@@ -6142,7 +6144,7 @@ var OpenAIProvider = class extends BaseNonAgenticProvider {
6142
6144
  };
6143
6145
 
6144
6146
  // package.json
6145
- var version = "0.1.36-next.8";
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
@@ -29180,7 +29180,7 @@ type ConnectedAccountRetrieveResponse = z.infer<typeof ConnectedAccountRetrieveR
29180
29180
  type ConnectedAccountListResponseItem = Omit<ConnectedAccountRetrieveResponse, 'params'>;
29181
29181
  declare const ConnectedAccountListParamsSchema: z.ZodObject<{
29182
29182
  authConfigIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
29183
- cursor: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
29183
+ cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29184
29184
  labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
29185
29185
  limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
29186
29186
  orderBy: z.ZodOptional<z.ZodEnum<["created_at", "updated_at"]>>;
@@ -29191,7 +29191,7 @@ declare const ConnectedAccountListParamsSchema: z.ZodObject<{
29191
29191
  limit?: number | null | undefined;
29192
29192
  authConfigIds?: string[] | null | undefined;
29193
29193
  userIds?: string[] | null | undefined;
29194
- cursor?: number | null | undefined;
29194
+ cursor?: string | null | undefined;
29195
29195
  labels?: string[] | null | undefined;
29196
29196
  orderBy?: "created_at" | "updated_at" | undefined;
29197
29197
  statuses?: ("INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED")[] | null | undefined;
@@ -29200,7 +29200,7 @@ declare const ConnectedAccountListParamsSchema: z.ZodObject<{
29200
29200
  limit?: number | null | undefined;
29201
29201
  authConfigIds?: string[] | null | undefined;
29202
29202
  userIds?: string[] | null | undefined;
29203
- cursor?: number | null | undefined;
29203
+ cursor?: string | null | undefined;
29204
29204
  labels?: string[] | null | undefined;
29205
29205
  orderBy?: "created_at" | "updated_at" | undefined;
29206
29206
  statuses?: ("INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED")[] | null | undefined;
@@ -34945,7 +34945,7 @@ declare const ConnectedAccountListResponseSchema: z.ZodObject<{
34945
34945
  } | undefined;
34946
34946
  testRequestEndpoint?: string | undefined;
34947
34947
  }>, "many">;
34948
- nextCursor: z.ZodNullable<z.ZodString>;
34948
+ nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34949
34949
  totalPages: z.ZodNumber;
34950
34950
  }, "strip", z.ZodTypeAny, {
34951
34951
  items: {
@@ -35790,8 +35790,8 @@ declare const ConnectedAccountListResponseSchema: z.ZodObject<{
35790
35790
  } | undefined;
35791
35791
  testRequestEndpoint?: string | undefined;
35792
35792
  }[];
35793
- nextCursor: string | null;
35794
35793
  totalPages: number;
35794
+ nextCursor?: string | null | undefined;
35795
35795
  }, {
35796
35796
  items: {
35797
35797
  status: "INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED";
@@ -36635,8 +36635,8 @@ declare const ConnectedAccountListResponseSchema: z.ZodObject<{
36635
36635
  } | undefined;
36636
36636
  testRequestEndpoint?: string | undefined;
36637
36637
  }[];
36638
- nextCursor: string | null;
36639
36638
  totalPages: number;
36639
+ nextCursor?: string | null | undefined;
36640
36640
  }>;
36641
36641
  type ConnectedAccountListResponse = z.infer<typeof ConnectedAccountListResponseSchema>;
36642
36642
 
@@ -37571,7 +37571,7 @@ declare const TriggersTypeListResponseSchema: z.ZodObject<{
37571
37571
  payload: Record<string, unknown>;
37572
37572
  instructions?: string | undefined;
37573
37573
  }>, "many">;
37574
- nextCursor: z.ZodNullable<z.ZodString>;
37574
+ nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37575
37575
  totalPages: z.ZodNumber;
37576
37576
  }, "strip", z.ZodTypeAny, {
37577
37577
  items: {
@@ -37587,8 +37587,8 @@ declare const TriggersTypeListResponseSchema: z.ZodObject<{
37587
37587
  payload: Record<string, unknown>;
37588
37588
  instructions?: string | undefined;
37589
37589
  }[];
37590
- nextCursor: string | null;
37591
37590
  totalPages: number;
37591
+ nextCursor?: string | null | undefined;
37592
37592
  }, {
37593
37593
  items: {
37594
37594
  slug: string;
@@ -37603,8 +37603,8 @@ declare const TriggersTypeListResponseSchema: z.ZodObject<{
37603
37603
  payload: Record<string, unknown>;
37604
37604
  instructions?: string | undefined;
37605
37605
  }[];
37606
- nextCursor: string | null;
37607
37606
  totalPages: number;
37607
+ nextCursor?: string | null | undefined;
37608
37608
  }>;
37609
37609
  type TriggersTypeListResponse = z.infer<typeof TriggersTypeListResponseSchema>;
37610
37610
  type TriggersTypeRetrieveResponse = z.infer<typeof TriggerTypeSchema>;
package/dist/index.d.ts CHANGED
@@ -29180,7 +29180,7 @@ type ConnectedAccountRetrieveResponse = z.infer<typeof ConnectedAccountRetrieveR
29180
29180
  type ConnectedAccountListResponseItem = Omit<ConnectedAccountRetrieveResponse, 'params'>;
29181
29181
  declare const ConnectedAccountListParamsSchema: z.ZodObject<{
29182
29182
  authConfigIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
29183
- cursor: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
29183
+ cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29184
29184
  labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
29185
29185
  limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
29186
29186
  orderBy: z.ZodOptional<z.ZodEnum<["created_at", "updated_at"]>>;
@@ -29191,7 +29191,7 @@ declare const ConnectedAccountListParamsSchema: z.ZodObject<{
29191
29191
  limit?: number | null | undefined;
29192
29192
  authConfigIds?: string[] | null | undefined;
29193
29193
  userIds?: string[] | null | undefined;
29194
- cursor?: number | null | undefined;
29194
+ cursor?: string | null | undefined;
29195
29195
  labels?: string[] | null | undefined;
29196
29196
  orderBy?: "created_at" | "updated_at" | undefined;
29197
29197
  statuses?: ("INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED")[] | null | undefined;
@@ -29200,7 +29200,7 @@ declare const ConnectedAccountListParamsSchema: z.ZodObject<{
29200
29200
  limit?: number | null | undefined;
29201
29201
  authConfigIds?: string[] | null | undefined;
29202
29202
  userIds?: string[] | null | undefined;
29203
- cursor?: number | null | undefined;
29203
+ cursor?: string | null | undefined;
29204
29204
  labels?: string[] | null | undefined;
29205
29205
  orderBy?: "created_at" | "updated_at" | undefined;
29206
29206
  statuses?: ("INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED")[] | null | undefined;
@@ -34945,7 +34945,7 @@ declare const ConnectedAccountListResponseSchema: z.ZodObject<{
34945
34945
  } | undefined;
34946
34946
  testRequestEndpoint?: string | undefined;
34947
34947
  }>, "many">;
34948
- nextCursor: z.ZodNullable<z.ZodString>;
34948
+ nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34949
34949
  totalPages: z.ZodNumber;
34950
34950
  }, "strip", z.ZodTypeAny, {
34951
34951
  items: {
@@ -35790,8 +35790,8 @@ declare const ConnectedAccountListResponseSchema: z.ZodObject<{
35790
35790
  } | undefined;
35791
35791
  testRequestEndpoint?: string | undefined;
35792
35792
  }[];
35793
- nextCursor: string | null;
35794
35793
  totalPages: number;
35794
+ nextCursor?: string | null | undefined;
35795
35795
  }, {
35796
35796
  items: {
35797
35797
  status: "INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED";
@@ -36635,8 +36635,8 @@ declare const ConnectedAccountListResponseSchema: z.ZodObject<{
36635
36635
  } | undefined;
36636
36636
  testRequestEndpoint?: string | undefined;
36637
36637
  }[];
36638
- nextCursor: string | null;
36639
36638
  totalPages: number;
36639
+ nextCursor?: string | null | undefined;
36640
36640
  }>;
36641
36641
  type ConnectedAccountListResponse = z.infer<typeof ConnectedAccountListResponseSchema>;
36642
36642
 
@@ -37571,7 +37571,7 @@ declare const TriggersTypeListResponseSchema: z.ZodObject<{
37571
37571
  payload: Record<string, unknown>;
37572
37572
  instructions?: string | undefined;
37573
37573
  }>, "many">;
37574
- nextCursor: z.ZodNullable<z.ZodString>;
37574
+ nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37575
37575
  totalPages: z.ZodNumber;
37576
37576
  }, "strip", z.ZodTypeAny, {
37577
37577
  items: {
@@ -37587,8 +37587,8 @@ declare const TriggersTypeListResponseSchema: z.ZodObject<{
37587
37587
  payload: Record<string, unknown>;
37588
37588
  instructions?: string | undefined;
37589
37589
  }[];
37590
- nextCursor: string | null;
37591
37590
  totalPages: number;
37591
+ nextCursor?: string | null | undefined;
37592
37592
  }, {
37593
37593
  items: {
37594
37594
  slug: string;
@@ -37603,8 +37603,8 @@ declare const TriggersTypeListResponseSchema: z.ZodObject<{
37603
37603
  payload: Record<string, unknown>;
37604
37604
  instructions?: string | undefined;
37605
37605
  }[];
37606
- nextCursor: string | null;
37607
37606
  totalPages: number;
37607
+ nextCursor?: string | null | undefined;
37608
37608
  }>;
37609
37609
  type TriggersTypeListResponse = z.infer<typeof TriggersTypeListResponseSchema>;
37610
37610
  type TriggersTypeRetrieveResponse = z.infer<typeof TriggerTypeSchema>;
package/dist/index.js CHANGED
@@ -1545,7 +1545,7 @@ var ConnectedAccountRetrieveResponseSchema = z4.object({
1545
1545
  });
1546
1546
  var ConnectedAccountListParamsSchema = z4.object({
1547
1547
  authConfigIds: z4.array(z4.string()).nullable().optional().describe("The auth config ids of the connected accounts"),
1548
- cursor: z4.number().nullable().optional().describe("The cursor to paginate through the connected accounts"),
1548
+ cursor: z4.string().nullish().describe("The cursor to paginate through the connected accounts"),
1549
1549
  labels: z4.array(z4.string()).nullable().optional().describe("The labels of the connected accounts"),
1550
1550
  limit: z4.number().nullable().optional().describe("The limit of the connected accounts to return"),
1551
1551
  orderBy: z4.enum(["created_at", "updated_at"]).optional().describe("The order by of the connected accounts"),
@@ -1555,7 +1555,7 @@ var ConnectedAccountListParamsSchema = z4.object({
1555
1555
  });
1556
1556
  var ConnectedAccountListResponseSchema = z4.object({
1557
1557
  items: z4.array(ConnectedAccountRetrieveResponseSchema).describe("The list of connected accounts"),
1558
- nextCursor: z4.string().nullable().describe("The next cursor to paginate through the connected accounts"),
1558
+ nextCursor: z4.string().nullish().describe("The next cursor to paginate through the connected accounts"),
1559
1559
  totalPages: z4.number().describe("The total number of pages of connected accounts")
1560
1560
  });
1561
1561
 
@@ -2972,7 +2972,7 @@ var AuthConfigs = class {
2972
2972
  * @private
2973
2973
  */
2974
2974
  parseAuthConfigRetrieveResponse(authConfig) {
2975
- const result = AuthConfigRetrieveResponseSchema.safeParse({
2975
+ const responseToParse = {
2976
2976
  id: authConfig.id,
2977
2977
  name: authConfig.name,
2978
2978
  noOfConnections: authConfig.no_of_connections,
@@ -2990,11 +2990,13 @@ var AuthConfigs = class {
2990
2990
  createdAt: authConfig.created_at,
2991
2991
  lastUpdatedAt: authConfig.last_updated_at,
2992
2992
  restrictToFollowingTools: authConfig.restrict_to_following_tools
2993
- });
2993
+ };
2994
+ const result = AuthConfigRetrieveResponseSchema.safeParse(responseToParse);
2994
2995
  if (result.error) {
2995
- throw new ValidationError("Failed to parse auth config response", {
2996
+ logger_default.error("Failed to parse auth config response", {
2996
2997
  cause: result.error
2997
2998
  });
2999
+ return responseToParse;
2998
3000
  }
2999
3001
  return result.data;
3000
3002
  }
@@ -4052,7 +4054,7 @@ var TriggerTypeSchema = z6.object({
4052
4054
  });
4053
4055
  var TriggersTypeListResponseSchema = z6.object({
4054
4056
  items: z6.array(TriggerTypeSchema),
4055
- nextCursor: z6.string().nullable(),
4057
+ nextCursor: z6.string().nullish(),
4056
4058
  totalPages: z6.number()
4057
4059
  });
4058
4060
 
@@ -5981,7 +5983,7 @@ var OpenAIProvider = class extends BaseNonAgenticProvider {
5981
5983
  };
5982
5984
 
5983
5985
  // package.json
5984
- var version = "0.1.36-next.8";
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.8",
3
+ "version": "0.1.36-next.9",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@composio/client": "0.1.0-alpha.27",
39
- "@composio/json-schema-to-zod": "0.1.10-next.3",
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",