@composio/client 2.0.0-rc.19 → 2.0.0-rc.20
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 +19 -6
- package/dist/{session-configs-BLy_O6bX.d.mts → api-key-revocation-DUHNHxSZ.d.mts} +177 -1205
- package/dist/effect.d.mts +3 -3
- package/dist/effect.mjs +4 -4
- package/dist/{generated-deprecated-inputs-Dy_lBver.mjs → environments-BGA2C5nZ.mjs} +18 -2
- package/dist/environments-xPjIJ-r7.d.mts +19 -0
- package/dist/{generated-operations-Dv7pAKDT.mjs → generated-operations-DhZryVXy.mjs} +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +46 -71
- package/dist/resources/api-key-revocation.d.mts +2 -2
- package/dist/resources/api-key-revocation.mjs +13 -2
- package/dist/resources/auth/auth.d.mts +2 -2
- package/dist/resources/auth/auth.mjs +7 -2
- package/dist/resources/auth/session.d.mts +2 -2
- package/dist/resources/auth/session.mjs +10 -2
- package/dist/resources/auth-configs.d.mts +2 -2
- package/dist/resources/auth-configs.mjs +45 -2
- package/dist/resources/auth.d.mts +2 -2
- package/dist/resources/auth.mjs +1 -5
- package/dist/resources/cli/cli.d.mts +2 -2
- package/dist/resources/cli/cli.mjs +32 -2
- package/dist/resources/cli/realtime.d.mts +2 -2
- package/dist/resources/cli/realtime.mjs +19 -2
- package/dist/resources/cli.d.mts +2 -2
- package/dist/resources/cli.mjs +1 -5
- package/dist/resources/connected-accounts.d.mts +2 -2
- package/dist/resources/connected-accounts.mjs +70 -2
- package/dist/resources/custom.d.mts +2 -2
- package/dist/resources/custom.mjs +29 -2
- package/dist/resources/files.d.mts +2 -2
- package/dist/resources/files.mjs +22 -2
- package/dist/resources/keyring.d.mts +2 -2
- package/dist/resources/keyring.mjs +10 -2
- package/dist/resources/link.d.mts +2 -2
- package/dist/resources/link.mjs +13 -2
- package/dist/resources/logs/logs.d.mts +2 -2
- package/dist/resources/logs/logs.mjs +23 -2
- package/dist/resources/logs/tools.d.mts +2 -2
- package/dist/resources/logs/tools.mjs +23 -2
- package/dist/resources/logs/triggers.d.mts +2 -2
- package/dist/resources/logs/triggers.mjs +19 -2
- package/dist/resources/logs.d.mts +2 -2
- package/dist/resources/logs.mjs +1 -6
- package/dist/resources/mcp/custom.d.mts +2 -2
- package/dist/resources/mcp/custom.mjs +13 -2
- package/dist/resources/mcp/generate.d.mts +2 -2
- package/dist/resources/mcp/generate.mjs +13 -2
- package/dist/resources/mcp/mcp.d.mts +2 -2
- package/dist/resources/mcp/mcp.mjs +67 -2
- package/dist/resources/mcp.d.mts +2 -2
- package/dist/resources/mcp.mjs +1 -6
- package/dist/resources/org/clanker.d.mts +2 -2
- package/dist/resources/org/clanker.mjs +13 -2
- package/dist/resources/org/consumer/consumer.d.mts +2 -2
- package/dist/resources/org/consumer/consumer.mjs +21 -2
- package/dist/resources/org/consumer/project.d.mts +2 -2
- package/dist/resources/org/consumer/project.mjs +14 -2
- package/dist/resources/org/consumer.d.mts +2 -2
- package/dist/resources/org/consumer.mjs +1 -5
- package/dist/resources/org/org.d.mts +2 -2
- package/dist/resources/org/org.mjs +25 -2
- package/dist/resources/org/owner/owner.d.mts +2 -2
- package/dist/resources/org/owner/owner.mjs +7 -2
- package/dist/resources/org/owner/project.d.mts +2 -2
- package/dist/resources/org/owner/project.mjs +37 -2
- package/dist/resources/org/owner.d.mts +2 -2
- package/dist/resources/org/owner.mjs +1 -5
- package/dist/resources/org/project.d.mts +2 -2
- package/dist/resources/org/project.mjs +13 -2
- package/dist/resources/org/usage.d.mts +2 -2
- package/dist/resources/org/usage.mjs +22 -2
- package/dist/resources/org.d.mts +2 -2
- package/dist/resources/org.mjs +1 -9
- package/dist/resources/project/project.d.mts +2 -2
- package/dist/resources/project/project.mjs +7 -2
- package/dist/resources/project/usage.d.mts +2 -2
- package/dist/resources/project/usage.mjs +22 -2
- package/dist/resources/project.d.mts +2 -3
- package/dist/resources/project.mjs +1 -5
- package/dist/resources/session-configs.d.mts +2 -2
- package/dist/resources/session-configs.mjs +8 -12
- package/dist/resources/tool-router/session/files.d.mts +2 -2
- package/dist/resources/tool-router/session/files.mjs +40 -2
- package/dist/resources/tool-router/session/session.d.mts +2 -2
- package/dist/resources/tool-router/session/session.mjs +95 -2
- package/dist/resources/tool-router/session.d.mts +2 -2
- package/dist/resources/tool-router/session.mjs +1 -5
- package/dist/resources/tool-router/tool-router.d.mts +2 -2
- package/dist/resources/tool-router/tool-router.mjs +7 -2
- package/dist/resources/tool-router.d.mts +2 -2
- package/dist/resources/tool-router.mjs +1 -5
- package/dist/resources/toolkits.d.mts +2 -2
- package/dist/resources/toolkits.mjs +51 -2
- package/dist/resources/tools.d.mts +2 -2
- package/dist/resources/tools.mjs +56 -2
- package/dist/resources/trigger-instances/manage.d.mts +2 -2
- package/dist/resources/trigger-instances/manage.mjs +19 -2
- package/dist/resources/trigger-instances/trigger-instances.d.mts +2 -2
- package/dist/resources/trigger-instances/trigger-instances.mjs +24 -2
- package/dist/resources/trigger-instances.d.mts +2 -2
- package/dist/resources/trigger-instances.mjs +1 -5
- package/dist/resources/triggers-types.d.mts +2 -2
- package/dist/resources/triggers-types.mjs +26 -2
- package/dist/resources/webhook-endpoints.d.mts +2 -2
- package/dist/resources/webhook-endpoints.mjs +40 -2
- package/dist/resources/webhook-subscriptions.d.mts +2 -2
- package/dist/resources/webhook-subscriptions.mjs +45 -2
- package/package.json +2 -31
- package/dist/api-key-revocation-DMCgun-A.mjs +0 -25
- package/dist/auth-D-U9Aq8C.mjs +0 -17
- package/dist/auth-configs-DAG5mMeH.mjs +0 -55
- package/dist/clanker-Yomp86hJ.mjs +0 -24
- package/dist/cli-zihiw3aI.mjs +0 -44
- package/dist/config-BLBbhLe1.mjs +0 -10
- package/dist/config-DnyMhILW.d.mts +0 -9
- package/dist/connected-accounts-Bd4AbWoH.mjs +0 -83
- package/dist/consumer-Bk0cyIii.mjs +0 -33
- package/dist/custom-Ce8G2c11.mjs +0 -34
- package/dist/custom-DWT3cCog.mjs +0 -24
- package/dist/files-DRp_J4zH.mjs +0 -49
- package/dist/files-ZxEVlE_y.mjs +0 -31
- package/dist/generate-Du9XUrlx.mjs +0 -24
- package/dist/keyring-CgOIS5x7.mjs +0 -17
- package/dist/link-CW1ts4pm.mjs +0 -23
- package/dist/logs-DFdH5DoT.mjs +0 -37
- package/dist/manage-CeB03gO8.mjs +0 -28
- package/dist/mcp-DNRMWWum.mjs +0 -91
- package/dist/migration-CBhnoN-Y.mjs +0 -10
- package/dist/migration-CKGKuRO3.d.mts +0 -9
- package/dist/org-HuYaKgVf.mjs +0 -45
- package/dist/owner-I9fXmIO_.mjs +0 -17
- package/dist/project-CxQ2H8UB.mjs +0 -22
- package/dist/project-DcV01umC.mjs +0 -25
- package/dist/project-Dwblmpw8.mjs +0 -47
- package/dist/project-FuP5k9R1.mjs +0 -25
- package/dist/realtime-F_sGuTd8.mjs +0 -28
- package/dist/resources/auth/index.d.mts +0 -2
- package/dist/resources/auth/index.mjs +0 -4
- package/dist/resources/cli/index.d.mts +0 -2
- package/dist/resources/cli/index.mjs +0 -4
- package/dist/resources/index.d.mts +0 -3
- package/dist/resources/index.mjs +0 -16
- package/dist/resources/logs/index.d.mts +0 -2
- package/dist/resources/logs/index.mjs +0 -5
- package/dist/resources/mcp/index.d.mts +0 -2
- package/dist/resources/mcp/index.mjs +0 -5
- package/dist/resources/migration.d.mts +0 -2
- package/dist/resources/migration.mjs +0 -3
- package/dist/resources/org/consumer/index.d.mts +0 -2
- package/dist/resources/org/consumer/index.mjs +0 -4
- package/dist/resources/org/index.d.mts +0 -2
- package/dist/resources/org/index.mjs +0 -8
- package/dist/resources/org/owner/index.d.mts +0 -2
- package/dist/resources/org/owner/index.mjs +0 -4
- package/dist/resources/project/config.d.mts +0 -2
- package/dist/resources/project/config.mjs +0 -3
- package/dist/resources/project/index.d.mts +0 -3
- package/dist/resources/project/index.mjs +0 -4
- package/dist/resources/tool-router/index.d.mts +0 -2
- package/dist/resources/tool-router/index.mjs +0 -4
- package/dist/resources/tool-router/session/index.d.mts +0 -2
- package/dist/resources/tool-router/session/index.mjs +0 -4
- package/dist/resources/trigger-instances/index.d.mts +0 -2
- package/dist/resources/trigger-instances/index.mjs +0 -4
- package/dist/session-B-ifOjVv.mjs +0 -21
- package/dist/session-CpwJh7Hn.mjs +0 -110
- package/dist/tool-router-jNsaldKV.mjs +0 -14
- package/dist/toolkits-DK4My9FW.mjs +0 -62
- package/dist/tools-DNkimllW.mjs +0 -33
- package/dist/tools-Gun_2We6.mjs +0 -69
- package/dist/trigger-instances-vvKswQSW.mjs +0 -35
- package/dist/triggers-CfrGxKIo.mjs +0 -28
- package/dist/triggers-types-DYW2Mr8z.mjs +0 -34
- package/dist/usage-YIBYNpVF.mjs +0 -31
- package/dist/usage-vt9HmnNf.mjs +0 -31
- package/dist/version-DB98yI2B.d.mts +0 -4
- package/dist/webhook-endpoints-HqLteVW6.mjs +0 -50
- package/dist/webhook-subscriptions-CXhNXIOM.mjs +0 -55
package/dist/effect.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import {
|
|
1
|
+
import { $ as ProjectResolveParams, $n as ManageDeleteResponse, $r as ConnectedAccountRetrieveResponse, $t as ToolRetrieveResponse$1, Ai as SessionAttachResponse, An as McpListParams, Ar as ToolkitRetrieveMultiResponse, At as WebhookSubscriptionListResponse, B as UsageRetrieveResponse$1, Bi as SessionLinkParams, Bn as GenerateURLResponse, Bt as UsageRetrieveParams, C as CustomUpsertResponse, Ci as ToolRetrieveResponse, Cn as McpCreateParams, Cr as ToolkitListParams, Dn as McpDeleteResponse, Dr as ToolkitRetrieveCategoriesResponse, Dt as WebhookSubscriptionDeleteResponse, En as McpDeleteInstanceResponse, Er as ToolkitRecommendScopesResponse, Et as WebhookSubscriptionCreateResponse, F as ClankerCreateClaimParams, Fa as ClientIdentity, Fi as SessionDeleteResponse, Fn as McpUpdateParams, G as ProjectListParams$1, Gi as SessionProxyExecuteResponse, Gr as ConnectedAccountDeleteParams, Gt as LogCreateToolExecutionParams, H as UsageRetrieveSummaryResponse$1, Hi as SessionPatchParams, Hr as ConnectedAccountCompleteAuthResponse, Ht as UsageRetrieveSummaryParams, I as ClankerCreateClaimResponse, Ia as HeadersLike, Ii as SessionExecuteMetaParams, In as McpUpdateResponse, Ji as SessionSearchResponse, Jn as TriggerInstanceUpsertParams, Jr as ConnectedAccountListResponse, K as ProjectListResponse$1, Ki as SessionRetrieveResponse, Kn as TriggerInstanceListActiveParams, Kr as ConnectedAccountDeleteResponse, Kt as LogCreateToolExecutionResponse, Li as SessionExecuteMetaResponse, M as OrgListResponse, Mi as SessionConfigHistoryResponse, Mn as McpRetrieveAppParams, Mr as ToolkitRetrieveResponse, Mt as WebhookSubscriptionRotateSecretResponse, Ni as SessionCreateParams, Nn as McpRetrieveAppResponse, Nr as ToolkitRetrieveScopesGrantContextParams, Nt as WebhookSubscriptionUpdateParams, O as SessionRetrieveInfoResponse, On as McpListInstancesParams, Or as ToolkitRetrieveChangelogResponse, Ot as WebhookSubscriptionListEventTypesResponse, Pi as SessionCreateResponse, Pn as McpRetrieveResponse, Pr as ToolkitRetrieveScopesGrantContextResponse, Pt as WebhookSubscriptionUpdateResponse, Qi as SessionToolsResponse, Qr as ConnectedAccountRefreshResponse, Qt as ToolListResponse$1, Ri as SessionExecuteParams, Rr as LinkCreateParams, S as CustomUpsertParams, Si as ToolRetrieveRequiredScopesResponse, Sn as McpCreateInstanceResponse, St as WebhookEndpointUpdateResponse, Tn as McpDeleteInstanceParams, Tr as ToolkitRecommendScopesParams, Tt as WebhookSubscriptionCreateParams, Ui as SessionPatchResponse, Un as CustomCreateParams, Ur as ConnectedAccountCreateParams, Ut as UsageRetrieveSummaryResponse, V as UsageRetrieveSummaryParams$1, Vi as SessionLinkResponse, Vr as ConnectedAccountCompleteAuthParams, Vt as UsageRetrieveResponse, Wi as SessionProxyExecuteParams, Wn as CustomCreateResponse, Wr as ConnectedAccountCreateResponse, X as ConsumerListConnectedToolkitsResponse, Xi as SessionToolkitsResponse, Xr as ConnectedAccountPatchResponse, Xt as ToolListFieldsResponse, Y as ConsumerListConnectedToolkitsParams, Yi as SessionToolkitsParams, Yn as TriggerInstanceUpsertResponse, Yr as ConnectedAccountPatchParams, Zi as SessionToolsParams, Zr as ConnectedAccountRefreshParams, Zt as ToolListParams$1, _i as ToolProxyParams, _n as RealtimeAuthResponse, _r as AuthConfigUpdateParams, _t as WebhookEndpointListResponse, aa as FileDeleteResponse, ai as FileCreatePresignedURLParams, ar as TriggersTypeRetrieveEnumResponse, at as ProjectCreateParams, b as CustomSyncParams, ba as APIErrorBody, bi as ToolRetrieveParams, br as AuthConfigUpdateStatusResponse, bt as WebhookEndpointRetrieveResponse, ci as FileListResponse$1, cn as CliCreateCodactFailureParams, ct as ProjectDeleteResponse, d as SessionConfigsListResponse, da as AuthConstructors, di as ToolExecuteParams, dn as CliCreateSessionResponse, dr as AuthConfigCreateResponse, dt as ProjectRegenerateAPIKeyResponse, ea as FileCreateDownloadURLParams, ei as ConnectedAccountRevokeResponse, er as ManageUpdateParams, et as ProjectResolveResponse, f as SessionConfigsRetrieveResponse, fi as ToolExecuteResponse, fn as CliGetSessionParams, fr as AuthConfigDeleteParams, ft as ProjectRetrieveResponse, ga as Scope, gi as ToolListResponse, gn as RealtimeAuthParams, gr as AuthConfigRetrieveResponse, gt as WebhookEndpointListParams, h as KeyringListTransferKeysResponse, hi as ToolListParams, hr as AuthConfigListResponse, ht as WebhookEndpointCreateResponse, ia as FileDeleteParams, in as TriggerRetrieveResponse, ir as TriggersTypeListResponse, j as OrgListParams, ji as SessionConfigHistoryParams, jn as McpListResponse, jr as ToolkitRetrieveParams, jt as WebhookSubscriptionRetrieveResponse, ki as SessionAttachParams, kn as McpListInstancesResponse, kr as ToolkitRetrieveMultiParams, kt as WebhookSubscriptionListParams, ln as CliCreateCodactFailureResponse, lt as ProjectListParams, ma as AutoCredentials, mi as ToolGetInputResponse, mr as AuthConfigListParams, mt as WebhookEndpointCreateParams, n as ApiKeyRevocationCreateParams, na as FileCreateUploadURLParams, ni as ConnectedAccountUpdateStatusResponse, nn as TriggerListParams, oa as FileListParams, oi as FileCreatePresignedURLResponse, or as TriggersTypeRetrieveParams, ot as ProjectCreateResponse, pa as AuthOf, pi as ToolGetInputParams, pn as CliGetSessionResponse, pr as AuthConfigDeleteResponse, qi as SessionSearchParams, qn as TriggerInstanceListActiveResponse, qr as ConnectedAccountListParams, qt as LogRetrieveToolExecutionResponse, r as ApiKeyRevocationCreateResponse, ra as FileCreateUploadURLResponse, rn as TriggerListResponse, rr as TriggersTypeListParams, sa as FileListResponse, si as FileListParams$1, sr as TriggersTypeRetrieveResponse, st as ProjectDeleteParams, ta as FileCreateDownloadURLResponse, ti as ConnectedAccountUpdateStatusParams, tr as ManageUpdateResponse, u as SessionConfigsListParams, un as CliCreateSessionParams, ur as AuthConfigCreateParams, ut as ProjectListResponse, v as CustomDeleteToolkitParams, vi as ToolProxyResponse, vn as RealtimeCredentialsResponse, vr as AuthConfigUpdateResponse, vt as WebhookEndpointReplaceParams, wn as McpCreateResponse, wr as ToolkitListResponse, x as CustomSyncResponse, xi as ToolRetrieveRequiredScopesParams, xn as McpCreateInstanceParams, xt as WebhookEndpointUpdateParams, y as CustomDeleteToolkitResponse, yi as ToolRetrieveEnumResponse, yr as AuthConfigUpdateStatusParams, yt as WebhookEndpointReplaceResponse, z as UsageRetrieveParams$1, zi as SessionExecuteResponse, zn as GenerateURLParams, zr as LinkCreateResponse } from "./api-key-revocation-DUHNHxSZ.mjs";
|
|
2
|
+
import { n as VERSION, t as ENVIRONMENTS } from "./environments-xPjIJ-r7.mjs";
|
|
3
3
|
import { Context, Effect, Layer, Logger, Predicate, Redacted, Stream } from "effect";
|
|
4
4
|
import * as HttpClient from "effect/http/HttpClient";
|
|
5
5
|
import * as Schema from "effect/Schema";
|
|
@@ -753,4 +753,4 @@ declare const layerConfig: (overrides?: Partial<ClientSettings> & DecodingOption
|
|
|
753
753
|
/** Whether a log record is one of this client's deprecation notices, for a `Logger` that drops or routes them. */
|
|
754
754
|
declare const isDeprecationNotice: Predicate.Predicate<Logger.Options<unknown>>;
|
|
755
755
|
//#endregion
|
|
756
|
-
export { APIConnectionError, APIConnectionTimeoutError, APIError, type APIErrorBody, type APIErrorFields, type APIStatusError, Auth, AuthenticationError, type AutoCredentials, BadRequestError, type ClientIdentity, ComposioClient, type ComposioClientOptions, type ComposioClientShape, type ComposioError, ConfigurationError, ConflictError, type Credential, DecodeError, type DecodeIssue, type HeadersLike, InternalServerError, NotFoundError, PermissionDeniedError, RateLimitError, type RawBodyRequestOptions, type RawRequestOptions, type RequestOptions, type SchemaLoaders, type Scope, type Tracing, UnprocessableEntityError, VERSION, isAPIError, isComposioError, isDeprecationNotice, layer, layerConfig, make };
|
|
756
|
+
export { APIConnectionError, APIConnectionTimeoutError, APIError, type APIErrorBody, type APIErrorFields, type APIStatusError, Auth, AuthenticationError, type AutoCredentials, BadRequestError, type ClientIdentity, ComposioClient, type ComposioClientOptions, type ComposioClientShape, type ComposioError, ConfigurationError, ConflictError, type Credential, DecodeError, type DecodeIssue, ENVIRONMENTS, type HeadersLike, InternalServerError, NotFoundError, PermissionDeniedError, RateLimitError, type RawBodyRequestOptions, type RawRequestOptions, type RequestOptions, type SchemaLoaders, type Scope, type Tracing, UnprocessableEntityError, VERSION, isAPIError, isComposioError, isDeprecationNotice, layer, layerConfig, make };
|
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 {
|
|
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-DhZryVXy.mjs";
|
|
3
|
+
import { i as classifySuccessBody, n as GENERATED_DEPRECATED_INPUTS, t as ENVIRONMENTS } from "./environments-BGA2C5nZ.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";
|
|
@@ -1505,7 +1505,7 @@ const createClientResources = (kernel) => ({
|
|
|
1505
1505
|
*/
|
|
1506
1506
|
const Auth = authConstructors();
|
|
1507
1507
|
var ComposioClient = class extends Context.Service()("@composio/client/effect/ComposioClient") {};
|
|
1508
|
-
const DEFAULT_BASE_URL =
|
|
1508
|
+
const DEFAULT_BASE_URL = ENVIRONMENTS.production;
|
|
1509
1509
|
const DEFAULT_MAX_RETRIES = 2;
|
|
1510
1510
|
const DEFAULT_TIMEOUT = 6e4;
|
|
1511
1511
|
const resolveAccess = (options, baseURL) => {
|
|
@@ -1623,4 +1623,4 @@ const layerConfig = (overrides = {}) => Layer.effect(ComposioClient, Effect.gen(
|
|
|
1623
1623
|
}));
|
|
1624
1624
|
|
|
1625
1625
|
//#endregion
|
|
1626
|
-
export { APIConnectionError, APIConnectionTimeoutError, APIError, Auth, AuthenticationError, BadRequestError, ComposioClient, ConfigurationError, ConflictError, DecodeError, InternalServerError, NotFoundError, PermissionDeniedError, RateLimitError, UnprocessableEntityError, VERSION, isAPIError, isComposioError, isDeprecationNotice, layer, layerConfig, make };
|
|
1626
|
+
export { APIConnectionError, APIConnectionTimeoutError, APIError, Auth, AuthenticationError, BadRequestError, ComposioClient, ConfigurationError, ConflictError, DecodeError, ENVIRONMENTS, InternalServerError, NotFoundError, PermissionDeniedError, RateLimitError, UnprocessableEntityError, VERSION, isAPIError, isComposioError, isDeprecationNotice, layer, layerConfig, make };
|
|
@@ -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-DhZryVXy.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/compat/api-promise.ts
|
|
5
5
|
/**
|
|
@@ -203,4 +203,20 @@ const GENERATED_DEPRECATED_INPUTS = /* @__PURE__ */ new Map([
|
|
|
203
203
|
]);
|
|
204
204
|
|
|
205
205
|
//#endregion
|
|
206
|
-
|
|
206
|
+
//#region src/compat/environments.ts
|
|
207
|
+
/**
|
|
208
|
+
* The built-in API origins, keyed as the `environment` option the 0.1.x
|
|
209
|
+
* client took. The migration target for `environment: 'staging'` is
|
|
210
|
+
* `baseURL: ENVIRONMENTS.staging`.
|
|
211
|
+
*
|
|
212
|
+
* A module of its own so `./effect` can import it without loading the Promise
|
|
213
|
+
* client and its resource tree.
|
|
214
|
+
*/
|
|
215
|
+
const ENVIRONMENTS = Object.freeze({
|
|
216
|
+
production: "https://backend.composio.dev",
|
|
217
|
+
staging: "https://staging-backend.composio.dev",
|
|
218
|
+
local: "http://localhost:9900"
|
|
219
|
+
});
|
|
220
|
+
|
|
221
|
+
//#endregion
|
|
222
|
+
export { classifySuccessBody as i, GENERATED_DEPRECATED_INPUTS as n, APIPromise as r, ENVIRONMENTS as t };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//#region src/version.d.ts
|
|
2
|
+
declare const VERSION = "2.0.0-rc.20";
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region src/compat/environments.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* The built-in API origins, keyed as the `environment` option the 0.1.x
|
|
7
|
+
* client took. The migration target for `environment: 'staging'` is
|
|
8
|
+
* `baseURL: ENVIRONMENTS.staging`.
|
|
9
|
+
*
|
|
10
|
+
* A module of its own so `./effect` can import it without loading the Promise
|
|
11
|
+
* client and its resource tree.
|
|
12
|
+
*/
|
|
13
|
+
declare const ENVIRONMENTS: Readonly<{
|
|
14
|
+
readonly production: "https://backend.composio.dev";
|
|
15
|
+
readonly staging: "https://staging-backend.composio.dev";
|
|
16
|
+
readonly local: "http://localhost:9900";
|
|
17
|
+
}>;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { VERSION as n, ENVIRONMENTS as t };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
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, type EnvironmentMap, type FetchTransportDefaults, type FileCreateDownloadURLParams, type FileCreateDownloadURLResponse, type FileCreateUploadURLParams, type FileCreateUploadURLResponse, type FileDeleteParams, type FileDeleteResponse, type FileListParams, type FileListResponse, Files, InternalServerError, type LogLevel, NotFoundError, PermissionDeniedError, RateLimitError, type RequestOptions, type Scope, 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, ToolRouter, type Transport, UnprocessableEntityError, VERSION, createFetchTransport };
|
|
1
|
+
import { Aa as UnprocessableEntityError, Ai as SessionAttachResponse, Bi as SessionLinkParams, Ca as BadRequestError, Da as NotFoundError, Ea as InternalServerError, Ei as ToolRouter, Fa as ClientIdentity, Fi as SessionDeleteResponse, Gi as SessionProxyExecuteResponse, Hi as SessionPatchParams, Ii as SessionExecuteMetaParams, Ji as SessionSearchResponse, Ki as SessionRetrieveResponse, La as APIPromise, Li as SessionExecuteMetaResponse, Ma as FetchTransportDefaults, Mi as SessionConfigHistoryResponse, Na as Transport, Ni as SessionCreateParams, Oa as PermissionDeniedError, Oi as Session, Pa as createFetchTransport, Pi as SessionCreateResponse, Qi as SessionToolsResponse, Ri as SessionExecuteParams, Sa as AuthenticationError, Ta as ConflictError, Ui as SessionPatchResponse, Vi as SessionLinkResponse, Wi as SessionProxyExecuteParams, Xi as SessionToolkitsResponse, Yi as SessionToolkitsParams, Zi as SessionToolsParams, _a as APIConnectionError, a as ClientOptions, aa as FileDeleteResponse, ba as APIErrorBody, c as LogLevel, ca as Files, ea as FileCreateDownloadURLParams, fa as AuthMode, ga as Scope, ha as Credential, ia as FileDeleteParams, ja as RequestOptions, ji as SessionConfigHistoryParams, ka as RateLimitError, ki as SessionAttachParams, ma as AutoCredentials, na as FileCreateUploadURLParams, o as Composio, oa as FileListParams, qi as SessionSearchParams, ra as FileCreateUploadURLResponse, s as EnvironmentMap, sa as FileListResponse, ta as FileCreateDownloadURLResponse, ua as Auth, va as APIConnectionTimeoutError, wa as ComposioError, xa as APIUserAbortError, ya as APIError, zi as SessionExecuteResponse } from "./api-key-revocation-DUHNHxSZ.mjs";
|
|
2
|
+
import { n as VERSION, t as ENVIRONMENTS } from "./environments-xPjIJ-r7.mjs";
|
|
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,60 +1,56 @@
|
|
|
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-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import { t as
|
|
25
|
-
import { t as WebhookEndpoints } from "./webhook-endpoints-HqLteVW6.mjs";
|
|
26
|
-
import { t as WebhookSubscriptions } from "./webhook-subscriptions-CXhNXIOM.mjs";
|
|
27
|
-
import { n as APIPromise, t as GENERATED_DEPRECATED_INPUTS } from "./generated-deprecated-inputs-Dy_lBver.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-DhZryVXy.mjs";
|
|
3
|
+
import { makeApiKeyRevocation } from "./resources/api-key-revocation.mjs";
|
|
4
|
+
import { makeAuthConfigs } from "./resources/auth-configs.mjs";
|
|
5
|
+
import { makeAuth } from "./resources/auth/auth.mjs";
|
|
6
|
+
import { makeCli } from "./resources/cli/cli.mjs";
|
|
7
|
+
import { makeConnectedAccounts } from "./resources/connected-accounts.mjs";
|
|
8
|
+
import { makeCustom } from "./resources/custom.mjs";
|
|
9
|
+
import { makeFiles } from "./resources/files.mjs";
|
|
10
|
+
import { makeKeyring } from "./resources/keyring.mjs";
|
|
11
|
+
import { makeLink } from "./resources/link.mjs";
|
|
12
|
+
import { makeLogs } from "./resources/logs/logs.mjs";
|
|
13
|
+
import { makeMcp } from "./resources/mcp/mcp.mjs";
|
|
14
|
+
import { makeOrg } from "./resources/org/org.mjs";
|
|
15
|
+
import { makeProject } from "./resources/project/project.mjs";
|
|
16
|
+
import { makeSessionConfigs } from "./resources/session-configs.mjs";
|
|
17
|
+
import { makeToolRouter } from "./resources/tool-router/tool-router.mjs";
|
|
18
|
+
import { makeToolkits } from "./resources/toolkits.mjs";
|
|
19
|
+
import { makeTools } from "./resources/tools.mjs";
|
|
20
|
+
import { makeTriggerInstances } from "./resources/trigger-instances/trigger-instances.mjs";
|
|
21
|
+
import { makeTriggersTypes } from "./resources/triggers-types.mjs";
|
|
22
|
+
import { makeWebhookEndpoints } from "./resources/webhook-endpoints.mjs";
|
|
23
|
+
import { makeWebhookSubscriptions } from "./resources/webhook-subscriptions.mjs";
|
|
24
|
+
import { n as GENERATED_DEPRECATED_INPUTS, r as APIPromise, t as ENVIRONMENTS } from "./environments-BGA2C5nZ.mjs";
|
|
28
25
|
|
|
29
26
|
//#region src/compat/generated-resource-wiring.ts
|
|
30
27
|
const createClientResources = (client) => ({
|
|
31
|
-
toolRouter:
|
|
32
|
-
tools:
|
|
33
|
-
files:
|
|
34
|
-
connectedAccounts:
|
|
35
|
-
link:
|
|
36
|
-
toolkits:
|
|
37
|
-
authConfigs:
|
|
38
|
-
triggersTypes:
|
|
39
|
-
triggerInstances:
|
|
40
|
-
mcp:
|
|
41
|
-
cli:
|
|
42
|
-
logs:
|
|
43
|
-
project:
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
sessionConfigs: new SessionConfigs(client)
|
|
28
|
+
toolRouter: makeToolRouter(client),
|
|
29
|
+
tools: makeTools(client),
|
|
30
|
+
files: makeFiles(client),
|
|
31
|
+
connectedAccounts: makeConnectedAccounts(client),
|
|
32
|
+
link: makeLink(client),
|
|
33
|
+
toolkits: makeToolkits(client),
|
|
34
|
+
authConfigs: makeAuthConfigs(client),
|
|
35
|
+
triggersTypes: makeTriggersTypes(client),
|
|
36
|
+
triggerInstances: makeTriggerInstances(client),
|
|
37
|
+
mcp: makeMcp(client),
|
|
38
|
+
cli: makeCli(client),
|
|
39
|
+
logs: makeLogs(client),
|
|
40
|
+
project: makeProject(client),
|
|
41
|
+
webhookSubscriptions: makeWebhookSubscriptions(client),
|
|
42
|
+
webhookEndpoints: makeWebhookEndpoints(client),
|
|
43
|
+
org: makeOrg(client),
|
|
44
|
+
auth: makeAuth(client),
|
|
45
|
+
apiKeyRevocation: makeApiKeyRevocation(client),
|
|
46
|
+
custom: makeCustom(client),
|
|
47
|
+
keyring: makeKeyring(client),
|
|
48
|
+
sessionConfigs: makeSessionConfigs(client)
|
|
53
49
|
});
|
|
54
50
|
|
|
55
51
|
//#endregion
|
|
56
52
|
//#region src/compat/client.ts
|
|
57
|
-
const DEFAULT_BASE_URL =
|
|
53
|
+
const DEFAULT_BASE_URL = ENVIRONMENTS.production;
|
|
58
54
|
/** A setting as `fromEnv` reads one: trimmed, and absent when empty. */
|
|
59
55
|
const setting = (environment, name) => environment[name]?.trim() || void 0;
|
|
60
56
|
const parseCustomHeaders = (raw) => {
|
|
@@ -281,27 +277,6 @@ var Composio = class Composio {
|
|
|
281
277
|
static PermissionDeniedError = PermissionDeniedError;
|
|
282
278
|
static UnprocessableEntityError = UnprocessableEntityError;
|
|
283
279
|
};
|
|
284
|
-
Composio.ToolRouter = ToolRouter;
|
|
285
|
-
Composio.Tools = Tools;
|
|
286
|
-
Composio.Files = Files$1;
|
|
287
|
-
Composio.ConnectedAccounts = ConnectedAccounts;
|
|
288
|
-
Composio.Link = Link;
|
|
289
|
-
Composio.Toolkits = Toolkits;
|
|
290
|
-
Composio.AuthConfigs = AuthConfigs;
|
|
291
|
-
Composio.TriggersTypes = TriggersTypes;
|
|
292
|
-
Composio.TriggerInstances = TriggerInstances;
|
|
293
|
-
Composio.Mcp = Mcp;
|
|
294
|
-
Composio.Cli = Cli;
|
|
295
|
-
Composio.Logs = Logs;
|
|
296
|
-
Composio.Project = Project;
|
|
297
|
-
Composio.Migration = Migration;
|
|
298
|
-
Composio.WebhookSubscriptions = WebhookSubscriptions;
|
|
299
|
-
Composio.WebhookEndpoints = WebhookEndpoints;
|
|
300
|
-
Composio.Org = Org;
|
|
301
|
-
Composio.Auth = Auth$1;
|
|
302
|
-
Composio.ApiKeyRevocation = ApiKeyRevocation;
|
|
303
|
-
Composio.Custom = Custom;
|
|
304
|
-
Composio.Keyring = Keyring;
|
|
305
280
|
|
|
306
281
|
//#endregion
|
|
307
|
-
export { APIConnectionError, APIConnectionTimeoutError, APIError, APIPromise, APIUserAbortError, Auth, AuthenticationError, BadRequestError, Composio, Composio as default, ComposioError, ConflictError,
|
|
282
|
+
export { APIConnectionError, APIConnectionTimeoutError, APIError, APIPromise, APIUserAbortError, Auth, AuthenticationError, BadRequestError, Composio, Composio as default, ComposioError, ConflictError, ENVIRONMENTS, InternalServerError, NotFoundError, PermissionDeniedError, RateLimitError, UnprocessableEntityError, VERSION, createFetchTransport };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { ApiKeyRevocation,
|
|
1
|
+
import { i as makeApiKeyRevocation, n as ApiKeyRevocationCreateParams, r as ApiKeyRevocationCreateResponse, t as ApiKeyRevocation } from "../api-key-revocation-DUHNHxSZ.mjs";
|
|
2
|
+
export { ApiKeyRevocation, ApiKeyRevocationCreateParams, ApiKeyRevocationCreateResponse, makeApiKeyRevocation };
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as generatedOperation, y as withOperation } from "../generated-operations-DhZryVXy.mjs";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
//#region src/compat/resources/api-key-revocation.ts
|
|
4
|
+
const OP_CREATE = generatedOperation("apiKeyRevocation.create");
|
|
5
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
6
|
+
const makeApiKeyRevocation = (client) => ({ create(body, options) {
|
|
7
|
+
return client.post("/api/v3.1/api_key_revocation", withOperation(OP_CREATE, {
|
|
8
|
+
body,
|
|
9
|
+
...options
|
|
10
|
+
}));
|
|
11
|
+
} });
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
export { makeApiKeyRevocation };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { Auth };
|
|
1
|
+
import { E as makeAuth, T as Auth } from "../../api-key-revocation-DUHNHxSZ.mjs";
|
|
2
|
+
export { Auth, makeAuth };
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { makeSession } from "./session.mjs";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
//#region src/compat/resources/auth/auth.ts
|
|
4
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
5
|
+
const makeAuth = (client) => ({ session: makeSession(client) });
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
export { makeAuth };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { Session,
|
|
1
|
+
import { D as Session, O as SessionRetrieveInfoResponse, k as makeSession } from "../../api-key-revocation-DUHNHxSZ.mjs";
|
|
2
|
+
export { Session, SessionRetrieveInfoResponse, makeSession };
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as generatedOperation, y as withOperation } from "../../generated-operations-DhZryVXy.mjs";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
//#region src/compat/resources/auth/session.ts
|
|
4
|
+
const OP_RETRIEVE_INFO = generatedOperation("auth.session.retrieveInfo");
|
|
5
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
6
|
+
const makeSession = (client) => ({ retrieveInfo(options) {
|
|
7
|
+
return client.get("/api/v3.1/auth/session/info", withOperation(OP_RETRIEVE_INFO, { ...options }));
|
|
8
|
+
} });
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
export { makeSession };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { Sr as makeAuthConfigs, _r as AuthConfigUpdateParams, br as AuthConfigUpdateStatusResponse, dr as AuthConfigCreateResponse, fr as AuthConfigDeleteParams, gr as AuthConfigRetrieveResponse, hr as AuthConfigListResponse, mr as AuthConfigListParams, pr as AuthConfigDeleteResponse, ur as AuthConfigCreateParams, vr as AuthConfigUpdateResponse, xr as AuthConfigs, yr as AuthConfigUpdateStatusParams } from "../api-key-revocation-DUHNHxSZ.mjs";
|
|
2
|
+
export { AuthConfigCreateParams, AuthConfigCreateResponse, AuthConfigDeleteParams, AuthConfigDeleteResponse, AuthConfigListParams, AuthConfigListResponse, AuthConfigRetrieveResponse, AuthConfigUpdateParams, AuthConfigUpdateResponse, AuthConfigUpdateStatusParams, AuthConfigUpdateStatusResponse, AuthConfigs, makeAuthConfigs };
|
|
@@ -1,3 +1,46 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as path, n as generatedOperation, y as withOperation } from "../generated-operations-DhZryVXy.mjs";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
//#region src/compat/resources/auth-configs.ts
|
|
4
|
+
const OP_CREATE = generatedOperation("authConfigs.create");
|
|
5
|
+
const OP_RETRIEVE = generatedOperation("authConfigs.retrieve");
|
|
6
|
+
const OP_UPDATE = generatedOperation("authConfigs.update");
|
|
7
|
+
const OP_LIST = generatedOperation("authConfigs.list");
|
|
8
|
+
const OP_DELETE = generatedOperation("authConfigs.delete");
|
|
9
|
+
const OP_UPDATE_STATUS = generatedOperation("authConfigs.updateStatus");
|
|
10
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
11
|
+
const makeAuthConfigs = (client) => ({
|
|
12
|
+
create(body, options) {
|
|
13
|
+
return client.post("/api/v3.1/auth_configs", withOperation(OP_CREATE, {
|
|
14
|
+
body,
|
|
15
|
+
...options
|
|
16
|
+
}));
|
|
17
|
+
},
|
|
18
|
+
retrieve(nanoid, options) {
|
|
19
|
+
return client.get(path`/api/v3.1/auth_configs/${nanoid}`, withOperation(OP_RETRIEVE, { ...options }));
|
|
20
|
+
},
|
|
21
|
+
update(nanoid, body, options) {
|
|
22
|
+
return client.patch(path`/api/v3.1/auth_configs/${nanoid}`, withOperation(OP_UPDATE, {
|
|
23
|
+
body,
|
|
24
|
+
...options
|
|
25
|
+
}));
|
|
26
|
+
},
|
|
27
|
+
list(query = {}, options) {
|
|
28
|
+
return client.get("/api/v3.1/auth_configs", withOperation(OP_LIST, {
|
|
29
|
+
query,
|
|
30
|
+
...options
|
|
31
|
+
}));
|
|
32
|
+
},
|
|
33
|
+
delete(nanoid, query = {}, options) {
|
|
34
|
+
return client.delete(path`/api/v3.1/auth_configs/${nanoid}`, withOperation(OP_DELETE, {
|
|
35
|
+
query,
|
|
36
|
+
...options
|
|
37
|
+
}));
|
|
38
|
+
},
|
|
39
|
+
updateStatus(status, params, options) {
|
|
40
|
+
const { nanoid } = params;
|
|
41
|
+
return client.patch(path`/api/v3.1/auth_configs/${nanoid}/${status}`, withOperation(OP_UPDATE_STATUS, { ...options }));
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
//#endregion
|
|
46
|
+
export { makeAuthConfigs };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { Auth, Session,
|
|
1
|
+
import { D as Session, O as SessionRetrieveInfoResponse, T as Auth } from "../api-key-revocation-DUHNHxSZ.mjs";
|
|
2
|
+
export type { Auth, Session, SessionRetrieveInfoResponse };
|
package/dist/resources/auth.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { Cli, CliCreateCodactFailureParams, CliCreateCodactFailureResponse, CliCreateSessionParams, CliCreateSessionResponse, CliGetSessionParams, CliGetSessionResponse };
|
|
1
|
+
import { cn as CliCreateCodactFailureParams, dn as CliCreateSessionResponse, fn as CliGetSessionParams, ln as CliCreateCodactFailureResponse, mn as makeCli, pn as CliGetSessionResponse, sn as Cli, un as CliCreateSessionParams } from "../../api-key-revocation-DUHNHxSZ.mjs";
|
|
2
|
+
export { Cli, CliCreateCodactFailureParams, CliCreateCodactFailureResponse, CliCreateSessionParams, CliCreateSessionResponse, CliGetSessionParams, CliGetSessionResponse, makeCli };
|
|
@@ -1,3 +1,33 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as generatedOperation, y as withOperation } from "../../generated-operations-DhZryVXy.mjs";
|
|
2
|
+
import { makeRealtime } from "./realtime.mjs";
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
//#region src/compat/resources/cli/cli.ts
|
|
5
|
+
const OP_CREATE_CODACT_FAILURE = generatedOperation("cli.createCodactFailure");
|
|
6
|
+
const OP_CREATE_SESSION = generatedOperation("cli.createSession");
|
|
7
|
+
const OP_GET_SESSION = generatedOperation("cli.getSession");
|
|
8
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
9
|
+
const makeCli = (client) => ({
|
|
10
|
+
realtime: makeRealtime(client),
|
|
11
|
+
createCodactFailure(params, options) {
|
|
12
|
+
const { "x-user-api-key": xUserApiKey, ...body } = params;
|
|
13
|
+
return client.post("/api/v3.1/cli/codact_failures", withOperation(OP_CREATE_CODACT_FAILURE, {
|
|
14
|
+
body,
|
|
15
|
+
...options
|
|
16
|
+
}, { "x-user-api-key": xUserApiKey }));
|
|
17
|
+
},
|
|
18
|
+
createSession(body = {}, options) {
|
|
19
|
+
return client.post("/api/v3.1/cli/create-session", withOperation(OP_CREATE_SESSION, {
|
|
20
|
+
body,
|
|
21
|
+
...options
|
|
22
|
+
}));
|
|
23
|
+
},
|
|
24
|
+
getSession(query, options) {
|
|
25
|
+
return client.get("/api/v3.1/cli/get-session", withOperation(OP_GET_SESSION, {
|
|
26
|
+
query,
|
|
27
|
+
...options
|
|
28
|
+
}));
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
//#endregion
|
|
33
|
+
export { makeCli };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { Realtime, RealtimeAuthParams, RealtimeAuthResponse, RealtimeCredentialsResponse };
|
|
1
|
+
import { _n as RealtimeAuthResponse, gn as RealtimeAuthParams, hn as Realtime, vn as RealtimeCredentialsResponse, yn as makeRealtime } from "../../api-key-revocation-DUHNHxSZ.mjs";
|
|
2
|
+
export { Realtime, RealtimeAuthParams, RealtimeAuthResponse, RealtimeCredentialsResponse, makeRealtime };
|
|
@@ -1,3 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as generatedOperation, y as withOperation } from "../../generated-operations-DhZryVXy.mjs";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
//#region src/compat/resources/cli/realtime.ts
|
|
4
|
+
const OP_AUTH = generatedOperation("cli.realtime.auth");
|
|
5
|
+
const OP_CREDENTIALS = generatedOperation("cli.realtime.credentials");
|
|
6
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
7
|
+
const makeRealtime = (client) => ({
|
|
8
|
+
auth(body, options) {
|
|
9
|
+
return client.post("/api/v3.1/cli/realtime/auth", withOperation(OP_AUTH, {
|
|
10
|
+
body,
|
|
11
|
+
...options
|
|
12
|
+
}));
|
|
13
|
+
},
|
|
14
|
+
credentials(options) {
|
|
15
|
+
return client.get("/api/v3.1/cli/realtime/credentials", withOperation(OP_CREDENTIALS, { ...options }));
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
export { makeRealtime };
|
package/dist/resources/cli.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { Cli,
|
|
1
|
+
import { _n as RealtimeAuthResponse, cn as CliCreateCodactFailureParams, dn as CliCreateSessionResponse, fn as CliGetSessionParams, gn as RealtimeAuthParams, hn as Realtime, ln as CliCreateCodactFailureResponse, pn as CliGetSessionResponse, sn as Cli, un as CliCreateSessionParams, vn as RealtimeCredentialsResponse } from "../api-key-revocation-DUHNHxSZ.mjs";
|
|
2
|
+
export type { Cli, CliCreateCodactFailureParams, CliCreateCodactFailureResponse, CliCreateSessionParams, CliCreateSessionResponse, CliGetSessionParams, CliGetSessionResponse, Realtime, RealtimeAuthParams, RealtimeAuthResponse, RealtimeCredentialsResponse };
|
package/dist/resources/cli.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { $r as ConnectedAccountRetrieveResponse, Gr as ConnectedAccountDeleteParams, Hr as ConnectedAccountCompleteAuthResponse, Jr as ConnectedAccountListResponse, Kr as ConnectedAccountDeleteResponse, Qr as ConnectedAccountRefreshResponse, Ur as ConnectedAccountCreateParams, Vr as ConnectedAccountCompleteAuthParams, Wr as ConnectedAccountCreateResponse, Xr as ConnectedAccountPatchResponse, Yr as ConnectedAccountPatchParams, Zr as ConnectedAccountRefreshParams, ei as ConnectedAccountRevokeResponse, ii as makeConnectedAccounts, ni as ConnectedAccountUpdateStatusResponse, qr as ConnectedAccountListParams, ri as ConnectedAccounts, ti as ConnectedAccountUpdateStatusParams } from "../api-key-revocation-DUHNHxSZ.mjs";
|
|
2
|
+
export { ConnectedAccountCompleteAuthParams, ConnectedAccountCompleteAuthResponse, ConnectedAccountCreateParams, ConnectedAccountCreateResponse, ConnectedAccountDeleteParams, ConnectedAccountDeleteResponse, ConnectedAccountListParams, ConnectedAccountListResponse, ConnectedAccountPatchParams, ConnectedAccountPatchResponse, ConnectedAccountRefreshParams, ConnectedAccountRefreshResponse, ConnectedAccountRetrieveResponse, ConnectedAccountRevokeResponse, ConnectedAccountUpdateStatusParams, ConnectedAccountUpdateStatusResponse, ConnectedAccounts, makeConnectedAccounts };
|