@composio/core 0.1.41 → 0.1.43

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
@@ -298,7 +298,7 @@ var AuthCustomConfigUpdateParamsSchema = import_zod.z.object({
298
298
  toolAccessConfig: AuthConfigToolAccessConfigSchema.optional()
299
299
  });
300
300
  var AuthDefaultConfigUpdateParamsSchema = import_zod.z.object({
301
- scopes: import_zod.z.string(),
301
+ scopes: import_zod.z.string().optional(),
302
302
  type: import_zod.z.literal("default"),
303
303
  /**
304
304
  * @deprecated - use tool access config to determine the tools that the user can perform on the auth config.
@@ -6586,7 +6586,7 @@ var OpenAIProvider = class extends BaseNonAgenticProvider {
6586
6586
  };
6587
6587
 
6588
6588
  // package.json
6589
- var version = "0.1.41";
6589
+ var version = "0.1.43";
6590
6590
 
6591
6591
  // src/models/Files.ts
6592
6592
  var Files = class {
@@ -6820,7 +6820,7 @@ var removeNonRequiredProperties = (schema) => {
6820
6820
  )
6821
6821
  );
6822
6822
  }
6823
- schema.additionalProperties = false;
6823
+ schema.additionalProperties = schema.additionalProperties ?? false;
6824
6824
  return schema;
6825
6825
  };
6826
6826
  function jsonSchemaToZodSchema(jsonSchema, { strict } = {
package/dist/index.d.cts CHANGED
@@ -70812,7 +70812,7 @@ declare const AuthCustomConfigUpdateParamsSchema: z.ZodObject<{
70812
70812
  restrictToFollowingTools?: string[] | undefined;
70813
70813
  }>;
70814
70814
  declare const AuthDefaultConfigUpdateParamsSchema: z.ZodObject<{
70815
- scopes: z.ZodString;
70815
+ scopes: z.ZodOptional<z.ZodString>;
70816
70816
  type: z.ZodLiteral<"default">;
70817
70817
  /**
70818
70818
  * @deprecated - use tool access config to determine the tools that the user can perform on the auth config.
@@ -70830,20 +70830,20 @@ declare const AuthDefaultConfigUpdateParamsSchema: z.ZodObject<{
70830
70830
  }>>;
70831
70831
  }, "strip", z.ZodTypeAny, {
70832
70832
  type: "default";
70833
- scopes: string;
70834
70833
  toolAccessConfig?: {
70835
70834
  toolsForConnectedAccountCreation?: string[] | undefined;
70836
70835
  toolsAvailableForExecution?: string[] | undefined;
70837
70836
  } | undefined;
70838
70837
  restrictToFollowingTools?: string[] | undefined;
70838
+ scopes?: string | undefined;
70839
70839
  }, {
70840
70840
  type: "default";
70841
- scopes: string;
70842
70841
  toolAccessConfig?: {
70843
70842
  toolsForConnectedAccountCreation?: string[] | undefined;
70844
70843
  toolsAvailableForExecution?: string[] | undefined;
70845
70844
  } | undefined;
70846
70845
  restrictToFollowingTools?: string[] | undefined;
70846
+ scopes?: string | undefined;
70847
70847
  }>;
70848
70848
  declare const AuthConfigUpdateParamsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
70849
70849
  credentials: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodUnknown]>>;
@@ -70879,7 +70879,7 @@ declare const AuthConfigUpdateParamsSchema: z.ZodDiscriminatedUnion<"type", [z.Z
70879
70879
  } | undefined;
70880
70880
  restrictToFollowingTools?: string[] | undefined;
70881
70881
  }>, z.ZodObject<{
70882
- scopes: z.ZodString;
70882
+ scopes: z.ZodOptional<z.ZodString>;
70883
70883
  type: z.ZodLiteral<"default">;
70884
70884
  /**
70885
70885
  * @deprecated - use tool access config to determine the tools that the user can perform on the auth config.
@@ -70897,20 +70897,20 @@ declare const AuthConfigUpdateParamsSchema: z.ZodDiscriminatedUnion<"type", [z.Z
70897
70897
  }>>;
70898
70898
  }, "strip", z.ZodTypeAny, {
70899
70899
  type: "default";
70900
- scopes: string;
70901
70900
  toolAccessConfig?: {
70902
70901
  toolsForConnectedAccountCreation?: string[] | undefined;
70903
70902
  toolsAvailableForExecution?: string[] | undefined;
70904
70903
  } | undefined;
70905
70904
  restrictToFollowingTools?: string[] | undefined;
70905
+ scopes?: string | undefined;
70906
70906
  }, {
70907
70907
  type: "default";
70908
- scopes: string;
70909
70908
  toolAccessConfig?: {
70910
70909
  toolsForConnectedAccountCreation?: string[] | undefined;
70911
70910
  toolsAvailableForExecution?: string[] | undefined;
70912
70911
  } | undefined;
70913
70912
  restrictToFollowingTools?: string[] | undefined;
70913
+ scopes?: string | undefined;
70914
70914
  }>]>;
70915
70915
  type AuthConfigUpdateParams = z.infer<typeof AuthConfigUpdateParamsSchema>;
70916
70916
 
package/dist/index.d.ts CHANGED
@@ -70812,7 +70812,7 @@ declare const AuthCustomConfigUpdateParamsSchema: z.ZodObject<{
70812
70812
  restrictToFollowingTools?: string[] | undefined;
70813
70813
  }>;
70814
70814
  declare const AuthDefaultConfigUpdateParamsSchema: z.ZodObject<{
70815
- scopes: z.ZodString;
70815
+ scopes: z.ZodOptional<z.ZodString>;
70816
70816
  type: z.ZodLiteral<"default">;
70817
70817
  /**
70818
70818
  * @deprecated - use tool access config to determine the tools that the user can perform on the auth config.
@@ -70830,20 +70830,20 @@ declare const AuthDefaultConfigUpdateParamsSchema: z.ZodObject<{
70830
70830
  }>>;
70831
70831
  }, "strip", z.ZodTypeAny, {
70832
70832
  type: "default";
70833
- scopes: string;
70834
70833
  toolAccessConfig?: {
70835
70834
  toolsForConnectedAccountCreation?: string[] | undefined;
70836
70835
  toolsAvailableForExecution?: string[] | undefined;
70837
70836
  } | undefined;
70838
70837
  restrictToFollowingTools?: string[] | undefined;
70838
+ scopes?: string | undefined;
70839
70839
  }, {
70840
70840
  type: "default";
70841
- scopes: string;
70842
70841
  toolAccessConfig?: {
70843
70842
  toolsForConnectedAccountCreation?: string[] | undefined;
70844
70843
  toolsAvailableForExecution?: string[] | undefined;
70845
70844
  } | undefined;
70846
70845
  restrictToFollowingTools?: string[] | undefined;
70846
+ scopes?: string | undefined;
70847
70847
  }>;
70848
70848
  declare const AuthConfigUpdateParamsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
70849
70849
  credentials: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodUnknown]>>;
@@ -70879,7 +70879,7 @@ declare const AuthConfigUpdateParamsSchema: z.ZodDiscriminatedUnion<"type", [z.Z
70879
70879
  } | undefined;
70880
70880
  restrictToFollowingTools?: string[] | undefined;
70881
70881
  }>, z.ZodObject<{
70882
- scopes: z.ZodString;
70882
+ scopes: z.ZodOptional<z.ZodString>;
70883
70883
  type: z.ZodLiteral<"default">;
70884
70884
  /**
70885
70885
  * @deprecated - use tool access config to determine the tools that the user can perform on the auth config.
@@ -70897,20 +70897,20 @@ declare const AuthConfigUpdateParamsSchema: z.ZodDiscriminatedUnion<"type", [z.Z
70897
70897
  }>>;
70898
70898
  }, "strip", z.ZodTypeAny, {
70899
70899
  type: "default";
70900
- scopes: string;
70901
70900
  toolAccessConfig?: {
70902
70901
  toolsForConnectedAccountCreation?: string[] | undefined;
70903
70902
  toolsAvailableForExecution?: string[] | undefined;
70904
70903
  } | undefined;
70905
70904
  restrictToFollowingTools?: string[] | undefined;
70905
+ scopes?: string | undefined;
70906
70906
  }, {
70907
70907
  type: "default";
70908
- scopes: string;
70909
70908
  toolAccessConfig?: {
70910
70909
  toolsForConnectedAccountCreation?: string[] | undefined;
70911
70910
  toolsAvailableForExecution?: string[] | undefined;
70912
70911
  } | undefined;
70913
70912
  restrictToFollowingTools?: string[] | undefined;
70913
+ scopes?: string | undefined;
70914
70914
  }>]>;
70915
70915
  type AuthConfigUpdateParams = z.infer<typeof AuthConfigUpdateParamsSchema>;
70916
70916
 
package/dist/index.js CHANGED
@@ -129,7 +129,7 @@ var AuthCustomConfigUpdateParamsSchema = z.object({
129
129
  toolAccessConfig: AuthConfigToolAccessConfigSchema.optional()
130
130
  });
131
131
  var AuthDefaultConfigUpdateParamsSchema = z.object({
132
- scopes: z.string(),
132
+ scopes: z.string().optional(),
133
133
  type: z.literal("default"),
134
134
  /**
135
135
  * @deprecated - use tool access config to determine the tools that the user can perform on the auth config.
@@ -6417,7 +6417,7 @@ var OpenAIProvider = class extends BaseNonAgenticProvider {
6417
6417
  };
6418
6418
 
6419
6419
  // package.json
6420
- var version = "0.1.41";
6420
+ var version = "0.1.43";
6421
6421
 
6422
6422
  // src/models/Files.ts
6423
6423
  var Files = class {
@@ -6651,7 +6651,7 @@ var removeNonRequiredProperties = (schema) => {
6651
6651
  )
6652
6652
  );
6653
6653
  }
6654
- schema.additionalProperties = false;
6654
+ schema.additionalProperties = schema.additionalProperties ?? false;
6655
6655
  return schema;
6656
6656
  };
6657
6657
  function jsonSchemaToZodSchema(jsonSchema, { strict } = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@composio/core",
3
- "version": "0.1.41",
3
+ "version": "0.1.43",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -32,11 +32,11 @@
32
32
  "tsx": "^4.19.3",
33
33
  "typescript": "^5.8.3",
34
34
  "vitest": "^3.1.4",
35
- "@composio/json-schema-to-zod": "0.1.11"
35
+ "@composio/json-schema-to-zod": "0.1.12"
36
36
  },
37
37
  "dependencies": {
38
38
  "@composio/client": "0.1.0-alpha.31",
39
- "@composio/json-schema-to-zod": "0.1.11",
39
+ "@composio/json-schema-to-zod": "0.1.12",
40
40
  "@types/json-schema": "^7.0.15",
41
41
  "chalk": "^4.1.2",
42
42
  "openai": "^4.94.0",