@composio/client 2.0.0-rc.17 → 2.0.0-rc.19
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 +136 -40
- package/dist/{api-key-revocation-lc3308Ao.mjs → api-key-revocation-DMCgun-A.mjs} +1 -1
- package/dist/{auth-DkGiEaxg.mjs → auth-D-U9Aq8C.mjs} +1 -1
- package/dist/{auth-configs-DbxqGahP.mjs → auth-configs-DAG5mMeH.mjs} +1 -1
- package/dist/{clanker-fK9cAkTz.mjs → clanker-Yomp86hJ.mjs} +1 -1
- package/dist/{cli-K1MskpaR.mjs → cli-zihiw3aI.mjs} +4 -5
- package/dist/{connected-accounts-Bfl7_SY_.mjs → connected-accounts-Bd4AbWoH.mjs} +1 -1
- package/dist/{consumer-5o2zMQwr.mjs → consumer-Bk0cyIii.mjs} +6 -7
- package/dist/{custom-8rs-sHnb.mjs → custom-Ce8G2c11.mjs} +1 -1
- package/dist/{custom-wEkSiPHn.mjs → custom-DWT3cCog.mjs} +1 -1
- package/dist/effect.d.mts +29 -42
- package/dist/effect.mjs +217 -192
- package/dist/{error-D9cG225M.mjs → error-Bw7_G2NZ.mjs} +1 -1
- package/dist/{files-BPKJXlpc.mjs → files-DRp_J4zH.mjs} +1 -1
- package/dist/{files-BjPFzRnM.mjs → files-ZxEVlE_y.mjs} +1 -1
- package/dist/{generate-DDHNgbPS.mjs → generate-Du9XUrlx.mjs} +1 -1
- package/dist/{generated-deprecated-inputs--L5LHDO_.mjs → generated-deprecated-inputs-Dy_lBver.mjs} +2 -2
- package/dist/{generated-operations-D1e__yar.mjs → generated-operations-Dv7pAKDT.mjs} +354 -226
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +104 -154
- package/dist/{keyring-Dkm6DQIp.mjs → keyring-CgOIS5x7.mjs} +1 -1
- package/dist/{link-BBU-J5L_.mjs → link-CW1ts4pm.mjs} +1 -1
- package/dist/{logs-CuuysWk1.mjs → logs-DFdH5DoT.mjs} +3 -3
- package/dist/{manage-B1R7I3ZM.mjs → manage-CeB03gO8.mjs} +1 -1
- package/dist/{mcp-C3beSy48.mjs → mcp-DNRMWWum.mjs} +3 -3
- package/dist/{org-B13XOuKh.mjs → org-HuYaKgVf.mjs} +6 -6
- package/dist/{owner-BAr5uwk3.mjs → owner-I9fXmIO_.mjs} +1 -1
- package/dist/{pagination-rules-uMUdPq_7.mjs → pagination-rules-CMnBwktJ.mjs} +1 -1
- package/dist/pagination.mjs +1 -1
- package/dist/{project-CDm8tjUw.mjs → project-CxQ2H8UB.mjs} +1 -1
- package/dist/{project-DF5KclHm.mjs → project-DcV01umC.mjs} +4 -7
- package/dist/{project-BbCgXD83.mjs → project-Dwblmpw8.mjs} +1 -1
- package/dist/{project-C30H_5b6.mjs → project-FuP5k9R1.mjs} +1 -1
- package/dist/{realtime-6LigMh83.mjs → realtime-F_sGuTd8.mjs} +1 -1
- 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/auth.mjs +1 -1
- package/dist/resources/auth/index.d.mts +1 -1
- package/dist/resources/auth/index.mjs +2 -2
- 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/auth.mjs +2 -2
- package/dist/resources/cli/cli.d.mts +1 -1
- package/dist/resources/cli/cli.mjs +1 -1
- package/dist/resources/cli/index.d.mts +1 -1
- package/dist/resources/cli/index.mjs +2 -2
- package/dist/resources/cli/realtime.d.mts +1 -1
- package/dist/resources/cli/realtime.mjs +1 -1
- package/dist/resources/cli.d.mts +1 -1
- package/dist/resources/cli.mjs +2 -2
- package/dist/resources/connected-accounts.d.mts +1 -1
- package/dist/resources/connected-accounts.mjs +1 -1
- package/dist/resources/custom.d.mts +1 -1
- package/dist/resources/custom.mjs +1 -1
- package/dist/resources/files.d.mts +1 -1
- package/dist/resources/files.mjs +1 -1
- package/dist/resources/index.d.mts +1 -1
- package/dist/resources/index.mjs +13 -13
- 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/index.d.mts +1 -1
- package/dist/resources/logs/index.mjs +3 -3
- package/dist/resources/logs/logs.d.mts +1 -1
- package/dist/resources/logs/logs.mjs +1 -1
- package/dist/resources/logs/tools.d.mts +1 -1
- package/dist/resources/logs/tools.mjs +1 -1
- package/dist/resources/logs/triggers.d.mts +1 -1
- package/dist/resources/logs/triggers.mjs +1 -1
- package/dist/resources/logs.d.mts +1 -1
- package/dist/resources/logs.mjs +3 -3
- 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/index.d.mts +1 -1
- package/dist/resources/mcp/index.mjs +3 -3
- 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/mcp.mjs +3 -3
- package/dist/resources/org/clanker.d.mts +1 -1
- package/dist/resources/org/clanker.mjs +1 -1
- package/dist/resources/org/consumer/consumer.d.mts +1 -1
- package/dist/resources/org/consumer/consumer.mjs +1 -1
- package/dist/resources/org/consumer/index.d.mts +1 -1
- package/dist/resources/org/consumer/index.mjs +2 -2
- package/dist/resources/org/consumer/project.d.mts +1 -1
- package/dist/resources/org/consumer/project.mjs +1 -1
- package/dist/resources/org/consumer.d.mts +1 -1
- package/dist/resources/org/consumer.mjs +2 -2
- package/dist/resources/org/index.d.mts +1 -1
- package/dist/resources/org/index.mjs +6 -6
- package/dist/resources/org/org.d.mts +1 -1
- package/dist/resources/org/org.mjs +1 -1
- package/dist/resources/org/owner/index.d.mts +1 -1
- package/dist/resources/org/owner/index.mjs +2 -2
- package/dist/resources/org/owner/owner.d.mts +1 -1
- package/dist/resources/org/owner/owner.mjs +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/owner.mjs +2 -2
- 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 +1 -1
- package/dist/resources/org.mjs +6 -6
- package/dist/resources/project/index.d.mts +1 -1
- package/dist/resources/project/index.mjs +1 -1
- package/dist/resources/project/project.d.mts +1 -1
- package/dist/resources/project/project.mjs +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/project.mjs +1 -1
- package/dist/resources/session-configs.d.mts +1 -1
- package/dist/resources/session-configs.mjs +1 -1
- package/dist/resources/tool-router/index.d.mts +1 -1
- package/dist/resources/tool-router/index.mjs +2 -2
- 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/index.d.mts +1 -1
- package/dist/resources/tool-router/session/index.mjs +2 -2
- 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/session.mjs +2 -2
- package/dist/resources/tool-router/tool-router.d.mts +1 -1
- package/dist/resources/tool-router/tool-router.mjs +1 -1
- package/dist/resources/tool-router.d.mts +1 -1
- package/dist/resources/tool-router.mjs +2 -2
- 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/index.d.mts +1 -1
- package/dist/resources/trigger-instances/index.mjs +2 -2
- 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/trigger-instances.mjs +2 -2
- 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/dist/{session-Dm8WtF4I.mjs → session-B-ifOjVv.mjs} +1 -1
- package/dist/{session-DEfDnHZZ.mjs → session-CpwJh7Hn.mjs} +2 -2
- package/dist/{session-configs-nA6TL_i4.d.mts → session-configs-BLy_O6bX.d.mts} +131 -134
- package/dist/{tool-router-6l_dREjC.mjs → tool-router-jNsaldKV.mjs} +1 -1
- package/dist/{toolkits-Mn_uLV98.mjs → toolkits-DK4My9FW.mjs} +1 -1
- package/dist/{tools-z-PjBsf7.mjs → tools-DNkimllW.mjs} +1 -1
- package/dist/{tools-btk0mzFP.mjs → tools-Gun_2We6.mjs} +1 -1
- package/dist/{trigger-instances-PQaObQQy.mjs → trigger-instances-vvKswQSW.mjs} +2 -2
- package/dist/{triggers-y0mi0XzT.mjs → triggers-CfrGxKIo.mjs} +1 -1
- package/dist/{triggers-types-KoRbT0k5.mjs → triggers-types-DYW2Mr8z.mjs} +1 -1
- package/dist/{usage-DvjkSmpI.mjs → usage-YIBYNpVF.mjs} +1 -1
- package/dist/{usage-B2Z947BK.mjs → usage-vt9HmnNf.mjs} +1 -1
- package/dist/version-DB98yI2B.d.mts +4 -0
- package/dist/{webhook-endpoints-kf4Jj2Mz.mjs → webhook-endpoints-HqLteVW6.mjs} +1 -1
- package/dist/{webhook-subscriptions-DcYN8qo1.mjs → webhook-subscriptions-CXhNXIOM.mjs} +1 -1
- package/package.json +2 -2
- package/dist/version-DUxhnnPj.d.mts +0 -4
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $r as
|
|
2
|
-
import { t as VERSION } from "./version-
|
|
3
|
-
export { APIConnectionError, APIConnectionTimeoutError, APIError, type APIErrorBody, APIPromise, APIUserAbortError, AuthenticationError, BadRequestError, type ClientIdentity, type ClientOptions, Composio, Composio as default, ComposioError, ConflictError, type EnvironmentMap, type FetchTransportDefaults, type FileCreateDownloadURLParams, type FileCreateDownloadURLResponse, type FileCreateUploadURLParams, type FileCreateUploadURLResponse, type FileDeleteParams, type FileDeleteResponse, type FileListParams, type FileListResponse, Files, InternalServerError, type LogLevel,
|
|
1
|
+
import { $i as APIPromise, $r as SessionDeleteResponse, Ai as AutoCredentials, Bi as ComposioError, Ci as FileListParams, Ei as Auth, Fi as APIError, Gi as RateLimitError, Gr as ToolRouter, Hi as InternalServerError, Ii as APIErrorBody, Ji as FetchTransportDefaults, Jr as SessionAttachResponse, Ki as UnprocessableEntityError, Kr as Session, Li as APIUserAbortError, Mi as Scope, Ni as APIConnectionError, Oi as AuthMode, Pi as APIConnectionTimeoutError, Qr as SessionCreateResponse, Ri as AuthenticationError, Si as FileDeleteResponse, Ti as Files, Ui as NotFoundError, Vi as ConflictError, Wi as PermissionDeniedError, Xi as createFetchTransport, Xr as SessionConfigHistoryResponse, Yi as Transport, Yr as SessionConfigHistoryParams, Zi as ClientIdentity, Zr as SessionCreateParams, _i as FileCreateDownloadURLParams, a as ClientOptions, ai as SessionLinkResponse, bi as FileCreateUploadURLResponse, c as LogLevel, ci as SessionProxyExecuteParams, di as SessionSearchParams, ei as SessionExecuteMetaParams, fi as SessionSearchResponse, gi as SessionToolsResponse, hi as SessionToolsParams, ii as SessionLinkParams, ji as Credential, li as SessionProxyExecuteResponse, mi as SessionToolkitsResponse, ni as SessionExecuteParams, o as Composio, oi as SessionPatchParams, pi as SessionToolkitsParams, qi as RequestOptions, qr as SessionAttachParams, ri as SessionExecuteResponse, s as EnvironmentMap, si as SessionPatchResponse, ti as SessionExecuteMetaResponse, ui as SessionRetrieveResponse, vi as FileCreateDownloadURLResponse, wi as FileListResponse, xi as FileDeleteParams, yi as FileCreateUploadURLParams, zi as BadRequestError } from "./session-configs-BLy_O6bX.mjs";
|
|
2
|
+
import { t as VERSION } from "./version-DB98yI2B.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, 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 };
|
package/dist/index.mjs
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
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-
|
|
2
|
-
import { C as resolveIdentity, E as inspectDeprecation,
|
|
3
|
-
import { t as ApiKeyRevocation } from "./api-key-revocation-
|
|
4
|
-
import { t as AuthConfigs } from "./auth-configs-
|
|
5
|
-
import { t as Auth } from "./auth-
|
|
6
|
-
import { t as Cli } from "./cli-
|
|
7
|
-
import { t as ConnectedAccounts } from "./connected-accounts-
|
|
8
|
-
import { t as Custom } from "./custom-
|
|
9
|
-
import { t as Files$1 } from "./files-
|
|
10
|
-
import { t as Keyring } from "./keyring-
|
|
11
|
-
import { t as Link } from "./link-
|
|
12
|
-
import { t as Logs } from "./logs-
|
|
13
|
-
import { t as Mcp } from "./mcp-
|
|
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-Dv7pAKDT.mjs";
|
|
3
|
+
import { t as ApiKeyRevocation } from "./api-key-revocation-DMCgun-A.mjs";
|
|
4
|
+
import { t as AuthConfigs } from "./auth-configs-DAG5mMeH.mjs";
|
|
5
|
+
import { t as Auth$1 } from "./auth-D-U9Aq8C.mjs";
|
|
6
|
+
import { t as Cli } from "./cli-zihiw3aI.mjs";
|
|
7
|
+
import { t as ConnectedAccounts } from "./connected-accounts-Bd4AbWoH.mjs";
|
|
8
|
+
import { t as Custom } from "./custom-Ce8G2c11.mjs";
|
|
9
|
+
import { t as Files$1 } from "./files-ZxEVlE_y.mjs";
|
|
10
|
+
import { t as Keyring } from "./keyring-CgOIS5x7.mjs";
|
|
11
|
+
import { t as Link } from "./link-CW1ts4pm.mjs";
|
|
12
|
+
import { t as Logs } from "./logs-DFdH5DoT.mjs";
|
|
13
|
+
import { t as Mcp } from "./mcp-DNRMWWum.mjs";
|
|
14
14
|
import { t as Migration } from "./migration-CBhnoN-Y.mjs";
|
|
15
|
-
import { t as Org } from "./org-
|
|
16
|
-
import { t as Project } from "./project-
|
|
15
|
+
import { t as Org } from "./org-HuYaKgVf.mjs";
|
|
16
|
+
import { t as Project } from "./project-CxQ2H8UB.mjs";
|
|
17
17
|
import { SessionConfigs } from "./resources/session-configs.mjs";
|
|
18
|
-
import { t as Files } from "./files-
|
|
19
|
-
import { t as Session } from "./session-
|
|
20
|
-
import { t as ToolRouter } from "./tool-router-
|
|
21
|
-
import { t as Toolkits } from "./toolkits-
|
|
22
|
-
import { t as Tools } from "./tools-
|
|
23
|
-
import { t as TriggerInstances } from "./trigger-instances-
|
|
24
|
-
import { t as TriggersTypes } from "./triggers-types-
|
|
25
|
-
import { t as WebhookEndpoints } from "./webhook-endpoints-
|
|
26
|
-
import { t as WebhookSubscriptions } from "./webhook-subscriptions-
|
|
27
|
-
import { n as APIPromise, t as GENERATED_DEPRECATED_INPUTS } from "./generated-deprecated-inputs
|
|
18
|
+
import { t as Files } from "./files-DRp_J4zH.mjs";
|
|
19
|
+
import { t as Session } from "./session-CpwJh7Hn.mjs";
|
|
20
|
+
import { t as ToolRouter } from "./tool-router-jNsaldKV.mjs";
|
|
21
|
+
import { t as Toolkits } from "./toolkits-DK4My9FW.mjs";
|
|
22
|
+
import { t as Tools } from "./tools-Gun_2We6.mjs";
|
|
23
|
+
import { t as TriggerInstances } from "./trigger-instances-vvKswQSW.mjs";
|
|
24
|
+
import { t as TriggersTypes } from "./triggers-types-DYW2Mr8z.mjs";
|
|
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";
|
|
28
28
|
|
|
29
29
|
//#region src/compat/generated-resource-wiring.ts
|
|
30
30
|
const createClientResources = (client) => ({
|
|
@@ -45,7 +45,7 @@ const createClientResources = (client) => ({
|
|
|
45
45
|
webhookSubscriptions: new WebhookSubscriptions(client),
|
|
46
46
|
webhookEndpoints: new WebhookEndpoints(client),
|
|
47
47
|
org: new Org(client),
|
|
48
|
-
auth: new Auth(client),
|
|
48
|
+
auth: new Auth$1(client),
|
|
49
49
|
apiKeyRevocation: new ApiKeyRevocation(client),
|
|
50
50
|
custom: new Custom(client),
|
|
51
51
|
keyring: new Keyring(client),
|
|
@@ -54,34 +54,17 @@ const createClientResources = (client) => ({
|
|
|
54
54
|
|
|
55
55
|
//#endregion
|
|
56
56
|
//#region src/compat/client.ts
|
|
57
|
-
const
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
};
|
|
62
|
-
const environmentReader = Symbol("Composio.environmentReader");
|
|
63
|
-
/** Read a trimmed environment value in Node or Deno without assuming either runtime exists. */
|
|
64
|
-
const readEnv = (name) => {
|
|
65
|
-
const globals = globalThis;
|
|
66
|
-
try {
|
|
67
|
-
const fromProcess = globals.process?.env?.[name]?.trim();
|
|
68
|
-
if (fromProcess) return fromProcess;
|
|
69
|
-
} catch {}
|
|
70
|
-
try {
|
|
71
|
-
return globals.Deno?.env?.get?.(name)?.trim() || void 0;
|
|
72
|
-
} catch {}
|
|
73
|
-
};
|
|
74
|
-
const createEnvironmentReader = (environment) => (name) => environment[name]?.trim() || void 0;
|
|
75
|
-
const emptyEnvironmentReader = () => void 0;
|
|
76
|
-
const mergeEnvironmentHeaders = (raw, defaults) => {
|
|
77
|
-
if (!raw) return defaults;
|
|
57
|
+
const DEFAULT_BASE_URL = "https://backend.composio.dev";
|
|
58
|
+
/** A setting as `fromEnv` reads one: trimmed, and absent when empty. */
|
|
59
|
+
const setting = (environment, name) => environment[name]?.trim() || void 0;
|
|
60
|
+
const parseCustomHeaders = (raw) => {
|
|
78
61
|
const parsed = {};
|
|
79
62
|
for (const line of raw.split("\n")) {
|
|
80
63
|
const colon = line.indexOf(":");
|
|
81
64
|
if (colon >= 0) parsed[line.substring(0, colon).trim()] = line.substring(colon + 1).trim();
|
|
82
65
|
}
|
|
83
66
|
try {
|
|
84
|
-
return mergeHeaders([parsed
|
|
67
|
+
return mergeHeaders([parsed]);
|
|
85
68
|
} catch (cause) {
|
|
86
69
|
throw new ComposioError(`COMPOSIO_CUSTOM_HEADERS contains an invalid header: ${cause instanceof Error ? cause.message : String(cause)}`);
|
|
87
70
|
}
|
|
@@ -100,118 +83,104 @@ const LOG_LEVELS = {
|
|
|
100
83
|
* the default rather than silencing the client or making it shout.
|
|
101
84
|
*/
|
|
102
85
|
const isLogLevel = (value) => value !== void 0 && Object.hasOwn(LOG_LEVELS, value);
|
|
103
|
-
const
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
};
|
|
107
|
-
const resolveBaseURL = (options, readEnvironment, hasExplicitEnvironment) => {
|
|
108
|
-
if (options.baseURL !== void 0) return options.baseURL;
|
|
109
|
-
if (hasExplicitEnvironment && options.environment !== void 0) return null;
|
|
110
|
-
return readEnvironment("COMPOSIO_BASE_URL") ?? null;
|
|
111
|
-
};
|
|
112
|
-
const resolveClientOptions = (input) => {
|
|
113
|
-
const hasExplicitEnvironment = input[environmentReader] !== void 0;
|
|
114
|
-
const readEnvironment = input[environmentReader] ?? readEnv;
|
|
115
|
-
const baseURL = resolveBaseURL(input, readEnvironment, hasExplicitEnvironment);
|
|
116
|
-
const apiKey = resolveCredential(input.apiKey, readEnvironment, "COMPOSIO_API_KEY");
|
|
117
|
-
const userApiKey = resolveCredential(input.userApiKey, readEnvironment, "COMPOSIO_USER_API_KEY");
|
|
118
|
-
const orgApiKey = resolveCredential(input.orgApiKey, readEnvironment, "COMPOSIO_ORG_API_KEY");
|
|
119
|
-
if (baseURL && input.environment) throw new ComposioError("Ambiguous URL; The `baseURL` option (or COMPOSIO_BASE_URL env var) and the `environment` option are given. If you want to use the environment you must pass baseURL: null");
|
|
120
|
-
const options = {
|
|
121
|
-
...input,
|
|
122
|
-
apiKey,
|
|
123
|
-
userApiKey,
|
|
124
|
-
orgApiKey,
|
|
125
|
-
allowInsecureHTTP: input.allowInsecureHTTP ?? readEnvironment("COMPOSIO_ALLOW_INSECURE_HTTP") === "1",
|
|
126
|
-
allowedHTTPOrigin: input.allowedHTTPOrigin ?? null,
|
|
127
|
-
baseURL,
|
|
128
|
-
environment: input.environment ?? "production",
|
|
129
|
-
logLevel: input.logLevel ?? readEnvironment("COMPOSIO_LOG_LEVEL") ?? "warn"
|
|
130
|
-
};
|
|
131
|
-
options.defaultHeaders = mergeEnvironmentHeaders(readEnvironment("COMPOSIO_CUSTOM_HEADERS"), input.defaultHeaders);
|
|
132
|
-
if (hasExplicitEnvironment) options[environmentReader] = emptyEnvironmentReader;
|
|
133
|
-
return options;
|
|
86
|
+
const COMPAT_CREDENTIAL = {
|
|
87
|
+
is: (value) => typeof value === "string" || typeof value === "function",
|
|
88
|
+
keyOf: (credential) => typeof credential === "string" ? credential : void 0
|
|
134
89
|
};
|
|
90
|
+
const resolveClientOptions = (input) => ({
|
|
91
|
+
...input,
|
|
92
|
+
allowInsecureHTTP: input.allowInsecureHTTP ?? false,
|
|
93
|
+
allowedHTTPOrigin: input.allowedHTTPOrigin ?? null,
|
|
94
|
+
baseURL: input.baseURL || DEFAULT_BASE_URL,
|
|
95
|
+
logLevel: isLogLevel(input.logLevel) ? input.logLevel : "warn"
|
|
96
|
+
});
|
|
135
97
|
var Composio = class Composio {
|
|
136
|
-
apiKey;
|
|
137
|
-
userApiKey;
|
|
138
|
-
orgApiKey;
|
|
139
98
|
baseURL;
|
|
140
99
|
maxRetries;
|
|
141
100
|
timeout;
|
|
142
|
-
logger;
|
|
143
101
|
logLevel;
|
|
102
|
+
#logger;
|
|
144
103
|
#transport;
|
|
145
104
|
#options;
|
|
146
105
|
#identity;
|
|
106
|
+
#auth;
|
|
107
|
+
#scope;
|
|
108
|
+
#scopeHeaders;
|
|
109
|
+
#reserved;
|
|
110
|
+
#kernel;
|
|
147
111
|
/**
|
|
148
|
-
* The (operation, notice) pairs
|
|
149
|
-
*
|
|
150
|
-
* by
|
|
151
|
-
*
|
|
152
|
-
* parameter called in a loop announces itself once — while a *revised*
|
|
153
|
-
* notice from that same endpoint, say once a `Sunset` date is committed,
|
|
154
|
-
* still gets through.
|
|
155
|
-
*
|
|
156
|
-
* Per client *lineage*, not per process: a client built with `new Composio()`
|
|
157
|
-
* starts empty, and `withOptions()` shares this exact Set with the client it
|
|
158
|
-
* returns (see below). Not reassigned anywhere else — the mutability exists
|
|
159
|
-
* only so a derived client can join its parent's record.
|
|
112
|
+
* The (operation, notice) pairs this client lineage has already warned
|
|
113
|
+
* about, under distinct key prefixes for response notices and deprecated
|
|
114
|
+
* inputs. Reassigned only by `withOptions()`, so a derived client joins its
|
|
115
|
+
* parent's record.
|
|
160
116
|
*/
|
|
161
117
|
#deprecationSeen = /* @__PURE__ */ new Set();
|
|
162
|
-
constructor(input
|
|
118
|
+
constructor(input) {
|
|
119
|
+
if (typeof input !== "object" || input === null) throw new ComposioError("`new Composio(options)` needs an options object with `auth`.");
|
|
120
|
+
assertNoRemovedCredentialOptions(input);
|
|
163
121
|
const options = resolveClientOptions(input);
|
|
122
|
+
this.#auth = resolveAuth(options.auth, COMPAT_CREDENTIAL);
|
|
123
|
+
this.#scopeHeaders = resolveScope(options.scope);
|
|
124
|
+
this.#scope = options.scope === void 0 ? void 0 : Object.freeze({ ...options.scope });
|
|
164
125
|
this.#identity = resolveIdentity(options.identity);
|
|
165
|
-
|
|
166
|
-
|
|
126
|
+
this.#reserved = reservedHeaders(this.#identity, {
|
|
127
|
+
auth: this.#auth.mode !== "none",
|
|
128
|
+
scope: this.#scopeHeaders !== void 0
|
|
129
|
+
});
|
|
130
|
+
assertNoReservedHeaders(options.defaultHeaders, this.#reserved, "defaultHeaders");
|
|
131
|
+
this.baseURL = options.baseURL;
|
|
167
132
|
this.timeout = options.timeout ?? Composio.DEFAULT_TIMEOUT;
|
|
168
|
-
this
|
|
133
|
+
this.#logger = options.logger ?? console;
|
|
169
134
|
this.logLevel = options.logLevel;
|
|
170
135
|
this.maxRetries = options.maxRetries ?? 2;
|
|
171
136
|
this.#transport = options.transport ?? createFetchTransport();
|
|
172
137
|
options.allowedHTTPOrigin = options.allowInsecureHTTP ? options.allowedHTTPOrigin ?? parseHTTPURL(this.baseURL)?.origin ?? null : null;
|
|
173
138
|
this.#options = options;
|
|
174
|
-
this.
|
|
175
|
-
this
|
|
176
|
-
this.orgApiKey = options.orgApiKey;
|
|
177
|
-
assertCredentialTransport(this.baseURL, this.#credentials(), options.allowedHTTPOrigin);
|
|
139
|
+
assertCredentialTransport(this.baseURL, this.#auth.mode !== "none", options.allowedHTTPOrigin);
|
|
140
|
+
this.#kernel = this.#kernelConfig();
|
|
178
141
|
Object.assign(this, createClientResources(this));
|
|
179
142
|
}
|
|
180
143
|
/**
|
|
181
|
-
* Constructs a client from
|
|
182
|
-
*
|
|
183
|
-
* Unlike the compatibility constructor, this method never reads ambient
|
|
184
|
-
* process or Deno state. Explicit options replace values from `environment`;
|
|
185
|
-
* in particular, an explicit named environment replaces
|
|
186
|
-
* `COMPOSIO_BASE_URL`, and `apiKey: null` disables a mapped API key.
|
|
144
|
+
* Constructs a client from `environment` (such as `process.env`), the only
|
|
145
|
+
* place a client reads `COMPOSIO_*`. Each override replaces the field it names.
|
|
187
146
|
*/
|
|
188
|
-
static fromEnv(environment,
|
|
189
|
-
const
|
|
190
|
-
|
|
191
|
-
|
|
147
|
+
static fromEnv(environment, overrides = {}) {
|
|
148
|
+
const read = (name) => setting(environment, name);
|
|
149
|
+
const mapped = {
|
|
150
|
+
auth: authFromCredentials({
|
|
151
|
+
project: read("COMPOSIO_API_KEY"),
|
|
152
|
+
user: read("COMPOSIO_USER_API_KEY"),
|
|
153
|
+
organization: read("COMPOSIO_ORG_API_KEY")
|
|
154
|
+
}),
|
|
155
|
+
allowInsecureHTTP: read("COMPOSIO_ALLOW_INSECURE_HTTP") === "1",
|
|
156
|
+
baseURL: read("COMPOSIO_BASE_URL")
|
|
192
157
|
};
|
|
193
|
-
|
|
158
|
+
const logLevel = read("COMPOSIO_LOG_LEVEL");
|
|
159
|
+
if (logLevel !== void 0) mapped.logLevel = logLevel;
|
|
160
|
+
const customHeaders = read("COMPOSIO_CUSTOM_HEADERS");
|
|
161
|
+
if (customHeaders !== void 0) mapped.defaultHeaders = parseCustomHeaders(customHeaders);
|
|
162
|
+
return new this({
|
|
163
|
+
...mapped,
|
|
164
|
+
...overrides
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
get authMode() {
|
|
168
|
+
return this.#auth.mode;
|
|
169
|
+
}
|
|
170
|
+
get scope() {
|
|
171
|
+
return this.#scope;
|
|
194
172
|
}
|
|
195
|
-
/**
|
|
173
|
+
/** A new client with `options` merged over this one's, key by key, validated as a constructor call is. */
|
|
196
174
|
withOptions(options) {
|
|
197
175
|
const transport = Object.hasOwn(options, "transport") ? options.transport : this.#transport;
|
|
198
176
|
const allowedHTTPOrigin = options.allowInsecureHTTP === true ? void 0 : this.#options.allowedHTTPOrigin;
|
|
199
|
-
const
|
|
177
|
+
const derived = {
|
|
200
178
|
...this.#options,
|
|
201
|
-
environment: options.environment ? options.environment : void 0,
|
|
202
|
-
baseURL: options.environment ? void 0 : this.baseURL,
|
|
203
|
-
maxRetries: this.maxRetries,
|
|
204
|
-
timeout: this.timeout,
|
|
205
|
-
logger: this.logger,
|
|
206
|
-
logLevel: this.logLevel,
|
|
207
|
-
apiKey: this.apiKey,
|
|
208
|
-
userApiKey: this.userApiKey,
|
|
209
|
-
orgApiKey: this.orgApiKey,
|
|
210
179
|
...options,
|
|
211
180
|
allowedHTTPOrigin,
|
|
212
181
|
transport
|
|
213
182
|
};
|
|
214
|
-
const client = new this.constructor(
|
|
183
|
+
const client = new this.constructor(derived);
|
|
215
184
|
client.#deprecationSeen = this.#deprecationSeen;
|
|
216
185
|
return client;
|
|
217
186
|
}
|
|
@@ -238,15 +207,7 @@ var Composio = class Composio {
|
|
|
238
207
|
});
|
|
239
208
|
}
|
|
240
209
|
request(options) {
|
|
241
|
-
return new APIPromise(makeRequest(this.#
|
|
242
|
-
}
|
|
243
|
-
/** Read at dispatch, never cached: all three fields are public and mutable. */
|
|
244
|
-
#credentials() {
|
|
245
|
-
return {
|
|
246
|
-
apiKey: this.apiKey,
|
|
247
|
-
userApiKey: this.userApiKey,
|
|
248
|
-
orgApiKey: this.orgApiKey
|
|
249
|
-
};
|
|
210
|
+
return new APIPromise(makeRequest(this.#kernel, options));
|
|
250
211
|
}
|
|
251
212
|
#onKernelLog = (level, message, metadata) => {
|
|
252
213
|
this.#emitLog(level, message, metadata);
|
|
@@ -279,11 +240,12 @@ var Composio = class Composio {
|
|
|
279
240
|
});
|
|
280
241
|
};
|
|
281
242
|
#kernelConfig() {
|
|
282
|
-
const
|
|
283
|
-
const lifecycleLoggingEnabled = LOG_LEVELS[configuredLogLevel] >= LOG_LEVELS.info;
|
|
243
|
+
const lifecycleLoggingEnabled = LOG_LEVELS[this.logLevel] >= LOG_LEVELS.info;
|
|
284
244
|
return {
|
|
285
245
|
baseURL: this.baseURL,
|
|
286
|
-
|
|
246
|
+
auth: this.#auth,
|
|
247
|
+
scope: this.#scopeHeaders,
|
|
248
|
+
reserved: this.#reserved,
|
|
287
249
|
allowedHTTPOrigin: this.#options.allowedHTTPOrigin,
|
|
288
250
|
operations: GENERATED_OPERATIONS,
|
|
289
251
|
maxRetries: this.maxRetries,
|
|
@@ -297,22 +259,10 @@ var Composio = class Composio {
|
|
|
297
259
|
onRequest: this.#onKernelRequest
|
|
298
260
|
};
|
|
299
261
|
}
|
|
300
|
-
/**
|
|
301
|
-
* Writes one record through the configured `logger`, gated on `logLevel`.
|
|
302
|
-
*
|
|
303
|
-
* A private method by construction: emitting is the client's own business
|
|
304
|
-
* and the public surface is pinned against the Stainless client, which
|
|
305
|
-
* exposes no such method. The logger is caller-supplied, so a missing method
|
|
306
|
-
* or a throwing one is treated as no logger at all — the same rule the
|
|
307
|
-
* kernel applies to its advisory observer callbacks.
|
|
308
|
-
*/
|
|
309
262
|
#emitLog(level, message, ...details) {
|
|
310
|
-
|
|
311
|
-
if (LOG_LEVELS[configured] < LOG_LEVELS[level]) return;
|
|
263
|
+
if (LOG_LEVELS[this.logLevel] < LOG_LEVELS[level]) return;
|
|
312
264
|
try {
|
|
313
|
-
|
|
314
|
-
if (typeof sink !== "function") return;
|
|
315
|
-
sink.call(this.logger, message, ...details);
|
|
265
|
+
this.#logger[level](message, ...details);
|
|
316
266
|
} catch {}
|
|
317
267
|
}
|
|
318
268
|
static Composio = this;
|
|
@@ -348,10 +298,10 @@ Composio.Migration = Migration;
|
|
|
348
298
|
Composio.WebhookSubscriptions = WebhookSubscriptions;
|
|
349
299
|
Composio.WebhookEndpoints = WebhookEndpoints;
|
|
350
300
|
Composio.Org = Org;
|
|
351
|
-
Composio.Auth = Auth;
|
|
301
|
+
Composio.Auth = Auth$1;
|
|
352
302
|
Composio.ApiKeyRevocation = ApiKeyRevocation;
|
|
353
303
|
Composio.Custom = Custom;
|
|
354
304
|
Composio.Keyring = Keyring;
|
|
355
305
|
|
|
356
306
|
//#endregion
|
|
357
|
-
export { APIConnectionError, APIConnectionTimeoutError, APIError, APIPromise, APIUserAbortError, AuthenticationError, BadRequestError, Composio, Composio as default, ComposioError, ConflictError, Files, InternalServerError, NotFoundError, PermissionDeniedError, RateLimitError, Session, ToolRouter, UnprocessableEntityError, VERSION, createFetchTransport };
|
|
307
|
+
export { APIConnectionError, APIConnectionTimeoutError, APIError, APIPromise, APIUserAbortError, Auth, AuthenticationError, BadRequestError, Composio, Composio as default, ComposioError, ConflictError, Files, InternalServerError, NotFoundError, PermissionDeniedError, RateLimitError, Session, ToolRouter, UnprocessableEntityError, VERSION, createFetchTransport };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as generatedOperation, y as withOperation } from "./generated-operations-Dv7pAKDT.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/compat/resources/keyring.ts
|
|
4
4
|
const OP_LIST_TRANSFER_KEYS = generatedOperation("keyring.listTransferKeys");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as generatedOperation, y as withOperation } from "./generated-operations-Dv7pAKDT.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/compat/resources/link.ts
|
|
4
4
|
const OP_CREATE = generatedOperation("link.create");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as Triggers } from "./triggers-
|
|
3
|
-
import { t as Tools } from "./tools-
|
|
1
|
+
import { d as path, n as generatedOperation, y as withOperation } from "./generated-operations-Dv7pAKDT.mjs";
|
|
2
|
+
import { t as Triggers } from "./triggers-CfrGxKIo.mjs";
|
|
3
|
+
import { t as Tools } from "./tools-DNkimllW.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/compat/resources/logs/logs.ts
|
|
6
6
|
const OP_CREATE_TOOL_EXECUTION = generatedOperation("logs.createToolExecution");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as path, n as generatedOperation, y as withOperation } from "./generated-operations-Dv7pAKDT.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/compat/resources/trigger-instances/manage.ts
|
|
4
4
|
const OP_UPDATE = generatedOperation("triggerInstances.manage.update");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as Custom } from "./custom-
|
|
3
|
-
import { t as Generate } from "./generate-
|
|
1
|
+
import { d as path, n as generatedOperation, y as withOperation } from "./generated-operations-Dv7pAKDT.mjs";
|
|
2
|
+
import { t as Custom } from "./custom-DWT3cCog.mjs";
|
|
3
|
+
import { t as Generate } from "./generate-Du9XUrlx.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/compat/resources/mcp/mcp.ts
|
|
6
6
|
const OP_CREATE = generatedOperation("mcp.create");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as Clanker } from "./clanker-
|
|
3
|
-
import { t as Consumer } from "./consumer-
|
|
4
|
-
import { t as Owner } from "./owner-
|
|
5
|
-
import { t as Project } from "./project-
|
|
6
|
-
import { t as Usage } from "./usage-
|
|
1
|
+
import { n as generatedOperation, y as withOperation } from "./generated-operations-Dv7pAKDT.mjs";
|
|
2
|
+
import { t as Clanker } from "./clanker-Yomp86hJ.mjs";
|
|
3
|
+
import { t as Consumer } from "./consumer-Bk0cyIii.mjs";
|
|
4
|
+
import { t as Owner } from "./owner-I9fXmIO_.mjs";
|
|
5
|
+
import { t as Project } from "./project-FuP5k9R1.mjs";
|
|
6
|
+
import { t as Usage } from "./usage-vt9HmnNf.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/compat/resources/org/org.ts
|
|
9
9
|
const OP_LIST = generatedOperation("org.list");
|
package/dist/pagination.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as standardNextCursor, n as assertPageItems, r as isFinalCursor, t as assertCursorAdvanced } from "./pagination-rules-
|
|
1
|
+
import { i as standardNextCursor, n as assertPageItems, r as isFinalCursor, t as assertCursorAdvanced } from "./pagination-rules-CMnBwktJ.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/pagination.ts
|
|
4
4
|
var PaginationTraversal = class {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as generatedOperation, y as withOperation } from "./generated-operations-Dv7pAKDT.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/compat/resources/org/consumer/project.ts
|
|
4
4
|
const OP_RESOLVE = generatedOperation("org.consumer.project.resolve");
|
|
@@ -14,12 +14,9 @@ var Project = class {
|
|
|
14
14
|
}
|
|
15
15
|
resolve(params, options) {
|
|
16
16
|
const { "x-user-api-key": xUserApiKey, "x-org-id": xOrgId } = params;
|
|
17
|
-
return this.#client.post("/api/v3.1/org/consumer/project/resolve", withOperation(OP_RESOLVE, {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
...xUserApiKey != null ? { "x-user-api-key": xUserApiKey } : void 0,
|
|
21
|
-
...xOrgId != null ? { "x-org-id": xOrgId } : void 0
|
|
22
|
-
}, options?.headers])
|
|
17
|
+
return this.#client.post("/api/v3.1/org/consumer/project/resolve", withOperation(OP_RESOLVE, { ...options }, {
|
|
18
|
+
"x-user-api-key": xUserApiKey,
|
|
19
|
+
"x-org-id": xOrgId
|
|
23
20
|
}));
|
|
24
21
|
}
|
|
25
22
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as path, n as generatedOperation, y as withOperation } from "./generated-operations-Dv7pAKDT.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/compat/resources/org/owner/project.ts
|
|
4
4
|
const OP_CREATE = generatedOperation("org.owner.project.create");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as generatedOperation, y as withOperation } from "./generated-operations-Dv7pAKDT.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/compat/resources/org/project.ts
|
|
4
4
|
const OP_LIST = generatedOperation("org.project.list");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as generatedOperation, y as withOperation } from "./generated-operations-Dv7pAKDT.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/compat/resources/cli/realtime.ts
|
|
4
4
|
const OP_AUTH = generatedOperation("cli.realtime.auth");
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { b as
|
|
1
|
+
import { b as ApiKeyRevocationCreateResponse, v as ApiKeyRevocation, y as ApiKeyRevocationCreateParams } from "../session-configs-BLy_O6bX.mjs";
|
|
2
2
|
export { ApiKeyRevocation, type ApiKeyRevocationCreateParams, type ApiKeyRevocationCreateResponse };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { x as Auth } from "../../session-configs-BLy_O6bX.mjs";
|
|
2
2
|
export { Auth };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as
|
|
1
|
+
import { C as SessionRetrieveInfoResponse, S as Session, x as Auth } from "../../session-configs-BLy_O6bX.mjs";
|
|
2
2
|
export { Auth, Session, type SessionRetrieveInfoResponse };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as
|
|
1
|
+
import { C as SessionRetrieveInfoResponse, S as Session } from "../../session-configs-BLy_O6bX.mjs";
|
|
2
2
|
export { Session, type SessionRetrieveInfoResponse };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Bn as
|
|
1
|
+
import { Bn as AuthConfigListResponse, Fn as AuthConfigCreateParams, Gn as AuthConfigUpdateStatusResponse, Hn as AuthConfigUpdateParams, In as AuthConfigCreateResponse, Kn as AuthConfigs, Ln as AuthConfigDeleteParams, Rn as AuthConfigDeleteResponse, Un as AuthConfigUpdateResponse, Vn as AuthConfigRetrieveResponse, Wn as AuthConfigUpdateStatusParams, zn as AuthConfigListParams } from "../session-configs-BLy_O6bX.mjs";
|
|
2
2
|
export { type AuthConfigCreateParams, type AuthConfigCreateResponse, type AuthConfigDeleteParams, type AuthConfigDeleteResponse, type AuthConfigListParams, type AuthConfigListResponse, type AuthConfigRetrieveResponse, type AuthConfigUpdateParams, type AuthConfigUpdateResponse, type AuthConfigUpdateStatusParams, type AuthConfigUpdateStatusResponse, AuthConfigs };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as
|
|
1
|
+
import { C as SessionRetrieveInfoResponse, S as Session, x as Auth } from "../session-configs-BLy_O6bX.mjs";
|
|
2
2
|
export { Auth, Session, type SessionRetrieveInfoResponse };
|
package/dist/resources/auth.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as Session } from "../session-
|
|
2
|
-
import { t as Auth } from "../auth-
|
|
1
|
+
import { t as Session } from "../session-B-ifOjVv.mjs";
|
|
2
|
+
import { t as Auth } from "../auth-D-U9Aq8C.mjs";
|
|
3
3
|
import "./auth/index.mjs";
|
|
4
4
|
|
|
5
5
|
export { Auth, Session };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Gt as
|
|
1
|
+
import { Bt as Cli, Gt as CliGetSessionParams, Ht as CliCreateCodactFailureResponse, Kt as CliGetSessionResponse, Ut as CliCreateSessionParams, Vt as CliCreateCodactFailureParams, Wt as CliCreateSessionResponse } from "../../session-configs-BLy_O6bX.mjs";
|
|
2
2
|
export { Cli, CliCreateCodactFailureParams, CliCreateCodactFailureResponse, CliCreateSessionParams, CliCreateSessionResponse, CliGetSessionParams, CliGetSessionResponse };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Gt as
|
|
1
|
+
import { Bt as Cli, Gt as CliGetSessionParams, Ht as CliCreateCodactFailureResponse, Jt as RealtimeAuthParams, Kt as CliGetSessionResponse, Ut as CliCreateSessionParams, Vt as CliCreateCodactFailureParams, Wt as CliCreateSessionResponse, Xt as RealtimeCredentialsResponse, Yt as RealtimeAuthResponse, qt as Realtime } from "../../session-configs-BLy_O6bX.mjs";
|
|
2
2
|
export { Cli, type CliCreateCodactFailureParams, type CliCreateCodactFailureResponse, type CliCreateSessionParams, type CliCreateSessionResponse, type CliGetSessionParams, type CliGetSessionResponse, Realtime, type RealtimeAuthParams, type RealtimeAuthResponse, type RealtimeCredentialsResponse };
|