@composio/client 2.0.0-rc.21 → 2.0.0-rc.23
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 +65 -3
- package/dist/{api-key-revocation-BB3FTdR3.d.mts → _internal-Cw5Ug7qY.d.mts} +1032 -313
- package/dist/_internal-ttfqtnVb.d.mts +281 -0
- package/dist/effect/internal.d.mts +9 -0
- package/dist/effect/schemas/{cli → _internal/cli}/create-codact-failure.d.mts +2 -2
- package/dist/effect/schemas/{cli → _internal/cli}/create-codact-failure.mjs +2 -2
- 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/_internal/consumer/permissions/resolve.d.mts +13 -0
- package/dist/effect/schemas/_internal/consumer/permissions/resolve.mjs +20 -0
- 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/_internal/org/consumer/retrieve-config.d.mts +10 -0
- package/dist/effect/schemas/_internal/org/consumer/retrieve-config.mjs +18 -0
- 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 +468 -197
- package/dist/effect/schemas.mjs +14 -13
- package/dist/effect.d.mts +9 -260
- package/dist/effect.mjs +134 -112
- package/dist/{environments-BXSnADKo.d.mts → environments-C_HPMP7r.d.mts} +1 -1
- package/dist/{environments-CmxYUUsW.mjs → environments-QSJiwtIM.mjs} +18 -10
- package/dist/{generated-operations-BNRn8az6.mjs → generated-operations-B3PjeXjl.mjs} +48 -16
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +4 -4
- package/dist/internal.d.mts +9 -0
- package/dist/resources/_internal/_internal.d.mts +2 -0
- package/dist/resources/_internal/_internal.mjs +16 -0
- package/dist/resources/_internal/cli/cli.d.mts +2 -0
- package/dist/resources/{cli → _internal/cli}/cli.mjs +5 -5
- 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/consumer/consumer.d.mts +2 -0
- package/dist/resources/_internal/consumer/consumer.mjs +8 -0
- package/dist/resources/_internal/consumer/permissions.d.mts +2 -0
- package/dist/resources/_internal/consumer/permissions.mjs +14 -0
- package/dist/resources/_internal/consumer.d.mts +2 -0
- package/dist/resources/_internal/consumer.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 +7 -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/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/org.d.mts +1 -1
- package/dist/resources/org/org.mjs +1 -5
- 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 +17 -4
- package/dist/effect/schemas/org/clanker/create-claim.d.mts +0 -9
- package/dist/effect/schemas/org/clanker/create-claim.mjs +0 -14
- package/dist/resources/cli/cli.d.mts +0 -2
- package/dist/resources/cli/realtime.d.mts +0 -2
- package/dist/resources/cli.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/clanker.d.mts +0 -2
- package/dist/resources/org/clanker.mjs +0 -14
- 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/cli.mjs → effect/internal.mjs} +0 -0
- /package/dist/{resources/org/consumer.mjs → 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-B3PjeXjl.mjs";
|
|
3
|
+
import { i as classifySuccessBody, n as GENERATED_DEPRECATED_INPUTS, t as ENVIRONMENTS } from "./environments-QSJiwtIM.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,21 @@ 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
|
-
//#endregion
|
|
1222
|
-
//#region src/effect/generated/resources/cli/cli.ts
|
|
1223
|
-
const OP_CREATE_CODACT_FAILURE = generatedOperation("cli.createCodactFailure");
|
|
1224
|
-
const OP_CREATE_SESSION = generatedOperation("cli.createSession");
|
|
1225
|
-
const OP_GET_SESSION = generatedOperation("cli.getSession");
|
|
1226
|
-
const makeCli = (kernel) => ({
|
|
1227
|
-
realtime: makeRealtime(kernel),
|
|
1228
|
-
createCodactFailure: (params, options) => {
|
|
1229
|
-
const { "x-user-api-key": xUserApiKey, ...body } = params;
|
|
1230
|
-
return executeOperation(kernel, OP_CREATE_CODACT_FAILURE, {
|
|
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
|
-
});
|
|
1258
|
-
|
|
1259
1212
|
//#endregion
|
|
1260
1213
|
//#region src/effect/generated/resources/logs/logs.ts
|
|
1261
1214
|
const OP_CREATE_TOOL_EXECUTION = generatedOperation("logs.createToolExecution");
|
|
1262
1215
|
const OP_RETRIEVE_TOOL_EXECUTION = generatedOperation("logs.retrieveToolExecution");
|
|
1263
|
-
const makeLogs = (kernel) => ({
|
|
1264
|
-
triggers: makeTriggers(kernel),
|
|
1265
|
-
tools: makeTools(kernel),
|
|
1216
|
+
const makeLogs$1 = (kernel) => ({
|
|
1266
1217
|
createToolExecution: (body = {}, options) => executeOperation(kernel, OP_CREATE_TOOL_EXECUTION, { body }, options),
|
|
1267
1218
|
retrieveToolExecution: (id, options) => executeOperation(kernel, OP_RETRIEVE_TOOL_EXECUTION, { path: [id] }, options)
|
|
1268
1219
|
});
|
|
1269
1220
|
|
|
1270
1221
|
//#endregion
|
|
1271
1222
|
//#region src/effect/generated/resources/project/usage.ts
|
|
1272
|
-
const OP_RETRIEVE$
|
|
1223
|
+
const OP_RETRIEVE$7 = generatedOperation("project.usage.retrieve");
|
|
1273
1224
|
const OP_RETRIEVE_SUMMARY$1 = generatedOperation("project.usage.retrieveSummary");
|
|
1274
1225
|
const makeUsage$1 = (kernel) => ({
|
|
1275
|
-
retrieve: (entityType, body = {}, options) => executeOperation(kernel, OP_RETRIEVE$
|
|
1226
|
+
retrieve: (entityType, body = {}, options) => executeOperation(kernel, OP_RETRIEVE$7, {
|
|
1276
1227
|
path: [entityType],
|
|
1277
1228
|
body
|
|
1278
1229
|
}, options),
|
|
@@ -1286,21 +1237,21 @@ const makeProject$3 = (kernel) => ({ usage: makeUsage$1(kernel) });
|
|
|
1286
1237
|
//#endregion
|
|
1287
1238
|
//#region src/effect/generated/resources/webhook-subscriptions.ts
|
|
1288
1239
|
const OP_CREATE$3 = generatedOperation("webhookSubscriptions.create");
|
|
1289
|
-
const OP_RETRIEVE$
|
|
1240
|
+
const OP_RETRIEVE$6 = generatedOperation("webhookSubscriptions.retrieve");
|
|
1290
1241
|
const OP_UPDATE$1 = generatedOperation("webhookSubscriptions.update");
|
|
1291
|
-
const OP_LIST$
|
|
1242
|
+
const OP_LIST$7 = generatedOperation("webhookSubscriptions.list");
|
|
1292
1243
|
const OP_DELETE$1 = generatedOperation("webhookSubscriptions.delete");
|
|
1293
1244
|
const OP_LIST_EVENT_TYPES = generatedOperation("webhookSubscriptions.listEventTypes");
|
|
1294
1245
|
const OP_ROTATE_SECRET = generatedOperation("webhookSubscriptions.rotateSecret");
|
|
1295
1246
|
const makeWebhookSubscriptions = (kernel) => {
|
|
1296
1247
|
const resource = {
|
|
1297
1248
|
create: (body, options) => executeOperation(kernel, OP_CREATE$3, { body }, options),
|
|
1298
|
-
retrieve: (id, options) => executeOperation(kernel, OP_RETRIEVE$
|
|
1249
|
+
retrieve: (id, options) => executeOperation(kernel, OP_RETRIEVE$6, { path: [id] }, options),
|
|
1299
1250
|
update: (id, body = {}, options) => executeOperation(kernel, OP_UPDATE$1, {
|
|
1300
1251
|
path: [id],
|
|
1301
1252
|
body
|
|
1302
1253
|
}, options),
|
|
1303
|
-
list: (query = {}, options) => executeOperation(kernel, OP_LIST$
|
|
1254
|
+
list: (query = {}, options) => executeOperation(kernel, OP_LIST$7, { query }, options),
|
|
1304
1255
|
listStream: (query, options) => cursorStream((cursor) => resource.list(cursor === void 0 ? query : {
|
|
1305
1256
|
...query,
|
|
1306
1257
|
cursor
|
|
@@ -1315,18 +1266,18 @@ const makeWebhookSubscriptions = (kernel) => {
|
|
|
1315
1266
|
//#endregion
|
|
1316
1267
|
//#region src/effect/generated/resources/webhook-endpoints.ts
|
|
1317
1268
|
const OP_CREATE$2 = generatedOperation("webhookEndpoints.create");
|
|
1318
|
-
const OP_RETRIEVE$
|
|
1269
|
+
const OP_RETRIEVE$5 = generatedOperation("webhookEndpoints.retrieve");
|
|
1319
1270
|
const OP_UPDATE = generatedOperation("webhookEndpoints.update");
|
|
1320
|
-
const OP_LIST$
|
|
1271
|
+
const OP_LIST$6 = generatedOperation("webhookEndpoints.list");
|
|
1321
1272
|
const OP_REPLACE = generatedOperation("webhookEndpoints.replace");
|
|
1322
1273
|
const makeWebhookEndpoints = (kernel) => ({
|
|
1323
1274
|
create: (body, options) => executeOperation(kernel, OP_CREATE$2, { body }, options),
|
|
1324
|
-
retrieve: (nanoID, options) => executeOperation(kernel, OP_RETRIEVE$
|
|
1275
|
+
retrieve: (nanoID, options) => executeOperation(kernel, OP_RETRIEVE$5, { path: [nanoID] }, options),
|
|
1325
1276
|
update: (nanoID, body, options) => executeOperation(kernel, OP_UPDATE, {
|
|
1326
1277
|
path: [nanoID],
|
|
1327
1278
|
body
|
|
1328
1279
|
}, options),
|
|
1329
|
-
list: (query = {}, options) => executeOperation(kernel, OP_LIST$
|
|
1280
|
+
list: (query = {}, options) => executeOperation(kernel, OP_LIST$6, { query }, options),
|
|
1330
1281
|
replace: (nanoID, body, options) => executeOperation(kernel, OP_REPLACE, {
|
|
1331
1282
|
path: [nanoID],
|
|
1332
1283
|
body
|
|
@@ -1336,14 +1287,14 @@ const makeWebhookEndpoints = (kernel) => ({
|
|
|
1336
1287
|
//#endregion
|
|
1337
1288
|
//#region src/effect/generated/resources/org/owner/project.ts
|
|
1338
1289
|
const OP_CREATE$1 = generatedOperation("org.owner.project.create");
|
|
1339
|
-
const OP_RETRIEVE$
|
|
1340
|
-
const OP_LIST$
|
|
1290
|
+
const OP_RETRIEVE$4 = generatedOperation("org.owner.project.retrieve");
|
|
1291
|
+
const OP_LIST$5 = generatedOperation("org.owner.project.list");
|
|
1341
1292
|
const OP_DELETE = generatedOperation("org.owner.project.delete");
|
|
1342
1293
|
const OP_REGENERATE_APIKEY = generatedOperation("org.owner.project.regenerateAPIKey");
|
|
1343
1294
|
const makeProject$2 = (kernel) => ({
|
|
1344
1295
|
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$
|
|
1296
|
+
retrieve: (nanoID, options) => executeOperation(kernel, OP_RETRIEVE$4, { path: [nanoID] }, options),
|
|
1297
|
+
list: (query = {}, options) => executeOperation(kernel, OP_LIST$5, { query }, options),
|
|
1347
1298
|
delete: (nanoID, query = {}, options) => executeOperation(kernel, OP_DELETE, {
|
|
1348
1299
|
path: [nanoID],
|
|
1349
1300
|
query
|
|
@@ -1355,66 +1306,31 @@ const makeProject$2 = (kernel) => ({
|
|
|
1355
1306
|
//#region src/effect/generated/resources/org/owner/owner.ts
|
|
1356
1307
|
const makeOwner = (kernel) => ({ project: makeProject$2(kernel) });
|
|
1357
1308
|
|
|
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
1309
|
//#endregion
|
|
1387
1310
|
//#region src/effect/generated/resources/org/project.ts
|
|
1388
|
-
const OP_LIST$
|
|
1389
|
-
const makeProject = (kernel) => ({ list: (query = {}, options) => executeOperation(kernel, OP_LIST$
|
|
1311
|
+
const OP_LIST$4 = generatedOperation("org.project.list");
|
|
1312
|
+
const makeProject$1 = (kernel) => ({ list: (query = {}, options) => executeOperation(kernel, OP_LIST$4, { query }, options) });
|
|
1390
1313
|
|
|
1391
1314
|
//#endregion
|
|
1392
1315
|
//#region src/effect/generated/resources/org/usage.ts
|
|
1393
|
-
const OP_RETRIEVE$
|
|
1316
|
+
const OP_RETRIEVE$3 = generatedOperation("org.usage.retrieve");
|
|
1394
1317
|
const OP_RETRIEVE_SUMMARY = generatedOperation("org.usage.retrieveSummary");
|
|
1395
1318
|
const makeUsage = (kernel) => ({
|
|
1396
|
-
retrieve: (entityType, body = {}, options) => executeOperation(kernel, OP_RETRIEVE$
|
|
1319
|
+
retrieve: (entityType, body = {}, options) => executeOperation(kernel, OP_RETRIEVE$3, {
|
|
1397
1320
|
path: [entityType],
|
|
1398
1321
|
body
|
|
1399
1322
|
}, options),
|
|
1400
1323
|
retrieveSummary: (body = {}, options) => executeOperation(kernel, OP_RETRIEVE_SUMMARY, { body }, options)
|
|
1401
1324
|
});
|
|
1402
1325
|
|
|
1403
|
-
//#endregion
|
|
1404
|
-
//#region src/effect/generated/resources/org/clanker.ts
|
|
1405
|
-
const OP_CREATE_CLAIM = generatedOperation("org.clanker.createClaim");
|
|
1406
|
-
const makeClanker = (kernel) => ({ createClaim: (body, options) => executeOperation(kernel, OP_CREATE_CLAIM, { body }, options) });
|
|
1407
|
-
|
|
1408
1326
|
//#endregion
|
|
1409
1327
|
//#region src/effect/generated/resources/org/org.ts
|
|
1410
|
-
const OP_LIST$
|
|
1411
|
-
const makeOrg = (kernel) => ({
|
|
1328
|
+
const OP_LIST$3 = generatedOperation("org.list");
|
|
1329
|
+
const makeOrg$1 = (kernel) => ({
|
|
1412
1330
|
owner: makeOwner(kernel),
|
|
1413
|
-
|
|
1414
|
-
project: makeProject(kernel),
|
|
1331
|
+
project: makeProject$1(kernel),
|
|
1415
1332
|
usage: makeUsage(kernel),
|
|
1416
|
-
|
|
1417
|
-
list: (query = {}, options) => executeOperation(kernel, OP_LIST$1, { query }, options)
|
|
1333
|
+
list: (query = {}, options) => executeOperation(kernel, OP_LIST$3, { query }, options)
|
|
1418
1334
|
});
|
|
1419
1335
|
|
|
1420
1336
|
//#endregion
|
|
@@ -1431,6 +1347,112 @@ const makeAuth = (kernel) => ({ session: makeSession(kernel) });
|
|
|
1431
1347
|
const OP_CREATE = generatedOperation("apiKeyRevocation.create");
|
|
1432
1348
|
const makeApiKeyRevocation = (kernel) => ({ create: (body, options) => executeOperation(kernel, OP_CREATE, { body }, options) });
|
|
1433
1349
|
|
|
1350
|
+
//#endregion
|
|
1351
|
+
//#region src/effect/generated/resources/_internal/cli/realtime.ts
|
|
1352
|
+
const OP_AUTH = generatedOperation("_internal.cli.realtime.auth");
|
|
1353
|
+
const OP_CREDENTIALS = generatedOperation("_internal.cli.realtime.credentials");
|
|
1354
|
+
const makeRealtime = (kernel) => ({
|
|
1355
|
+
auth: (body, options) => executeOperation(kernel, OP_AUTH, { body }, options),
|
|
1356
|
+
credentials: (options) => executeOperation(kernel, OP_CREDENTIALS, {}, options)
|
|
1357
|
+
});
|
|
1358
|
+
|
|
1359
|
+
//#endregion
|
|
1360
|
+
//#region src/effect/generated/resources/_internal/cli/cli.ts
|
|
1361
|
+
const OP_CREATE_CODACT_FAILURE = generatedOperation("_internal.cli.createCodactFailure");
|
|
1362
|
+
const OP_CREATE_SESSION = generatedOperation("_internal.cli.createSession");
|
|
1363
|
+
const OP_GET_SESSION = generatedOperation("_internal.cli.getSession");
|
|
1364
|
+
const makeCli = (kernel) => ({
|
|
1365
|
+
realtime: makeRealtime(kernel),
|
|
1366
|
+
createCodactFailure: (params, options) => {
|
|
1367
|
+
const { "x-user-api-key": xUserApiKey, ...body } = params;
|
|
1368
|
+
return executeOperation(kernel, OP_CREATE_CODACT_FAILURE, {
|
|
1369
|
+
body,
|
|
1370
|
+
operationHeaders: { "x-user-api-key": xUserApiKey }
|
|
1371
|
+
}, options);
|
|
1372
|
+
},
|
|
1373
|
+
createSession: (body = {}, options) => executeOperation(kernel, OP_CREATE_SESSION, { body }, options),
|
|
1374
|
+
getSession: (query, options) => executeOperation(kernel, OP_GET_SESSION, { query }, options)
|
|
1375
|
+
});
|
|
1376
|
+
|
|
1377
|
+
//#endregion
|
|
1378
|
+
//#region src/effect/generated/resources/_internal/consumer/permissions.ts
|
|
1379
|
+
const OP_RESOLVE$1 = generatedOperation("_internal.consumer.permissions.resolve");
|
|
1380
|
+
const makePermissions = (kernel) => ({ resolve: (body = {}, options) => executeOperation(kernel, OP_RESOLVE$1, { body }, options) });
|
|
1381
|
+
|
|
1382
|
+
//#endregion
|
|
1383
|
+
//#region src/effect/generated/resources/_internal/consumer/consumer.ts
|
|
1384
|
+
const makeConsumer$1 = (kernel) => ({ permissions: makePermissions(kernel) });
|
|
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 OP_RETRIEVE_CONFIG = generatedOperation("_internal.org.consumer.retrieveConfig");
|
|
1428
|
+
const makeConsumer = (kernel) => ({
|
|
1429
|
+
project: makeProject(kernel),
|
|
1430
|
+
listConnectedToolkits: (params, options) => {
|
|
1431
|
+
const { "x-user-api-key": xUserApiKey, "x-org-id": xOrgId, ...query } = params;
|
|
1432
|
+
return executeOperation(kernel, OP_LIST_CONNECTED_TOOLKITS, {
|
|
1433
|
+
query,
|
|
1434
|
+
operationHeaders: {
|
|
1435
|
+
"x-user-api-key": xUserApiKey,
|
|
1436
|
+
"x-org-id": xOrgId
|
|
1437
|
+
}
|
|
1438
|
+
}, options);
|
|
1439
|
+
},
|
|
1440
|
+
retrieveConfig: (options) => executeOperation(kernel, OP_RETRIEVE_CONFIG, {}, options)
|
|
1441
|
+
});
|
|
1442
|
+
|
|
1443
|
+
//#endregion
|
|
1444
|
+
//#region src/effect/generated/resources/_internal/org/org.ts
|
|
1445
|
+
const makeOrg = (kernel) => ({ consumer: makeConsumer(kernel) });
|
|
1446
|
+
|
|
1447
|
+
//#endregion
|
|
1448
|
+
//#region src/effect/generated/resources/_internal/_internal.ts
|
|
1449
|
+
const makeInternal = (kernel) => ({
|
|
1450
|
+
cli: makeCli(kernel),
|
|
1451
|
+
consumer: makeConsumer$1(kernel),
|
|
1452
|
+
logs: makeLogs(kernel),
|
|
1453
|
+
org: makeOrg(kernel)
|
|
1454
|
+
});
|
|
1455
|
+
|
|
1434
1456
|
//#endregion
|
|
1435
1457
|
//#region src/effect/generated/resources/custom.ts
|
|
1436
1458
|
const OP_DELETE_TOOLKIT = generatedOperation("custom.deleteToolkit");
|
|
@@ -1479,14 +1501,14 @@ const createClientResources = (kernel) => ({
|
|
|
1479
1501
|
triggersTypes: makeTriggersTypes(kernel),
|
|
1480
1502
|
triggerInstances: makeTriggerInstances(kernel),
|
|
1481
1503
|
mcp: makeMcp(kernel),
|
|
1482
|
-
|
|
1483
|
-
logs: makeLogs(kernel),
|
|
1504
|
+
logs: makeLogs$1(kernel),
|
|
1484
1505
|
project: makeProject$3(kernel),
|
|
1485
1506
|
webhookSubscriptions: makeWebhookSubscriptions(kernel),
|
|
1486
1507
|
webhookEndpoints: makeWebhookEndpoints(kernel),
|
|
1487
|
-
org: makeOrg(kernel),
|
|
1508
|
+
org: makeOrg$1(kernel),
|
|
1488
1509
|
auth: makeAuth(kernel),
|
|
1489
1510
|
apiKeyRevocation: makeApiKeyRevocation(kernel),
|
|
1511
|
+
_internal: makeInternal(kernel),
|
|
1490
1512
|
custom: makeCustom(kernel),
|
|
1491
1513
|
keyring: makeKeyring(kernel),
|
|
1492
1514
|
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-B3PjeXjl.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.23";
|
|
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"
|
|
@@ -1958,10 +1966,22 @@ const GENERATED_OPERATIONS = [
|
|
|
1958
1966
|
path: "/api/v3.1/mcp/{id}",
|
|
1959
1967
|
chain: ["mcp", "retrieve"]
|
|
1960
1968
|
},
|
|
1969
|
+
{
|
|
1970
|
+
method: "get",
|
|
1971
|
+
path: "/api/v3.1/org/consumer/config",
|
|
1972
|
+
chain: [
|
|
1973
|
+
"_internal",
|
|
1974
|
+
"org",
|
|
1975
|
+
"consumer",
|
|
1976
|
+
"retrieveConfig"
|
|
1977
|
+
],
|
|
1978
|
+
schemes: ["UserApiKeyAuth"]
|
|
1979
|
+
},
|
|
1961
1980
|
{
|
|
1962
1981
|
method: "get",
|
|
1963
1982
|
path: "/api/v3.1/org/consumer/connected_toolkits",
|
|
1964
1983
|
chain: [
|
|
1984
|
+
"_internal",
|
|
1965
1985
|
"org",
|
|
1966
1986
|
"consumer",
|
|
1967
1987
|
"listConnectedToolkits"
|
|
@@ -2231,20 +2251,29 @@ const GENERATED_OPERATIONS = [
|
|
|
2231
2251
|
{
|
|
2232
2252
|
method: "post",
|
|
2233
2253
|
path: "/api/v3.1/cli/codact_failures",
|
|
2234
|
-
chain: [
|
|
2254
|
+
chain: [
|
|
2255
|
+
"_internal",
|
|
2256
|
+
"cli",
|
|
2257
|
+
"createCodactFailure"
|
|
2258
|
+
],
|
|
2235
2259
|
schemes: ["UserApiKeyAuth"],
|
|
2236
2260
|
requiredHeaders: ["x-user-api-key"]
|
|
2237
2261
|
},
|
|
2238
2262
|
{
|
|
2239
2263
|
method: "post",
|
|
2240
2264
|
path: "/api/v3.1/cli/create-session",
|
|
2241
|
-
chain: [
|
|
2265
|
+
chain: [
|
|
2266
|
+
"_internal",
|
|
2267
|
+
"cli",
|
|
2268
|
+
"createSession"
|
|
2269
|
+
],
|
|
2242
2270
|
schemes: ["no_auth"]
|
|
2243
2271
|
},
|
|
2244
2272
|
{
|
|
2245
2273
|
method: "post",
|
|
2246
2274
|
path: "/api/v3.1/cli/realtime/auth",
|
|
2247
2275
|
chain: [
|
|
2276
|
+
"_internal",
|
|
2248
2277
|
"cli",
|
|
2249
2278
|
"realtime",
|
|
2250
2279
|
"auth"
|
|
@@ -2277,6 +2306,17 @@ const GENERATED_OPERATIONS = [
|
|
|
2277
2306
|
path: "/api/v3.1/connected_accounts/{nanoid}/revoke",
|
|
2278
2307
|
chain: ["connectedAccounts", "revoke"]
|
|
2279
2308
|
},
|
|
2309
|
+
{
|
|
2310
|
+
method: "post",
|
|
2311
|
+
path: "/api/v3.1/consumer/permissions/resolve",
|
|
2312
|
+
chain: [
|
|
2313
|
+
"_internal",
|
|
2314
|
+
"consumer",
|
|
2315
|
+
"permissions",
|
|
2316
|
+
"resolve"
|
|
2317
|
+
],
|
|
2318
|
+
schemes: ["UserApiKeyAuth", "ApiKeyAuth"]
|
|
2319
|
+
},
|
|
2280
2320
|
{
|
|
2281
2321
|
method: "post",
|
|
2282
2322
|
path: "/api/v3.1/custom/toolkits/sync",
|
|
@@ -2298,6 +2338,7 @@ const GENERATED_OPERATIONS = [
|
|
|
2298
2338
|
method: "post",
|
|
2299
2339
|
path: "/api/v3.1/internal/action_execution/logs",
|
|
2300
2340
|
chain: [
|
|
2341
|
+
"_internal",
|
|
2301
2342
|
"logs",
|
|
2302
2343
|
"tools",
|
|
2303
2344
|
"list"
|
|
@@ -2307,6 +2348,7 @@ const GENERATED_OPERATIONS = [
|
|
|
2307
2348
|
method: "post",
|
|
2308
2349
|
path: "/api/v3.1/internal/trigger/logs",
|
|
2309
2350
|
chain: [
|
|
2351
|
+
"_internal",
|
|
2310
2352
|
"logs",
|
|
2311
2353
|
"triggers",
|
|
2312
2354
|
"list"
|
|
@@ -2346,20 +2388,11 @@ const GENERATED_OPERATIONS = [
|
|
|
2346
2388
|
path: "/api/v3.1/mcp/servers/{serverId}/instances",
|
|
2347
2389
|
chain: ["mcp", "createInstance"]
|
|
2348
2390
|
},
|
|
2349
|
-
{
|
|
2350
|
-
method: "post",
|
|
2351
|
-
path: "/api/v3.1/org/clanker/create_claim",
|
|
2352
|
-
chain: [
|
|
2353
|
-
"org",
|
|
2354
|
-
"clanker",
|
|
2355
|
-
"createClaim"
|
|
2356
|
-
],
|
|
2357
|
-
schemes: ["OrgApiKeyAuth"]
|
|
2358
|
-
},
|
|
2359
2391
|
{
|
|
2360
2392
|
method: "post",
|
|
2361
2393
|
path: "/api/v3.1/org/consumer/project/resolve",
|
|
2362
2394
|
chain: [
|
|
2395
|
+
"_internal",
|
|
2363
2396
|
"org",
|
|
2364
2397
|
"consumer",
|
|
2365
2398
|
"project",
|
|
@@ -2453,8 +2486,7 @@ const GENERATED_OPERATIONS = [
|
|
|
2453
2486
|
"toolRouter",
|
|
2454
2487
|
"session",
|
|
2455
2488
|
"execute"
|
|
2456
|
-
]
|
|
2457
|
-
schemes: ["ApiKeyAuth", "workbench_access_key"]
|
|
2489
|
+
]
|
|
2458
2490
|
},
|
|
2459
2491
|
{
|
|
2460
2492
|
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 SessionProxyExecuteParams, Aa as APIUserAbortError, Ba as RequestOptions, Bi as SessionConfigHistoryParams, Ca as AutoCredentials, Da as APIConnectionTimeoutError, Ea as APIConnectionError, Fa as InternalServerError, Fi as ToolRouter, Gi as SessionExecuteMetaParams, Ha as Transport, Hi as SessionCreateParams, Ia as NotFoundError, J as EnvironmentMap, Ji as SessionExecuteResponse, K as ClientOptions, Ka as APIPromise, Ki as SessionExecuteMetaResponse, La as PermissionDeniedError, Li as Session, Ma as BadRequestError, Na as ComposioError, Oa as APIError, Pa as ConflictError, Qi as SessionPatchResponse, Ra as RateLimitError, Ri as SessionAttachParams, Ta as Scope, Ua as createFetchTransport, Ui as SessionCreateResponse, Va as FetchTransportDefaults, Vi as SessionConfigHistoryResponse, Wa as ClientIdentity, Wi as SessionDeleteResponse, Xi as SessionLinkResponse, Y as LogLevel, Yi as SessionLinkParams, Zi as SessionPatchParams, _a as Files, aa as SessionToolkitsResponse, da as FileCreateUploadURLParams, ea as SessionProxyExecuteResponse, fa as FileCreateUploadURLResponse, ga as FileListResponse, ha as FileListParams, ia as SessionToolkitsParams, ja as AuthenticationError, ka as APIErrorBody, la as FileCreateDownloadURLParams, ma as FileDeleteResponse, na as SessionSearchParams, oa as SessionToolsParams, pa as FileDeleteParams, q as Composio, qi as SessionExecuteParams, ra as SessionSearchResponse, sa as SessionToolsResponse, ta as SessionRetrieveResponse, ua as FileCreateDownloadURLResponse, wa as Credential, xa as AuthMode, ya as Auth, za as UnprocessableEntityError, zi as SessionAttachResponse } from "./_internal-Cw5Ug7qY.mjs";
|
|
2
|
+
import { n as VERSION, t as ENVIRONMENTS } from "./environments-C_HPMP7r.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,9 +1,9 @@
|
|
|
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-B3PjeXjl.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";
|
|
6
|
-
import { makeCli } from "./resources/cli/cli.mjs";
|
|
7
7
|
import { makeConnectedAccounts } from "./resources/connected-accounts.mjs";
|
|
8
8
|
import { makeCustom } from "./resources/custom.mjs";
|
|
9
9
|
import { makeFiles } from "./resources/files.mjs";
|
|
@@ -21,7 +21,7 @@ import { makeTriggerInstances } from "./resources/trigger-instances/trigger-inst
|
|
|
21
21
|
import { makeTriggersTypes } from "./resources/triggers-types.mjs";
|
|
22
22
|
import { makeWebhookEndpoints } from "./resources/webhook-endpoints.mjs";
|
|
23
23
|
import { makeWebhookSubscriptions } from "./resources/webhook-subscriptions.mjs";
|
|
24
|
-
import { n as GENERATED_DEPRECATED_INPUTS, r as APIPromise, t as ENVIRONMENTS } from "./environments-
|
|
24
|
+
import { n as GENERATED_DEPRECATED_INPUTS, r as APIPromise, t as ENVIRONMENTS } from "./environments-QSJiwtIM.mjs";
|
|
25
25
|
|
|
26
26
|
//#region src/compat/generated-resource-wiring.ts
|
|
27
27
|
const createClientResources = (client) => ({
|
|
@@ -35,7 +35,6 @@ const createClientResources = (client) => ({
|
|
|
35
35
|
triggersTypes: makeTriggersTypes(client),
|
|
36
36
|
triggerInstances: makeTriggerInstances(client),
|
|
37
37
|
mcp: makeMcp(client),
|
|
38
|
-
cli: makeCli(client),
|
|
39
38
|
logs: makeLogs(client),
|
|
40
39
|
project: makeProject(client),
|
|
41
40
|
webhookSubscriptions: makeWebhookSubscriptions(client),
|
|
@@ -43,6 +42,7 @@ const createClientResources = (client) => ({
|
|
|
43
42
|
org: makeOrg(client),
|
|
44
43
|
auth: makeAuth(client),
|
|
45
44
|
apiKeyRevocation: makeApiKeyRevocation(client),
|
|
45
|
+
_internal: makeInternal(client),
|
|
46
46
|
custom: makeCustom(client),
|
|
47
47
|
keyring: makeKeyring(client),
|
|
48
48
|
sessionConfigs: makeSessionConfigs(client)
|