@composio/client 2.0.0-rc.21 → 2.0.0-rc.22
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/README.md +51 -1
- package/dist/_internal-7BQNRB9A.d.mts +265 -0
- package/dist/{api-key-revocation-BB3FTdR3.d.mts → _internal-UUxDozdb.d.mts} +952 -268
- package/dist/effect/internal.d.mts +9 -0
- package/dist/effect/schemas/{cli → _internal/cli}/create-session.d.mts +2 -2
- package/dist/effect/schemas/{cli → _internal/cli}/create-session.mjs +2 -2
- package/dist/effect/schemas/{cli → _internal/cli}/get-session.d.mts +2 -2
- package/dist/effect/schemas/{cli → _internal/cli}/get-session.mjs +3 -3
- package/dist/effect/schemas/{cli → _internal/cli}/realtime/auth.d.mts +2 -2
- package/dist/effect/schemas/{cli → _internal/cli}/realtime/auth.mjs +2 -2
- package/dist/effect/schemas/{cli → _internal/cli}/realtime/credentials.d.mts +2 -2
- package/dist/effect/schemas/{cli → _internal/cli}/realtime/credentials.mjs +2 -2
- package/dist/effect/schemas/{logs → _internal/logs}/tools/list-fields.d.mts +2 -2
- package/dist/effect/schemas/{logs → _internal/logs}/tools/list-fields.mjs +2 -2
- package/dist/effect/schemas/{logs → _internal/logs}/tools/list.d.mts +2 -2
- package/dist/effect/schemas/{logs → _internal/logs}/tools/list.mjs +2 -2
- package/dist/effect/schemas/{logs → _internal/logs}/tools/retrieve.d.mts +2 -2
- package/dist/effect/schemas/{logs → _internal/logs}/tools/retrieve.mjs +2 -2
- package/dist/effect/schemas/{logs → _internal/logs}/triggers/list.d.mts +2 -2
- package/dist/effect/schemas/{logs → _internal/logs}/triggers/list.mjs +3 -3
- package/dist/effect/schemas/{logs → _internal/logs}/triggers/retrieve.d.mts +2 -2
- package/dist/effect/schemas/{logs → _internal/logs}/triggers/retrieve.mjs +3 -3
- package/dist/effect/schemas/{org → _internal/org}/consumer/list-connected-toolkits.d.mts +2 -2
- package/dist/effect/schemas/{org → _internal/org}/consumer/list-connected-toolkits.mjs +2 -2
- package/dist/effect/schemas/{org → _internal/org}/consumer/project/resolve.d.mts +3 -2
- package/dist/effect/schemas/{org → _internal/org}/consumer/project/resolve.mjs +4 -3
- package/dist/effect/schemas/auth-configs/list.d.mts +1 -0
- package/dist/effect/schemas/auth-configs/list.mjs +2 -1
- package/dist/effect/schemas/auth-configs/retrieve.d.mts +1 -0
- package/dist/effect/schemas/auth-configs/retrieve.mjs +2 -1
- package/dist/effect/schemas/components/block-reason.d.mts +12 -0
- package/dist/effect/schemas/components/block-reason.mjs +14 -0
- package/dist/effect/schemas/components/execute-blocked.d.mts +30 -0
- package/dist/effect/schemas/components/execute-blocked.mjs +24 -0
- package/dist/effect/schemas/components/execute-completed.d.mts +8 -0
- package/dist/effect/schemas/components/execute-completed.mjs +3 -1
- package/dist/effect/schemas/components/execute-failed.d.mts +8 -0
- package/dist/effect/schemas/components/execute-failed.mjs +3 -1
- package/dist/effect/schemas/components/hook-result.d.mts +13 -0
- package/dist/effect/schemas/components/hook-result.mjs +15 -0
- package/dist/effect/schemas/components/proxy-execute-blocked.d.mts +24 -0
- package/dist/effect/schemas/components/proxy-execute-blocked.mjs +18 -0
- package/dist/effect/schemas/components/proxy-execute-completed.d.mts +8 -0
- package/dist/effect/schemas/components/proxy-execute-completed.mjs +3 -1
- package/dist/effect/schemas/components/session-create-response-config.d.mts +28 -0
- package/dist/effect/schemas/components/session-create-response-config.mjs +24 -0
- package/dist/effect/schemas/components/tool-router-session-v31-config-history-list-response.d.mts +28 -0
- package/dist/effect/schemas/components/tool-router-session-v31-config-history-list-response.mjs +24 -0
- package/dist/effect/schemas/session-configs/retrieve.d.mts +11 -0
- package/dist/effect/schemas/session-configs/retrieve.mjs +59 -23
- package/dist/effect/schemas/tool-router/session/attach.d.mts +28 -0
- package/dist/effect/schemas/tool-router/session/config-history.d.mts +28 -0
- package/dist/effect/schemas/tool-router/session/create.d.mts +28 -0
- package/dist/effect/schemas/tool-router/session/execute-meta.d.mts +40 -0
- package/dist/effect/schemas/tool-router/session/execute-meta.mjs +2 -0
- package/dist/effect/schemas/tool-router/session/execute.d.mts +40 -0
- package/dist/effect/schemas/tool-router/session/execute.mjs +2 -0
- package/dist/effect/schemas/tool-router/session/patch.d.mts +28 -0
- package/dist/effect/schemas/tool-router/session/proxy-execute.d.mts +26 -0
- package/dist/effect/schemas/tool-router/session/proxy-execute.mjs +6 -1
- package/dist/effect/schemas/tool-router/session/retrieve.d.mts +28 -0
- package/dist/effect/schemas/triggers-types/list.d.mts +1 -0
- package/dist/effect/schemas/triggers-types/list.mjs +5 -1
- package/dist/effect/schemas/triggers-types/retrieve.d.mts +1 -0
- package/dist/effect/schemas/triggers-types/retrieve.mjs +5 -1
- package/dist/effect/schemas.d.mts +451 -189
- package/dist/effect/schemas.mjs +11 -11
- package/dist/effect.d.mts +9 -246
- package/dist/effect.mjs +122 -102
- package/dist/{environments-CmxYUUsW.mjs → environments-DIBy8nYx.mjs} +18 -10
- package/dist/{environments-BXSnADKo.d.mts → environments-Dz5jsC_v.d.mts} +1 -1
- package/dist/{generated-operations-BNRn8az6.mjs → generated-operations-igWp3zha.mjs} +21 -5
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +4 -2
- package/dist/internal.d.mts +9 -0
- package/dist/internal.mjs +1 -0
- package/dist/resources/_internal/_internal.d.mts +2 -0
- package/dist/resources/_internal/_internal.mjs +14 -0
- package/dist/resources/_internal/cli/cli.d.mts +2 -0
- package/dist/resources/_internal/cli/cli.mjs +25 -0
- package/dist/resources/_internal/cli/realtime.d.mts +2 -0
- package/dist/resources/{cli → _internal/cli}/realtime.mjs +4 -4
- package/dist/resources/_internal/cli.d.mts +2 -0
- package/dist/resources/_internal/cli.mjs +1 -0
- package/dist/resources/_internal/logs/logs.d.mts +2 -0
- package/dist/resources/_internal/logs/logs.mjs +12 -0
- package/dist/resources/_internal/logs/tools.d.mts +2 -0
- package/dist/resources/{logs → _internal/logs}/tools.mjs +5 -5
- package/dist/resources/_internal/logs/triggers.d.mts +2 -0
- package/dist/resources/{logs → _internal/logs}/triggers.mjs +4 -4
- package/dist/resources/_internal/logs.d.mts +2 -0
- package/dist/resources/_internal/logs.mjs +1 -0
- package/dist/resources/_internal/org/consumer/consumer.d.mts +2 -0
- package/dist/resources/{org → _internal/org}/consumer/consumer.mjs +3 -3
- package/dist/resources/_internal/org/consumer/project.d.mts +2 -0
- package/dist/resources/{org → _internal/org}/consumer/project.mjs +3 -3
- package/dist/resources/_internal/org/consumer.d.mts +2 -0
- package/dist/resources/_internal/org/consumer.mjs +1 -0
- package/dist/resources/_internal/org/org.d.mts +2 -0
- package/dist/resources/_internal/org/org.mjs +8 -0
- package/dist/resources/_internal/org.d.mts +2 -0
- package/dist/resources/_internal/org.mjs +1 -0
- package/dist/resources/_internal.d.mts +2 -0
- package/dist/resources/_internal.mjs +1 -0
- package/dist/resources/api-key-revocation.d.mts +1 -1
- package/dist/resources/api-key-revocation.mjs +1 -1
- package/dist/resources/auth/auth.d.mts +1 -1
- package/dist/resources/auth/session.d.mts +1 -1
- package/dist/resources/auth/session.mjs +1 -1
- package/dist/resources/auth-configs.d.mts +1 -1
- package/dist/resources/auth-configs.mjs +1 -1
- package/dist/resources/auth.d.mts +1 -1
- package/dist/resources/cli/cli.d.mts +2 -2
- package/dist/resources/cli/cli.mjs +8 -26
- package/dist/resources/cli.d.mts +2 -2
- package/dist/resources/connected-accounts.d.mts +1 -1
- package/dist/resources/connected-accounts.mjs +1 -1
- package/dist/resources/custom.d.mts +1 -1
- package/dist/resources/custom.mjs +1 -1
- package/dist/resources/files.d.mts +1 -1
- package/dist/resources/files.mjs +1 -1
- package/dist/resources/keyring.d.mts +1 -1
- package/dist/resources/keyring.mjs +1 -1
- package/dist/resources/link.d.mts +1 -1
- package/dist/resources/link.mjs +1 -1
- package/dist/resources/logs/logs.d.mts +1 -1
- package/dist/resources/logs/logs.mjs +1 -5
- package/dist/resources/logs.d.mts +2 -2
- package/dist/resources/mcp/custom.d.mts +1 -1
- package/dist/resources/mcp/custom.mjs +1 -1
- package/dist/resources/mcp/generate.d.mts +1 -1
- package/dist/resources/mcp/generate.mjs +1 -1
- package/dist/resources/mcp/mcp.d.mts +1 -1
- package/dist/resources/mcp/mcp.mjs +1 -1
- package/dist/resources/mcp.d.mts +1 -1
- package/dist/resources/org/clanker.d.mts +1 -1
- package/dist/resources/org/clanker.mjs +1 -1
- package/dist/resources/org/org.d.mts +1 -1
- package/dist/resources/org/org.mjs +1 -3
- package/dist/resources/org/owner/owner.d.mts +1 -1
- package/dist/resources/org/owner/project.d.mts +1 -1
- package/dist/resources/org/owner/project.mjs +1 -1
- package/dist/resources/org/owner.d.mts +1 -1
- package/dist/resources/org/project.d.mts +1 -1
- package/dist/resources/org/project.mjs +1 -1
- package/dist/resources/org/usage.d.mts +1 -1
- package/dist/resources/org/usage.mjs +1 -1
- package/dist/resources/org.d.mts +2 -2
- package/dist/resources/project/project.d.mts +1 -1
- package/dist/resources/project/usage.d.mts +1 -1
- package/dist/resources/project/usage.mjs +1 -1
- package/dist/resources/project.d.mts +1 -1
- package/dist/resources/session-configs.d.mts +1 -1
- package/dist/resources/session-configs.mjs +1 -1
- package/dist/resources/tool-router/session/files.d.mts +1 -1
- package/dist/resources/tool-router/session/files.mjs +1 -1
- package/dist/resources/tool-router/session/session.d.mts +1 -1
- package/dist/resources/tool-router/session/session.mjs +1 -1
- package/dist/resources/tool-router/session.d.mts +1 -1
- package/dist/resources/tool-router/tool-router.d.mts +1 -1
- package/dist/resources/tool-router.d.mts +1 -1
- package/dist/resources/toolkits.d.mts +1 -1
- package/dist/resources/toolkits.mjs +1 -1
- package/dist/resources/tools.d.mts +1 -1
- package/dist/resources/tools.mjs +1 -1
- package/dist/resources/trigger-instances/manage.d.mts +1 -1
- package/dist/resources/trigger-instances/manage.mjs +1 -1
- package/dist/resources/trigger-instances/trigger-instances.d.mts +1 -1
- package/dist/resources/trigger-instances/trigger-instances.mjs +1 -1
- package/dist/resources/trigger-instances.d.mts +1 -1
- package/dist/resources/triggers-types.d.mts +1 -1
- package/dist/resources/triggers-types.mjs +1 -1
- package/dist/resources/webhook-endpoints.d.mts +1 -1
- package/dist/resources/webhook-endpoints.mjs +1 -1
- package/dist/resources/webhook-subscriptions.d.mts +1 -1
- package/dist/resources/webhook-subscriptions.mjs +1 -1
- package/package.json +10 -2
- package/dist/resources/cli/realtime.d.mts +0 -2
- package/dist/resources/logs/tools.d.mts +0 -2
- package/dist/resources/logs/triggers.d.mts +0 -2
- package/dist/resources/org/consumer/consumer.d.mts +0 -2
- package/dist/resources/org/consumer/project.d.mts +0 -2
- package/dist/resources/org/consumer.d.mts +0 -2
- /package/dist/{resources/org/consumer.mjs → effect/internal.mjs} +0 -0
package/dist/effect.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h as makeAPIErrorMessage, m as errorDetails, s as ComposioError } from "./error-Bw7_G2NZ.mjs";
|
|
2
|
-
import { B as SCHEME_HEADERS, C as resolveIdentity, D as inspectDeprecatedInputs, E as mergeHeaders, F as chooseCredential, H as carriesCredentials, I as credentialHeader, L as resolveAuth, M as assertRequiredOperationHeaders, N as authConstructors, O as inspectDeprecation, P as authFromCredentials, R as resolveScope, S as reservedHeaders, T as buildHeaders, U as parseHTTPURL, V as assertCredentialTransport, W as resolveHTTPURL, _ as shouldRetryResponse, a as TOO_MANY_REDIRECTS, c as buildURL, d as path, f as printableURL, g as safeJSON, h as rewriteForRedirect, i as REDIRECT_STATUSES, j as assertNoRemovedCredentialOptions, k as matchOperation, m as retryDelayMillis, n as generatedOperation, o as buildBody, r as OPAQUE_REDIRECT, s as buildRequestHeaders, t as GENERATED_OPERATIONS, v as validatePositiveInteger, w as VERSION, x as assertNoReservedHeaders, z as scopeForCall } from "./generated-operations-
|
|
3
|
-
import { i as classifySuccessBody, n as GENERATED_DEPRECATED_INPUTS, t as ENVIRONMENTS } from "./environments-
|
|
2
|
+
import { B as SCHEME_HEADERS, C as resolveIdentity, D as inspectDeprecatedInputs, E as mergeHeaders, F as chooseCredential, H as carriesCredentials, I as credentialHeader, L as resolveAuth, M as assertRequiredOperationHeaders, N as authConstructors, O as inspectDeprecation, P as authFromCredentials, R as resolveScope, S as reservedHeaders, T as buildHeaders, U as parseHTTPURL, V as assertCredentialTransport, W as resolveHTTPURL, _ as shouldRetryResponse, a as TOO_MANY_REDIRECTS, c as buildURL, d as path, f as printableURL, g as safeJSON, h as rewriteForRedirect, i as REDIRECT_STATUSES, j as assertNoRemovedCredentialOptions, k as matchOperation, m as retryDelayMillis, n as generatedOperation, o as buildBody, r as OPAQUE_REDIRECT, s as buildRequestHeaders, t as GENERATED_OPERATIONS, v as validatePositiveInteger, w as VERSION, x as assertNoReservedHeaders, z as scopeForCall } from "./generated-operations-igWp3zha.mjs";
|
|
3
|
+
import { i as classifySuccessBody, n as GENERATED_DEPRECATED_INPUTS, t as ENVIRONMENTS } from "./environments-DIBy8nYx.mjs";
|
|
4
4
|
import { i as standardNextCursor, n as assertPageItems, r as isFinalCursor, t as assertCursorAdvanced } from "./pagination-rules-CMnBwktJ.mjs";
|
|
5
5
|
import { Config, Context, Data, Effect, Exit, Layer, Match, Option, Predicate, Redacted, References, Result, Stream, Tracer } from "effect";
|
|
6
6
|
import * as HttpClient from "effect/http/HttpClient";
|
|
@@ -1209,70 +1209,32 @@ const makeMcp = (kernel) => ({
|
|
|
1209
1209
|
}, options)
|
|
1210
1210
|
});
|
|
1211
1211
|
|
|
1212
|
-
//#endregion
|
|
1213
|
-
//#region src/effect/generated/resources/cli/realtime.ts
|
|
1214
|
-
const OP_AUTH = generatedOperation("cli.realtime.auth");
|
|
1215
|
-
const OP_CREDENTIALS = generatedOperation("cli.realtime.credentials");
|
|
1216
|
-
const makeRealtime = (kernel) => ({
|
|
1217
|
-
auth: (body, options) => executeOperation(kernel, OP_AUTH, { body }, options),
|
|
1218
|
-
credentials: (options) => executeOperation(kernel, OP_CREDENTIALS, {}, options)
|
|
1219
|
-
});
|
|
1220
|
-
|
|
1221
1212
|
//#endregion
|
|
1222
1213
|
//#region src/effect/generated/resources/cli/cli.ts
|
|
1223
1214
|
const OP_CREATE_CODACT_FAILURE = generatedOperation("cli.createCodactFailure");
|
|
1224
|
-
const
|
|
1225
|
-
const
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
body,
|
|
1232
|
-
operationHeaders: { "x-user-api-key": xUserApiKey }
|
|
1233
|
-
}, options);
|
|
1234
|
-
},
|
|
1235
|
-
createSession: (body = {}, options) => executeOperation(kernel, OP_CREATE_SESSION, { body }, options),
|
|
1236
|
-
getSession: (query, options) => executeOperation(kernel, OP_GET_SESSION, { query }, options)
|
|
1237
|
-
});
|
|
1238
|
-
|
|
1239
|
-
//#endregion
|
|
1240
|
-
//#region src/effect/generated/resources/logs/triggers.ts
|
|
1241
|
-
const OP_RETRIEVE$7 = generatedOperation("logs.triggers.retrieve");
|
|
1242
|
-
const OP_LIST$7 = generatedOperation("logs.triggers.list");
|
|
1243
|
-
const makeTriggers = (kernel) => ({
|
|
1244
|
-
retrieve: (id, options) => executeOperation(kernel, OP_RETRIEVE$7, { path: [id] }, options),
|
|
1245
|
-
list: (body = {}, options) => executeOperation(kernel, OP_LIST$7, { body }, options)
|
|
1246
|
-
});
|
|
1247
|
-
|
|
1248
|
-
//#endregion
|
|
1249
|
-
//#region src/effect/generated/resources/logs/tools.ts
|
|
1250
|
-
const OP_RETRIEVE$6 = generatedOperation("logs.tools.retrieve");
|
|
1251
|
-
const OP_LIST$6 = generatedOperation("logs.tools.list");
|
|
1252
|
-
const OP_LIST_FIELDS = generatedOperation("logs.tools.listFields");
|
|
1253
|
-
const makeTools = (kernel) => ({
|
|
1254
|
-
retrieve: (id, options) => executeOperation(kernel, OP_RETRIEVE$6, { path: [id] }, options),
|
|
1255
|
-
list: (body, options) => executeOperation(kernel, OP_LIST$6, { body }, options),
|
|
1256
|
-
listFields: (options) => executeOperation(kernel, OP_LIST_FIELDS, {}, options)
|
|
1257
|
-
});
|
|
1215
|
+
const makeCli$1 = (kernel) => ({ createCodactFailure: (params, options) => {
|
|
1216
|
+
const { "x-user-api-key": xUserApiKey, ...body } = params;
|
|
1217
|
+
return executeOperation(kernel, OP_CREATE_CODACT_FAILURE, {
|
|
1218
|
+
body,
|
|
1219
|
+
operationHeaders: { "x-user-api-key": xUserApiKey }
|
|
1220
|
+
}, options);
|
|
1221
|
+
} });
|
|
1258
1222
|
|
|
1259
1223
|
//#endregion
|
|
1260
1224
|
//#region src/effect/generated/resources/logs/logs.ts
|
|
1261
1225
|
const OP_CREATE_TOOL_EXECUTION = generatedOperation("logs.createToolExecution");
|
|
1262
1226
|
const OP_RETRIEVE_TOOL_EXECUTION = generatedOperation("logs.retrieveToolExecution");
|
|
1263
|
-
const makeLogs = (kernel) => ({
|
|
1264
|
-
triggers: makeTriggers(kernel),
|
|
1265
|
-
tools: makeTools(kernel),
|
|
1227
|
+
const makeLogs$1 = (kernel) => ({
|
|
1266
1228
|
createToolExecution: (body = {}, options) => executeOperation(kernel, OP_CREATE_TOOL_EXECUTION, { body }, options),
|
|
1267
1229
|
retrieveToolExecution: (id, options) => executeOperation(kernel, OP_RETRIEVE_TOOL_EXECUTION, { path: [id] }, options)
|
|
1268
1230
|
});
|
|
1269
1231
|
|
|
1270
1232
|
//#endregion
|
|
1271
1233
|
//#region src/effect/generated/resources/project/usage.ts
|
|
1272
|
-
const OP_RETRIEVE$
|
|
1234
|
+
const OP_RETRIEVE$7 = generatedOperation("project.usage.retrieve");
|
|
1273
1235
|
const OP_RETRIEVE_SUMMARY$1 = generatedOperation("project.usage.retrieveSummary");
|
|
1274
1236
|
const makeUsage$1 = (kernel) => ({
|
|
1275
|
-
retrieve: (entityType, body = {}, options) => executeOperation(kernel, OP_RETRIEVE$
|
|
1237
|
+
retrieve: (entityType, body = {}, options) => executeOperation(kernel, OP_RETRIEVE$7, {
|
|
1276
1238
|
path: [entityType],
|
|
1277
1239
|
body
|
|
1278
1240
|
}, options),
|
|
@@ -1286,21 +1248,21 @@ const makeProject$3 = (kernel) => ({ usage: makeUsage$1(kernel) });
|
|
|
1286
1248
|
//#endregion
|
|
1287
1249
|
//#region src/effect/generated/resources/webhook-subscriptions.ts
|
|
1288
1250
|
const OP_CREATE$3 = generatedOperation("webhookSubscriptions.create");
|
|
1289
|
-
const OP_RETRIEVE$
|
|
1251
|
+
const OP_RETRIEVE$6 = generatedOperation("webhookSubscriptions.retrieve");
|
|
1290
1252
|
const OP_UPDATE$1 = generatedOperation("webhookSubscriptions.update");
|
|
1291
|
-
const OP_LIST$
|
|
1253
|
+
const OP_LIST$7 = generatedOperation("webhookSubscriptions.list");
|
|
1292
1254
|
const OP_DELETE$1 = generatedOperation("webhookSubscriptions.delete");
|
|
1293
1255
|
const OP_LIST_EVENT_TYPES = generatedOperation("webhookSubscriptions.listEventTypes");
|
|
1294
1256
|
const OP_ROTATE_SECRET = generatedOperation("webhookSubscriptions.rotateSecret");
|
|
1295
1257
|
const makeWebhookSubscriptions = (kernel) => {
|
|
1296
1258
|
const resource = {
|
|
1297
1259
|
create: (body, options) => executeOperation(kernel, OP_CREATE$3, { body }, options),
|
|
1298
|
-
retrieve: (id, options) => executeOperation(kernel, OP_RETRIEVE$
|
|
1260
|
+
retrieve: (id, options) => executeOperation(kernel, OP_RETRIEVE$6, { path: [id] }, options),
|
|
1299
1261
|
update: (id, body = {}, options) => executeOperation(kernel, OP_UPDATE$1, {
|
|
1300
1262
|
path: [id],
|
|
1301
1263
|
body
|
|
1302
1264
|
}, options),
|
|
1303
|
-
list: (query = {}, options) => executeOperation(kernel, OP_LIST$
|
|
1265
|
+
list: (query = {}, options) => executeOperation(kernel, OP_LIST$7, { query }, options),
|
|
1304
1266
|
listStream: (query, options) => cursorStream((cursor) => resource.list(cursor === void 0 ? query : {
|
|
1305
1267
|
...query,
|
|
1306
1268
|
cursor
|
|
@@ -1315,18 +1277,18 @@ const makeWebhookSubscriptions = (kernel) => {
|
|
|
1315
1277
|
//#endregion
|
|
1316
1278
|
//#region src/effect/generated/resources/webhook-endpoints.ts
|
|
1317
1279
|
const OP_CREATE$2 = generatedOperation("webhookEndpoints.create");
|
|
1318
|
-
const OP_RETRIEVE$
|
|
1280
|
+
const OP_RETRIEVE$5 = generatedOperation("webhookEndpoints.retrieve");
|
|
1319
1281
|
const OP_UPDATE = generatedOperation("webhookEndpoints.update");
|
|
1320
|
-
const OP_LIST$
|
|
1282
|
+
const OP_LIST$6 = generatedOperation("webhookEndpoints.list");
|
|
1321
1283
|
const OP_REPLACE = generatedOperation("webhookEndpoints.replace");
|
|
1322
1284
|
const makeWebhookEndpoints = (kernel) => ({
|
|
1323
1285
|
create: (body, options) => executeOperation(kernel, OP_CREATE$2, { body }, options),
|
|
1324
|
-
retrieve: (nanoID, options) => executeOperation(kernel, OP_RETRIEVE$
|
|
1286
|
+
retrieve: (nanoID, options) => executeOperation(kernel, OP_RETRIEVE$5, { path: [nanoID] }, options),
|
|
1325
1287
|
update: (nanoID, body, options) => executeOperation(kernel, OP_UPDATE, {
|
|
1326
1288
|
path: [nanoID],
|
|
1327
1289
|
body
|
|
1328
1290
|
}, options),
|
|
1329
|
-
list: (query = {}, options) => executeOperation(kernel, OP_LIST$
|
|
1291
|
+
list: (query = {}, options) => executeOperation(kernel, OP_LIST$6, { query }, options),
|
|
1330
1292
|
replace: (nanoID, body, options) => executeOperation(kernel, OP_REPLACE, {
|
|
1331
1293
|
path: [nanoID],
|
|
1332
1294
|
body
|
|
@@ -1336,14 +1298,14 @@ const makeWebhookEndpoints = (kernel) => ({
|
|
|
1336
1298
|
//#endregion
|
|
1337
1299
|
//#region src/effect/generated/resources/org/owner/project.ts
|
|
1338
1300
|
const OP_CREATE$1 = generatedOperation("org.owner.project.create");
|
|
1339
|
-
const OP_RETRIEVE$
|
|
1340
|
-
const OP_LIST$
|
|
1301
|
+
const OP_RETRIEVE$4 = generatedOperation("org.owner.project.retrieve");
|
|
1302
|
+
const OP_LIST$5 = generatedOperation("org.owner.project.list");
|
|
1341
1303
|
const OP_DELETE = generatedOperation("org.owner.project.delete");
|
|
1342
1304
|
const OP_REGENERATE_APIKEY = generatedOperation("org.owner.project.regenerateAPIKey");
|
|
1343
1305
|
const makeProject$2 = (kernel) => ({
|
|
1344
1306
|
create: (body, options) => executeOperation(kernel, OP_CREATE$1, { body }, options),
|
|
1345
|
-
retrieve: (nanoID, options) => executeOperation(kernel, OP_RETRIEVE$
|
|
1346
|
-
list: (query = {}, options) => executeOperation(kernel, OP_LIST$
|
|
1307
|
+
retrieve: (nanoID, options) => executeOperation(kernel, OP_RETRIEVE$4, { path: [nanoID] }, options),
|
|
1308
|
+
list: (query = {}, options) => executeOperation(kernel, OP_LIST$5, { query }, options),
|
|
1347
1309
|
delete: (nanoID, query = {}, options) => executeOperation(kernel, OP_DELETE, {
|
|
1348
1310
|
path: [nanoID],
|
|
1349
1311
|
query
|
|
@@ -1355,45 +1317,17 @@ const makeProject$2 = (kernel) => ({
|
|
|
1355
1317
|
//#region src/effect/generated/resources/org/owner/owner.ts
|
|
1356
1318
|
const makeOwner = (kernel) => ({ project: makeProject$2(kernel) });
|
|
1357
1319
|
|
|
1358
|
-
//#endregion
|
|
1359
|
-
//#region src/effect/generated/resources/org/consumer/project.ts
|
|
1360
|
-
const OP_RESOLVE = generatedOperation("org.consumer.project.resolve");
|
|
1361
|
-
const makeProject$1 = (kernel) => ({ resolve: (params, options) => {
|
|
1362
|
-
const { "x-user-api-key": xUserApiKey, "x-org-id": xOrgId } = params;
|
|
1363
|
-
return executeOperation(kernel, OP_RESOLVE, { operationHeaders: {
|
|
1364
|
-
"x-user-api-key": xUserApiKey,
|
|
1365
|
-
"x-org-id": xOrgId
|
|
1366
|
-
} }, options);
|
|
1367
|
-
} });
|
|
1368
|
-
|
|
1369
|
-
//#endregion
|
|
1370
|
-
//#region src/effect/generated/resources/org/consumer/consumer.ts
|
|
1371
|
-
const OP_LIST_CONNECTED_TOOLKITS = generatedOperation("org.consumer.listConnectedToolkits");
|
|
1372
|
-
const makeConsumer = (kernel) => ({
|
|
1373
|
-
project: makeProject$1(kernel),
|
|
1374
|
-
listConnectedToolkits: (params, options) => {
|
|
1375
|
-
const { "x-user-api-key": xUserApiKey, "x-org-id": xOrgId, ...query } = params;
|
|
1376
|
-
return executeOperation(kernel, OP_LIST_CONNECTED_TOOLKITS, {
|
|
1377
|
-
query,
|
|
1378
|
-
operationHeaders: {
|
|
1379
|
-
"x-user-api-key": xUserApiKey,
|
|
1380
|
-
"x-org-id": xOrgId
|
|
1381
|
-
}
|
|
1382
|
-
}, options);
|
|
1383
|
-
}
|
|
1384
|
-
});
|
|
1385
|
-
|
|
1386
1320
|
//#endregion
|
|
1387
1321
|
//#region src/effect/generated/resources/org/project.ts
|
|
1388
|
-
const OP_LIST$
|
|
1389
|
-
const makeProject = (kernel) => ({ list: (query = {}, options) => executeOperation(kernel, OP_LIST$
|
|
1322
|
+
const OP_LIST$4 = generatedOperation("org.project.list");
|
|
1323
|
+
const makeProject$1 = (kernel) => ({ list: (query = {}, options) => executeOperation(kernel, OP_LIST$4, { query }, options) });
|
|
1390
1324
|
|
|
1391
1325
|
//#endregion
|
|
1392
1326
|
//#region src/effect/generated/resources/org/usage.ts
|
|
1393
|
-
const OP_RETRIEVE$
|
|
1327
|
+
const OP_RETRIEVE$3 = generatedOperation("org.usage.retrieve");
|
|
1394
1328
|
const OP_RETRIEVE_SUMMARY = generatedOperation("org.usage.retrieveSummary");
|
|
1395
1329
|
const makeUsage = (kernel) => ({
|
|
1396
|
-
retrieve: (entityType, body = {}, options) => executeOperation(kernel, OP_RETRIEVE$
|
|
1330
|
+
retrieve: (entityType, body = {}, options) => executeOperation(kernel, OP_RETRIEVE$3, {
|
|
1397
1331
|
path: [entityType],
|
|
1398
1332
|
body
|
|
1399
1333
|
}, options),
|
|
@@ -1407,14 +1341,13 @@ const makeClanker = (kernel) => ({ createClaim: (body, options) => executeOperat
|
|
|
1407
1341
|
|
|
1408
1342
|
//#endregion
|
|
1409
1343
|
//#region src/effect/generated/resources/org/org.ts
|
|
1410
|
-
const OP_LIST$
|
|
1411
|
-
const makeOrg = (kernel) => ({
|
|
1344
|
+
const OP_LIST$3 = generatedOperation("org.list");
|
|
1345
|
+
const makeOrg$1 = (kernel) => ({
|
|
1412
1346
|
owner: makeOwner(kernel),
|
|
1413
|
-
|
|
1414
|
-
project: makeProject(kernel),
|
|
1347
|
+
project: makeProject$1(kernel),
|
|
1415
1348
|
usage: makeUsage(kernel),
|
|
1416
1349
|
clanker: makeClanker(kernel),
|
|
1417
|
-
list: (query = {}, options) => executeOperation(kernel, OP_LIST$
|
|
1350
|
+
list: (query = {}, options) => executeOperation(kernel, OP_LIST$3, { query }, options)
|
|
1418
1351
|
});
|
|
1419
1352
|
|
|
1420
1353
|
//#endregion
|
|
@@ -1431,6 +1364,92 @@ const makeAuth = (kernel) => ({ session: makeSession(kernel) });
|
|
|
1431
1364
|
const OP_CREATE = generatedOperation("apiKeyRevocation.create");
|
|
1432
1365
|
const makeApiKeyRevocation = (kernel) => ({ create: (body, options) => executeOperation(kernel, OP_CREATE, { body }, options) });
|
|
1433
1366
|
|
|
1367
|
+
//#endregion
|
|
1368
|
+
//#region src/effect/generated/resources/_internal/cli/realtime.ts
|
|
1369
|
+
const OP_AUTH = generatedOperation("_internal.cli.realtime.auth");
|
|
1370
|
+
const OP_CREDENTIALS = generatedOperation("_internal.cli.realtime.credentials");
|
|
1371
|
+
const makeRealtime = (kernel) => ({
|
|
1372
|
+
auth: (body, options) => executeOperation(kernel, OP_AUTH, { body }, options),
|
|
1373
|
+
credentials: (options) => executeOperation(kernel, OP_CREDENTIALS, {}, options)
|
|
1374
|
+
});
|
|
1375
|
+
|
|
1376
|
+
//#endregion
|
|
1377
|
+
//#region src/effect/generated/resources/_internal/cli/cli.ts
|
|
1378
|
+
const OP_CREATE_SESSION = generatedOperation("_internal.cli.createSession");
|
|
1379
|
+
const OP_GET_SESSION = generatedOperation("_internal.cli.getSession");
|
|
1380
|
+
const makeCli = (kernel) => ({
|
|
1381
|
+
realtime: makeRealtime(kernel),
|
|
1382
|
+
createSession: (body = {}, options) => executeOperation(kernel, OP_CREATE_SESSION, { body }, options),
|
|
1383
|
+
getSession: (query, options) => executeOperation(kernel, OP_GET_SESSION, { query }, options)
|
|
1384
|
+
});
|
|
1385
|
+
|
|
1386
|
+
//#endregion
|
|
1387
|
+
//#region src/effect/generated/resources/_internal/logs/triggers.ts
|
|
1388
|
+
const OP_RETRIEVE$2 = generatedOperation("_internal.logs.triggers.retrieve");
|
|
1389
|
+
const OP_LIST$2 = generatedOperation("_internal.logs.triggers.list");
|
|
1390
|
+
const makeTriggers = (kernel) => ({
|
|
1391
|
+
retrieve: (id, options) => executeOperation(kernel, OP_RETRIEVE$2, { path: [id] }, options),
|
|
1392
|
+
list: (body = {}, options) => executeOperation(kernel, OP_LIST$2, { body }, options)
|
|
1393
|
+
});
|
|
1394
|
+
|
|
1395
|
+
//#endregion
|
|
1396
|
+
//#region src/effect/generated/resources/_internal/logs/tools.ts
|
|
1397
|
+
const OP_RETRIEVE$1 = generatedOperation("_internal.logs.tools.retrieve");
|
|
1398
|
+
const OP_LIST$1 = generatedOperation("_internal.logs.tools.list");
|
|
1399
|
+
const OP_LIST_FIELDS = generatedOperation("_internal.logs.tools.listFields");
|
|
1400
|
+
const makeTools = (kernel) => ({
|
|
1401
|
+
retrieve: (id, options) => executeOperation(kernel, OP_RETRIEVE$1, { path: [id] }, options),
|
|
1402
|
+
list: (body, options) => executeOperation(kernel, OP_LIST$1, { body }, options),
|
|
1403
|
+
listFields: (options) => executeOperation(kernel, OP_LIST_FIELDS, {}, options)
|
|
1404
|
+
});
|
|
1405
|
+
|
|
1406
|
+
//#endregion
|
|
1407
|
+
//#region src/effect/generated/resources/_internal/logs/logs.ts
|
|
1408
|
+
const makeLogs = (kernel) => ({
|
|
1409
|
+
triggers: makeTriggers(kernel),
|
|
1410
|
+
tools: makeTools(kernel)
|
|
1411
|
+
});
|
|
1412
|
+
|
|
1413
|
+
//#endregion
|
|
1414
|
+
//#region src/effect/generated/resources/_internal/org/consumer/project.ts
|
|
1415
|
+
const OP_RESOLVE = generatedOperation("_internal.org.consumer.project.resolve");
|
|
1416
|
+
const makeProject = (kernel) => ({ resolve: (params, options) => {
|
|
1417
|
+
const { "x-user-api-key": xUserApiKey, "x-org-id": xOrgId } = params;
|
|
1418
|
+
return executeOperation(kernel, OP_RESOLVE, { operationHeaders: {
|
|
1419
|
+
"x-user-api-key": xUserApiKey,
|
|
1420
|
+
"x-org-id": xOrgId
|
|
1421
|
+
} }, options);
|
|
1422
|
+
} });
|
|
1423
|
+
|
|
1424
|
+
//#endregion
|
|
1425
|
+
//#region src/effect/generated/resources/_internal/org/consumer/consumer.ts
|
|
1426
|
+
const OP_LIST_CONNECTED_TOOLKITS = generatedOperation("_internal.org.consumer.listConnectedToolkits");
|
|
1427
|
+
const makeConsumer = (kernel) => ({
|
|
1428
|
+
project: makeProject(kernel),
|
|
1429
|
+
listConnectedToolkits: (params, options) => {
|
|
1430
|
+
const { "x-user-api-key": xUserApiKey, "x-org-id": xOrgId, ...query } = params;
|
|
1431
|
+
return executeOperation(kernel, OP_LIST_CONNECTED_TOOLKITS, {
|
|
1432
|
+
query,
|
|
1433
|
+
operationHeaders: {
|
|
1434
|
+
"x-user-api-key": xUserApiKey,
|
|
1435
|
+
"x-org-id": xOrgId
|
|
1436
|
+
}
|
|
1437
|
+
}, options);
|
|
1438
|
+
}
|
|
1439
|
+
});
|
|
1440
|
+
|
|
1441
|
+
//#endregion
|
|
1442
|
+
//#region src/effect/generated/resources/_internal/org/org.ts
|
|
1443
|
+
const makeOrg = (kernel) => ({ consumer: makeConsumer(kernel) });
|
|
1444
|
+
|
|
1445
|
+
//#endregion
|
|
1446
|
+
//#region src/effect/generated/resources/_internal/_internal.ts
|
|
1447
|
+
const makeInternal = (kernel) => ({
|
|
1448
|
+
cli: makeCli(kernel),
|
|
1449
|
+
logs: makeLogs(kernel),
|
|
1450
|
+
org: makeOrg(kernel)
|
|
1451
|
+
});
|
|
1452
|
+
|
|
1434
1453
|
//#endregion
|
|
1435
1454
|
//#region src/effect/generated/resources/custom.ts
|
|
1436
1455
|
const OP_DELETE_TOOLKIT = generatedOperation("custom.deleteToolkit");
|
|
@@ -1479,14 +1498,15 @@ const createClientResources = (kernel) => ({
|
|
|
1479
1498
|
triggersTypes: makeTriggersTypes(kernel),
|
|
1480
1499
|
triggerInstances: makeTriggerInstances(kernel),
|
|
1481
1500
|
mcp: makeMcp(kernel),
|
|
1482
|
-
cli: makeCli(kernel),
|
|
1483
|
-
logs: makeLogs(kernel),
|
|
1501
|
+
cli: makeCli$1(kernel),
|
|
1502
|
+
logs: makeLogs$1(kernel),
|
|
1484
1503
|
project: makeProject$3(kernel),
|
|
1485
1504
|
webhookSubscriptions: makeWebhookSubscriptions(kernel),
|
|
1486
1505
|
webhookEndpoints: makeWebhookEndpoints(kernel),
|
|
1487
|
-
org: makeOrg(kernel),
|
|
1506
|
+
org: makeOrg$1(kernel),
|
|
1488
1507
|
auth: makeAuth(kernel),
|
|
1489
1508
|
apiKeyRevocation: makeApiKeyRevocation(kernel),
|
|
1509
|
+
_internal: makeInternal(kernel),
|
|
1490
1510
|
custom: makeCustom(kernel),
|
|
1491
1511
|
keyring: makeKeyring(kernel),
|
|
1492
1512
|
sessionConfigs: makeSessionConfigs(kernel)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as APIError } from "./error-Bw7_G2NZ.mjs";
|
|
2
|
-
import { g as safeJSON, l as castToError } from "./generated-operations-
|
|
2
|
+
import { g as safeJSON, l as castToError } from "./generated-operations-igWp3zha.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/compat/api-promise.ts
|
|
5
5
|
/**
|
|
@@ -99,15 +99,23 @@ const GENERATED_DEPRECATED_INPUTS = /* @__PURE__ */ new Map([
|
|
|
99
99
|
in: "query",
|
|
100
100
|
replacementWire: null
|
|
101
101
|
}]],
|
|
102
|
-
["authConfigs.update", [
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
102
|
+
["authConfigs.update", [
|
|
103
|
+
{
|
|
104
|
+
wire: "restrict_to_following_tools",
|
|
105
|
+
in: "body",
|
|
106
|
+
replacementWire: null
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
wire: "tool_access_config",
|
|
110
|
+
in: "body",
|
|
111
|
+
replacementWire: null
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
wire: "shared_credentials",
|
|
115
|
+
in: "body",
|
|
116
|
+
replacementWire: null
|
|
117
|
+
}
|
|
118
|
+
]],
|
|
111
119
|
["mcp.generate.url", [{
|
|
112
120
|
wire: "managed_auth_by_composio",
|
|
113
121
|
in: "body",
|
|
@@ -1008,7 +1008,7 @@ function* headerNames(headers) {
|
|
|
1008
1008
|
|
|
1009
1009
|
//#endregion
|
|
1010
1010
|
//#region src/version.ts
|
|
1011
|
-
const VERSION = "2.0.0-rc.
|
|
1011
|
+
const VERSION = "2.0.0-rc.22";
|
|
1012
1012
|
|
|
1013
1013
|
//#endregion
|
|
1014
1014
|
//#region src/compat/identity.ts
|
|
@@ -1871,13 +1871,18 @@ const GENERATED_OPERATIONS = [
|
|
|
1871
1871
|
{
|
|
1872
1872
|
method: "get",
|
|
1873
1873
|
path: "/api/v3.1/cli/get-session",
|
|
1874
|
-
chain: [
|
|
1874
|
+
chain: [
|
|
1875
|
+
"_internal",
|
|
1876
|
+
"cli",
|
|
1877
|
+
"getSession"
|
|
1878
|
+
],
|
|
1875
1879
|
schemes: ["no_auth"]
|
|
1876
1880
|
},
|
|
1877
1881
|
{
|
|
1878
1882
|
method: "get",
|
|
1879
1883
|
path: "/api/v3.1/cli/realtime/credentials",
|
|
1880
1884
|
chain: [
|
|
1885
|
+
"_internal",
|
|
1881
1886
|
"cli",
|
|
1882
1887
|
"realtime",
|
|
1883
1888
|
"credentials"
|
|
@@ -1905,6 +1910,7 @@ const GENERATED_OPERATIONS = [
|
|
|
1905
1910
|
method: "get",
|
|
1906
1911
|
path: "/api/v3.1/internal/action_execution/fields",
|
|
1907
1912
|
chain: [
|
|
1913
|
+
"_internal",
|
|
1908
1914
|
"logs",
|
|
1909
1915
|
"tools",
|
|
1910
1916
|
"listFields"
|
|
@@ -1914,6 +1920,7 @@ const GENERATED_OPERATIONS = [
|
|
|
1914
1920
|
method: "get",
|
|
1915
1921
|
path: "/api/v3.1/internal/action_execution/log/{id}",
|
|
1916
1922
|
chain: [
|
|
1923
|
+
"_internal",
|
|
1917
1924
|
"logs",
|
|
1918
1925
|
"tools",
|
|
1919
1926
|
"retrieve"
|
|
@@ -1923,6 +1930,7 @@ const GENERATED_OPERATIONS = [
|
|
|
1923
1930
|
method: "get",
|
|
1924
1931
|
path: "/api/v3.1/internal/trigger/log/{id}",
|
|
1925
1932
|
chain: [
|
|
1933
|
+
"_internal",
|
|
1926
1934
|
"logs",
|
|
1927
1935
|
"triggers",
|
|
1928
1936
|
"retrieve"
|
|
@@ -1962,6 +1970,7 @@ const GENERATED_OPERATIONS = [
|
|
|
1962
1970
|
method: "get",
|
|
1963
1971
|
path: "/api/v3.1/org/consumer/connected_toolkits",
|
|
1964
1972
|
chain: [
|
|
1973
|
+
"_internal",
|
|
1965
1974
|
"org",
|
|
1966
1975
|
"consumer",
|
|
1967
1976
|
"listConnectedToolkits"
|
|
@@ -2238,13 +2247,18 @@ const GENERATED_OPERATIONS = [
|
|
|
2238
2247
|
{
|
|
2239
2248
|
method: "post",
|
|
2240
2249
|
path: "/api/v3.1/cli/create-session",
|
|
2241
|
-
chain: [
|
|
2250
|
+
chain: [
|
|
2251
|
+
"_internal",
|
|
2252
|
+
"cli",
|
|
2253
|
+
"createSession"
|
|
2254
|
+
],
|
|
2242
2255
|
schemes: ["no_auth"]
|
|
2243
2256
|
},
|
|
2244
2257
|
{
|
|
2245
2258
|
method: "post",
|
|
2246
2259
|
path: "/api/v3.1/cli/realtime/auth",
|
|
2247
2260
|
chain: [
|
|
2261
|
+
"_internal",
|
|
2248
2262
|
"cli",
|
|
2249
2263
|
"realtime",
|
|
2250
2264
|
"auth"
|
|
@@ -2298,6 +2312,7 @@ const GENERATED_OPERATIONS = [
|
|
|
2298
2312
|
method: "post",
|
|
2299
2313
|
path: "/api/v3.1/internal/action_execution/logs",
|
|
2300
2314
|
chain: [
|
|
2315
|
+
"_internal",
|
|
2301
2316
|
"logs",
|
|
2302
2317
|
"tools",
|
|
2303
2318
|
"list"
|
|
@@ -2307,6 +2322,7 @@ const GENERATED_OPERATIONS = [
|
|
|
2307
2322
|
method: "post",
|
|
2308
2323
|
path: "/api/v3.1/internal/trigger/logs",
|
|
2309
2324
|
chain: [
|
|
2325
|
+
"_internal",
|
|
2310
2326
|
"logs",
|
|
2311
2327
|
"triggers",
|
|
2312
2328
|
"list"
|
|
@@ -2360,6 +2376,7 @@ const GENERATED_OPERATIONS = [
|
|
|
2360
2376
|
method: "post",
|
|
2361
2377
|
path: "/api/v3.1/org/consumer/project/resolve",
|
|
2362
2378
|
chain: [
|
|
2379
|
+
"_internal",
|
|
2363
2380
|
"org",
|
|
2364
2381
|
"consumer",
|
|
2365
2382
|
"project",
|
|
@@ -2453,8 +2470,7 @@ const GENERATED_OPERATIONS = [
|
|
|
2453
2470
|
"toolRouter",
|
|
2454
2471
|
"session",
|
|
2455
2472
|
"execute"
|
|
2456
|
-
]
|
|
2457
|
-
schemes: ["ApiKeyAuth", "workbench_access_key"]
|
|
2473
|
+
]
|
|
2458
2474
|
},
|
|
2459
2475
|
{
|
|
2460
2476
|
method: "post",
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Aa as
|
|
2
|
-
import { n as VERSION, t as ENVIRONMENTS } from "./environments-
|
|
1
|
+
import { $i as SessionProxyExecuteResponse, Aa as AuthenticationError, B as LogLevel, Ba as FetchTransportDefaults, Bi as SessionConfigHistoryResponse, Ca as Credential, Da as APIError, Ea as APIConnectionTimeoutError, Fa as NotFoundError, Ga as APIPromise, Gi as SessionExecuteMetaResponse, Ha as createFetchTransport, Hi as SessionCreateResponse, Ia as PermissionDeniedError, Ii as Session, Ji as SessionLinkParams, Ki as SessionExecuteParams, L as ClientOptions, La as RateLimitError, Li as SessionAttachParams, Ma as ComposioError, Na as ConflictError, Oa as APIErrorBody, Pa as InternalServerError, Pi as ToolRouter, Qi as SessionProxyExecuteParams, R as Composio, Ra as UnprocessableEntityError, Ri as SessionAttachResponse, Sa as AutoCredentials, Ta as APIConnectionError, Ua as ClientIdentity, Ui as SessionDeleteResponse, Va as Transport, Vi as SessionCreateParams, Wi as SessionExecuteMetaParams, Xi as SessionPatchParams, Yi as SessionLinkResponse, Zi as SessionPatchResponse, aa as SessionToolsParams, ba as AuthMode, ca as FileCreateDownloadURLParams, da as FileCreateUploadURLResponse, ea as SessionRetrieveResponse, fa as FileDeleteParams, ga as Files, ha as FileListResponse, ia as SessionToolkitsResponse, ja as BadRequestError, ka as APIUserAbortError, la as FileCreateDownloadURLResponse, ma as FileListParams, na as SessionSearchResponse, oa as SessionToolsResponse, pa as FileDeleteResponse, qi as SessionExecuteResponse, ra as SessionToolkitsParams, ta as SessionSearchParams, ua as FileCreateUploadURLParams, va as Auth, wa as Scope, z as EnvironmentMap, za as RequestOptions, zi as SessionConfigHistoryParams } from "./_internal-UUxDozdb.mjs";
|
|
2
|
+
import { n as VERSION, t as ENVIRONMENTS } from "./environments-Dz5jsC_v.mjs";
|
|
3
3
|
export { APIConnectionError, APIConnectionTimeoutError, APIError, type APIErrorBody, APIPromise, APIUserAbortError, Auth, type AuthMode, AuthenticationError, type AutoCredentials, BadRequestError, type ClientIdentity, type ClientOptions, Composio, Composio as default, ComposioError, ConflictError, type Credential, ENVIRONMENTS, type EnvironmentMap, type FetchTransportDefaults, type FileCreateDownloadURLParams, type FileCreateDownloadURLResponse, type FileCreateUploadURLParams, type FileCreateUploadURLResponse, type FileDeleteParams, type FileDeleteResponse, type FileListParams, type FileListResponse, type Files, InternalServerError, type LogLevel, NotFoundError, PermissionDeniedError, RateLimitError, type RequestOptions, type Scope, type Session, type SessionAttachParams, type SessionAttachResponse, type SessionConfigHistoryParams, type SessionConfigHistoryResponse, type SessionCreateParams, type SessionCreateResponse, type SessionDeleteResponse, type SessionExecuteMetaParams, type SessionExecuteMetaResponse, type SessionExecuteParams, type SessionExecuteResponse, type SessionLinkParams, type SessionLinkResponse, type SessionPatchParams, type SessionPatchResponse, type SessionProxyExecuteParams, type SessionProxyExecuteResponse, type SessionRetrieveResponse, type SessionSearchParams, type SessionSearchResponse, type SessionToolkitsParams, type SessionToolkitsResponse, type SessionToolsParams, type SessionToolsResponse, type ToolRouter, type Transport, UnprocessableEntityError, VERSION, createFetchTransport };
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { a as AuthenticationError, c as ConflictError, d as PermissionDeniedError, f as RateLimitError, i as APIUserAbortError, l as InternalServerError, n as APIConnectionTimeoutError, o as BadRequestError, p as UnprocessableEntityError, r as APIError, s as ComposioError, t as APIConnectionError, u as NotFoundError } from "./error-Bw7_G2NZ.mjs";
|
|
2
|
-
import { A as Auth, C as resolveIdentity, D as inspectDeprecatedInputs, E as mergeHeaders, L as resolveAuth, O as inspectDeprecation, P as authFromCredentials, R as resolveScope, S as reservedHeaders, U as parseHTTPURL, V as assertCredentialTransport, b as createFetchTransport, j as assertNoRemovedCredentialOptions, p as readOperation, t as GENERATED_OPERATIONS, u as makeRequest, w as VERSION, x as assertNoReservedHeaders } from "./generated-operations-
|
|
2
|
+
import { A as Auth, C as resolveIdentity, D as inspectDeprecatedInputs, E as mergeHeaders, L as resolveAuth, O as inspectDeprecation, P as authFromCredentials, R as resolveScope, S as reservedHeaders, U as parseHTTPURL, V as assertCredentialTransport, b as createFetchTransport, j as assertNoRemovedCredentialOptions, p as readOperation, t as GENERATED_OPERATIONS, u as makeRequest, w as VERSION, x as assertNoReservedHeaders } from "./generated-operations-igWp3zha.mjs";
|
|
3
|
+
import { makeInternal } from "./resources/_internal/_internal.mjs";
|
|
3
4
|
import { makeApiKeyRevocation } from "./resources/api-key-revocation.mjs";
|
|
4
5
|
import { makeAuthConfigs } from "./resources/auth-configs.mjs";
|
|
5
6
|
import { makeAuth } from "./resources/auth/auth.mjs";
|
|
@@ -21,7 +22,7 @@ import { makeTriggerInstances } from "./resources/trigger-instances/trigger-inst
|
|
|
21
22
|
import { makeTriggersTypes } from "./resources/triggers-types.mjs";
|
|
22
23
|
import { makeWebhookEndpoints } from "./resources/webhook-endpoints.mjs";
|
|
23
24
|
import { makeWebhookSubscriptions } from "./resources/webhook-subscriptions.mjs";
|
|
24
|
-
import { n as GENERATED_DEPRECATED_INPUTS, r as APIPromise, t as ENVIRONMENTS } from "./environments-
|
|
25
|
+
import { n as GENERATED_DEPRECATED_INPUTS, r as APIPromise, t as ENVIRONMENTS } from "./environments-DIBy8nYx.mjs";
|
|
25
26
|
|
|
26
27
|
//#region src/compat/generated-resource-wiring.ts
|
|
27
28
|
const createClientResources = (client) => ({
|
|
@@ -43,6 +44,7 @@ const createClientResources = (client) => ({
|
|
|
43
44
|
org: makeOrg(client),
|
|
44
45
|
auth: makeAuth(client),
|
|
45
46
|
apiKeyRevocation: makeApiKeyRevocation(client),
|
|
47
|
+
_internal: makeInternal(client),
|
|
46
48
|
custom: makeCustom(client),
|
|
47
49
|
keyring: makeKeyring(client),
|
|
48
50
|
sessionConfigs: makeSessionConfigs(client)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { makeCli } from "./cli/cli.mjs";
|
|
2
|
+
import { makeLogs } from "./logs/logs.mjs";
|
|
3
|
+
import { makeOrg } from "./org/org.mjs";
|
|
4
|
+
|
|
5
|
+
//#region src/compat/resources/_internal/_internal.ts
|
|
6
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
7
|
+
const makeInternal = (client) => ({
|
|
8
|
+
cli: makeCli(client),
|
|
9
|
+
logs: makeLogs(client),
|
|
10
|
+
org: makeOrg(client)
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
export { makeInternal };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { A as CliGetSessionResponse, D as CliCreateSessionParams, E as Cli, O as CliCreateSessionResponse, j as makeCli, k as CliGetSessionParams } from "../../../_internal-UUxDozdb.mjs";
|
|
2
|
+
export { Cli, CliCreateSessionParams, CliCreateSessionResponse, CliGetSessionParams, CliGetSessionResponse, makeCli };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { n as generatedOperation, y as withOperation } from "../../../generated-operations-igWp3zha.mjs";
|
|
2
|
+
import { makeRealtime } from "./realtime.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/compat/resources/_internal/cli/cli.ts
|
|
5
|
+
const OP_CREATE_SESSION = generatedOperation("_internal.cli.createSession");
|
|
6
|
+
const OP_GET_SESSION = generatedOperation("_internal.cli.getSession");
|
|
7
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
8
|
+
const makeCli = (client) => ({
|
|
9
|
+
realtime: makeRealtime(client),
|
|
10
|
+
createSession(body = {}, options) {
|
|
11
|
+
return client.post("/api/v3.1/cli/create-session", withOperation(OP_CREATE_SESSION, {
|
|
12
|
+
body,
|
|
13
|
+
...options
|
|
14
|
+
}));
|
|
15
|
+
},
|
|
16
|
+
getSession(query, options) {
|
|
17
|
+
return client.get("/api/v3.1/cli/get-session", withOperation(OP_GET_SESSION, {
|
|
18
|
+
query,
|
|
19
|
+
...options
|
|
20
|
+
}));
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
export { makeCli };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as generatedOperation, y as withOperation } from "
|
|
1
|
+
import { n as generatedOperation, y as withOperation } from "../../../generated-operations-igWp3zha.mjs";
|
|
2
2
|
|
|
3
|
-
//#region src/compat/resources/cli/realtime.ts
|
|
4
|
-
const OP_AUTH = generatedOperation("cli.realtime.auth");
|
|
5
|
-
const OP_CREDENTIALS = generatedOperation("cli.realtime.credentials");
|
|
3
|
+
//#region src/compat/resources/_internal/cli/realtime.ts
|
|
4
|
+
const OP_AUTH = generatedOperation("_internal.cli.realtime.auth");
|
|
5
|
+
const OP_CREDENTIALS = generatedOperation("_internal.cli.realtime.credentials");
|
|
6
6
|
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
7
7
|
const makeRealtime = (client) => ({
|
|
8
8
|
auth(body, options) {
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { A as CliGetSessionResponse, D as CliCreateSessionParams, E as Cli, F as RealtimeCredentialsResponse, M as Realtime, N as RealtimeAuthParams, O as CliCreateSessionResponse, P as RealtimeAuthResponse, k as CliGetSessionParams } from "../../_internal-UUxDozdb.mjs";
|
|
2
|
+
export type { Cli, CliCreateSessionParams, CliCreateSessionResponse, CliGetSessionParams, CliGetSessionResponse, Realtime, RealtimeAuthParams, RealtimeAuthResponse, RealtimeCredentialsResponse };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|