@composio/core 0.2.3 → 0.2.4
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 +11 -7
- package/dist/index.d.cts +2 -3
- package/dist/index.d.ts +2 -3
- package/dist/index.js +11 -7
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -2796,7 +2796,7 @@ var Tools = class {
|
|
|
2796
2796
|
inputParameters: tool.input_parameters,
|
|
2797
2797
|
outputParameters: tool.output_parameters,
|
|
2798
2798
|
availableVersions: tool.available_versions,
|
|
2799
|
-
isDeprecated: tool.is_deprecated,
|
|
2799
|
+
isDeprecated: tool.deprecated?.is_deprecated ?? false,
|
|
2800
2800
|
isNoAuth: tool.no_auth
|
|
2801
2801
|
});
|
|
2802
2802
|
}
|
|
@@ -5100,6 +5100,7 @@ var Triggers = class {
|
|
|
5100
5100
|
cause: error,
|
|
5101
5101
|
possibleFixes: [
|
|
5102
5102
|
`Please check the trigger slug`,
|
|
5103
|
+
`Please check the provided version of toolkit has the trigger`,
|
|
5103
5104
|
`Visit the toolkit page to see the available triggers`
|
|
5104
5105
|
]
|
|
5105
5106
|
});
|
|
@@ -5157,7 +5158,8 @@ var Triggers = class {
|
|
|
5157
5158
|
}
|
|
5158
5159
|
const result = await this.client.triggerInstances.upsert(slug, {
|
|
5159
5160
|
connected_account_id: connectedAccountId,
|
|
5160
|
-
trigger_config: parsedBody.data.triggerConfig
|
|
5161
|
+
trigger_config: parsedBody.data.triggerConfig,
|
|
5162
|
+
toolkit_versions: this.toolkitVersions
|
|
5161
5163
|
});
|
|
5162
5164
|
return {
|
|
5163
5165
|
triggerId: result.trigger_id
|
|
@@ -5228,21 +5230,23 @@ var Triggers = class {
|
|
|
5228
5230
|
return transformTriggerTypeListResponse(result);
|
|
5229
5231
|
}
|
|
5230
5232
|
/**
|
|
5231
|
-
* Retrieve a trigger type by its slug
|
|
5233
|
+
* Retrieve a trigger type by its slug for the provided version of the app
|
|
5234
|
+
* Use the global toolkit versions param when initializing composio to pass a toolkitversion
|
|
5232
5235
|
*
|
|
5233
5236
|
* @param {string} slug - The slug of the trigger type
|
|
5234
|
-
* @param {RequestOptions} options - request options
|
|
5235
5237
|
* @returns {Promise<TriggersTypeRetrieveResponse>} The trigger type object
|
|
5236
5238
|
*/
|
|
5237
5239
|
async getType(slug) {
|
|
5238
|
-
const result = await this.client.triggersTypes.retrieve(slug
|
|
5240
|
+
const result = await this.client.triggersTypes.retrieve(slug, {
|
|
5241
|
+
// if the version is provided override the global version
|
|
5242
|
+
toolkit_versions: this.toolkitVersions
|
|
5243
|
+
});
|
|
5239
5244
|
return transformTriggerTypeRetrieveResponse(result);
|
|
5240
5245
|
}
|
|
5241
5246
|
/**
|
|
5242
5247
|
* Fetches the list of all the available trigger enums
|
|
5243
5248
|
*
|
|
5244
5249
|
* This method is used by the CLI where filters are not required.
|
|
5245
|
-
* @param options
|
|
5246
5250
|
* @returns
|
|
5247
5251
|
*/
|
|
5248
5252
|
async listEnum() {
|
|
@@ -7356,7 +7360,7 @@ var OpenAIProvider = class extends BaseNonAgenticProvider {
|
|
|
7356
7360
|
};
|
|
7357
7361
|
|
|
7358
7362
|
// package.json
|
|
7359
|
-
var version = "0.2.
|
|
7363
|
+
var version = "0.2.4";
|
|
7360
7364
|
|
|
7361
7365
|
// src/models/Files.ts
|
|
7362
7366
|
var Files = class {
|
package/dist/index.d.cts
CHANGED
|
@@ -65053,10 +65053,10 @@ declare class Triggers<TProvider extends BaseComposioProvider<unknown, unknown,
|
|
|
65053
65053
|
*/
|
|
65054
65054
|
listTypes(query?: TriggersTypeListParams): Promise<TriggersTypeListResponse>;
|
|
65055
65055
|
/**
|
|
65056
|
-
* Retrieve a trigger type by its slug
|
|
65056
|
+
* Retrieve a trigger type by its slug for the provided version of the app
|
|
65057
|
+
* Use the global toolkit versions param when initializing composio to pass a toolkitversion
|
|
65057
65058
|
*
|
|
65058
65059
|
* @param {string} slug - The slug of the trigger type
|
|
65059
|
-
* @param {RequestOptions} options - request options
|
|
65060
65060
|
* @returns {Promise<TriggersTypeRetrieveResponse>} The trigger type object
|
|
65061
65061
|
*/
|
|
65062
65062
|
getType(slug: string): Promise<TriggersTypeRetrieveResponse>;
|
|
@@ -65064,7 +65064,6 @@ declare class Triggers<TProvider extends BaseComposioProvider<unknown, unknown,
|
|
|
65064
65064
|
* Fetches the list of all the available trigger enums
|
|
65065
65065
|
*
|
|
65066
65066
|
* This method is used by the CLI where filters are not required.
|
|
65067
|
-
* @param options
|
|
65068
65067
|
* @returns
|
|
65069
65068
|
*/
|
|
65070
65069
|
listEnum(): Promise<TriggersTypeRetrieveEnumResponse>;
|
package/dist/index.d.ts
CHANGED
|
@@ -65053,10 +65053,10 @@ declare class Triggers<TProvider extends BaseComposioProvider<unknown, unknown,
|
|
|
65053
65053
|
*/
|
|
65054
65054
|
listTypes(query?: TriggersTypeListParams): Promise<TriggersTypeListResponse>;
|
|
65055
65055
|
/**
|
|
65056
|
-
* Retrieve a trigger type by its slug
|
|
65056
|
+
* Retrieve a trigger type by its slug for the provided version of the app
|
|
65057
|
+
* Use the global toolkit versions param when initializing composio to pass a toolkitversion
|
|
65057
65058
|
*
|
|
65058
65059
|
* @param {string} slug - The slug of the trigger type
|
|
65059
|
-
* @param {RequestOptions} options - request options
|
|
65060
65060
|
* @returns {Promise<TriggersTypeRetrieveResponse>} The trigger type object
|
|
65061
65061
|
*/
|
|
65062
65062
|
getType(slug: string): Promise<TriggersTypeRetrieveResponse>;
|
|
@@ -65064,7 +65064,6 @@ declare class Triggers<TProvider extends BaseComposioProvider<unknown, unknown,
|
|
|
65064
65064
|
* Fetches the list of all the available trigger enums
|
|
65065
65065
|
*
|
|
65066
65066
|
* This method is used by the CLI where filters are not required.
|
|
65067
|
-
* @param options
|
|
65068
65067
|
* @returns
|
|
65069
65068
|
*/
|
|
65070
65069
|
listEnum(): Promise<TriggersTypeRetrieveEnumResponse>;
|
package/dist/index.js
CHANGED
|
@@ -2619,7 +2619,7 @@ var Tools = class {
|
|
|
2619
2619
|
inputParameters: tool.input_parameters,
|
|
2620
2620
|
outputParameters: tool.output_parameters,
|
|
2621
2621
|
availableVersions: tool.available_versions,
|
|
2622
|
-
isDeprecated: tool.is_deprecated,
|
|
2622
|
+
isDeprecated: tool.deprecated?.is_deprecated ?? false,
|
|
2623
2623
|
isNoAuth: tool.no_auth
|
|
2624
2624
|
});
|
|
2625
2625
|
}
|
|
@@ -4923,6 +4923,7 @@ var Triggers = class {
|
|
|
4923
4923
|
cause: error,
|
|
4924
4924
|
possibleFixes: [
|
|
4925
4925
|
`Please check the trigger slug`,
|
|
4926
|
+
`Please check the provided version of toolkit has the trigger`,
|
|
4926
4927
|
`Visit the toolkit page to see the available triggers`
|
|
4927
4928
|
]
|
|
4928
4929
|
});
|
|
@@ -4980,7 +4981,8 @@ var Triggers = class {
|
|
|
4980
4981
|
}
|
|
4981
4982
|
const result = await this.client.triggerInstances.upsert(slug, {
|
|
4982
4983
|
connected_account_id: connectedAccountId,
|
|
4983
|
-
trigger_config: parsedBody.data.triggerConfig
|
|
4984
|
+
trigger_config: parsedBody.data.triggerConfig,
|
|
4985
|
+
toolkit_versions: this.toolkitVersions
|
|
4984
4986
|
});
|
|
4985
4987
|
return {
|
|
4986
4988
|
triggerId: result.trigger_id
|
|
@@ -5051,21 +5053,23 @@ var Triggers = class {
|
|
|
5051
5053
|
return transformTriggerTypeListResponse(result);
|
|
5052
5054
|
}
|
|
5053
5055
|
/**
|
|
5054
|
-
* Retrieve a trigger type by its slug
|
|
5056
|
+
* Retrieve a trigger type by its slug for the provided version of the app
|
|
5057
|
+
* Use the global toolkit versions param when initializing composio to pass a toolkitversion
|
|
5055
5058
|
*
|
|
5056
5059
|
* @param {string} slug - The slug of the trigger type
|
|
5057
|
-
* @param {RequestOptions} options - request options
|
|
5058
5060
|
* @returns {Promise<TriggersTypeRetrieveResponse>} The trigger type object
|
|
5059
5061
|
*/
|
|
5060
5062
|
async getType(slug) {
|
|
5061
|
-
const result = await this.client.triggersTypes.retrieve(slug
|
|
5063
|
+
const result = await this.client.triggersTypes.retrieve(slug, {
|
|
5064
|
+
// if the version is provided override the global version
|
|
5065
|
+
toolkit_versions: this.toolkitVersions
|
|
5066
|
+
});
|
|
5062
5067
|
return transformTriggerTypeRetrieveResponse(result);
|
|
5063
5068
|
}
|
|
5064
5069
|
/**
|
|
5065
5070
|
* Fetches the list of all the available trigger enums
|
|
5066
5071
|
*
|
|
5067
5072
|
* This method is used by the CLI where filters are not required.
|
|
5068
|
-
* @param options
|
|
5069
5073
|
* @returns
|
|
5070
5074
|
*/
|
|
5071
5075
|
async listEnum() {
|
|
@@ -7179,7 +7183,7 @@ var OpenAIProvider = class extends BaseNonAgenticProvider {
|
|
|
7179
7183
|
};
|
|
7180
7184
|
|
|
7181
7185
|
// package.json
|
|
7182
|
-
var version = "0.2.
|
|
7186
|
+
var version = "0.2.4";
|
|
7183
7187
|
|
|
7184
7188
|
// src/models/Files.ts
|
|
7185
7189
|
var Files = class {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@composio/core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
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.
|
|
42
|
+
"@composio/client": "0.1.0-alpha.40",
|
|
43
43
|
"@types/json-schema": "^7.0.15",
|
|
44
44
|
"chalk": "^4.1.2",
|
|
45
45
|
"openai": "^5.16.0",
|