@composio/client 2.0.0-rc.16 → 2.0.0-rc.18
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 +146 -32
- package/dist/{api-key-revocation-CvGpd3Rw.mjs → api-key-revocation-JkA4sOGH.mjs} +1 -1
- package/dist/{auth-C0IYTv5D.mjs → auth-B_K-wdMm.mjs} +1 -1
- package/dist/{auth-configs-COmbnKYx.mjs → auth-configs-RAgN782Z.mjs} +1 -1
- package/dist/{clanker-hE4FKPjg.mjs → clanker-Pgyyh95r.mjs} +1 -1
- package/dist/{cli-CuFaxvp4.mjs → cli-Ca5bRiEN.mjs} +4 -5
- package/dist/{connected-accounts-BmbcAhdS.mjs → connected-accounts-D6NTwvbi.mjs} +1 -1
- package/dist/{consumer-BaJgJBXQ.mjs → consumer-BP4OyJS0.mjs} +6 -7
- package/dist/{custom-DIJbIQGR.mjs → custom-BBr7KbCv.mjs} +1 -1
- package/dist/{custom-DbEv7dUC.mjs → custom-DA3ABHnI.mjs} +1 -1
- package/dist/effect.d.mts +70 -26
- package/dist/effect.mjs +216 -141
- package/dist/{error-D9cG225M.mjs → error-Bw7_G2NZ.mjs} +1 -1
- package/dist/{files-Cw6ulQZy.mjs → files-CeBs4ZE1.mjs} +1 -1
- package/dist/{files-RPz_Fvnz.mjs → files-DLRmNLRD.mjs} +1 -1
- package/dist/{generate-DZXuXtYM.mjs → generate-16uLPwUU.mjs} +1 -1
- package/dist/{generated-deprecated-inputs-B6o8D8ub.mjs → generated-deprecated-inputs-zx6ml908.mjs} +2 -2
- package/dist/{generated-operations-DrhN6W_k.mjs → generated-operations-DKgGT6Dg.mjs} +572 -211
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +134 -100
- package/dist/{keyring-CmnkWH5K.mjs → keyring-Q8GSieAv.mjs} +1 -1
- package/dist/{link-C0KzTJBI.mjs → link-D4dY_eaN.mjs} +1 -1
- package/dist/{logs-Bj5MAt8z.mjs → logs-Dc63Ju74.mjs} +3 -3
- package/dist/{manage-DDFmGWNH.mjs → manage-ByF6b3OD.mjs} +1 -1
- package/dist/{mcp-DXmBAF09.mjs → mcp-Cw7-Mtkm.mjs} +3 -3
- package/dist/{org-D4J-n07N.mjs → org-RRUxKfRw.mjs} +6 -6
- package/dist/{owner-CfjgcAcM.mjs → owner-GZX-sp-h.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-Dw9JLelr.mjs → project-BsKmk9T7.mjs} +1 -1
- package/dist/{project-CnOrdnOM.mjs → project-C1uq7bV_.mjs} +1 -1
- package/dist/{project-7LL6W_tc.mjs → project-C_YZ-eLI.mjs} +4 -7
- package/dist/{project-CLrBv6tJ.mjs → project-Cj9ULE0a.mjs} +1 -1
- package/dist/{realtime-DQ_gT0q7.mjs → realtime-W-lJ0Vcs.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-CtO_BX-m.mjs → session-BT5NJfbm.mjs} +1 -1
- package/dist/{session-Bmbv2Y2h.mjs → session-BmXeclWC.mjs} +2 -2
- package/dist/{session-configs-C_A0gUf5.d.mts → session-configs-x3OA4CSe.d.mts} +205 -97
- package/dist/{tool-router-BICZScC1.mjs → tool-router-DYPUf-fN.mjs} +1 -1
- package/dist/{toolkits-Cj8oNvQi.mjs → toolkits-DZOZDm-4.mjs} +1 -1
- package/dist/{tools-C-2Nsm32.mjs → tools-BDCRk80t.mjs} +1 -1
- package/dist/{tools-BiyVpJSA.mjs → tools-C0GjPEpP.mjs} +1 -1
- package/dist/{trigger-instances-0GIUz_qu.mjs → trigger-instances-J5frdgzO.mjs} +2 -2
- package/dist/{triggers-DWnL3gjv.mjs → triggers-CnvE7y0L.mjs} +1 -1
- package/dist/{triggers-types-BkigxzlE.mjs → triggers-types-DLVCtuwC.mjs} +1 -1
- package/dist/{usage-RRYqkjLH.mjs → usage-DPxuivP6.mjs} +1 -1
- package/dist/{usage-D9XlIZBX.mjs → usage-DjQg9WIV.mjs} +1 -1
- package/dist/version-DEAhxVwC.d.mts +4 -0
- package/dist/{webhook-endpoints-x3UiV7uH.mjs → webhook-endpoints-BrSjXOf0.mjs} +1 -1
- package/dist/{webhook-subscriptions-_7MTwe1s.mjs → webhook-subscriptions-HT1acmwH.mjs} +1 -1
- package/package.json +2 -2
- package/dist/version-BkHUhokz.d.mts +0 -4
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $r as SessionCreateResponse,
|
|
2
|
-
import { t as VERSION } from "./version-
|
|
3
|
-
export { APIConnectionError, APIConnectionTimeoutError, APIError, type APIErrorBody, APIPromise, APIUserAbortError, AuthenticationError, BadRequestError, 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, type Logger, NotFoundError, PermissionDeniedError, RateLimitError, type RequestOptions, 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 { $r as SessionCreateResponse, Bi as BadRequestError, Ci as FileDeleteResponse, Di as Auth, Ei as Files, Fi as APIConnectionTimeoutError, Gi as PermissionDeniedError, Hi as ConflictError, Ii as APIError, Ji as RequestOptions, Jr as SessionAttachParams, Ki as RateLimitError, Kr as ToolRouter, Li as APIErrorBody, Mi as Credential, Ni as Scope, Pi as APIConnectionError, Qi as ClientIdentity, Qr as SessionCreateParams, Ri as APIUserAbortError, Si as FileDeleteParams, Ti as FileListResponse, Ui as InternalServerError, Vi as ComposioError, Wi as NotFoundError, Xi as Transport, Xr as SessionConfigHistoryParams, Yi as FetchTransportDefaults, Yr as SessionAttachResponse, Zi as createFetchTransport, Zr as SessionConfigHistoryResponse, _i as SessionToolsResponse, a as ClientOptions, ai as SessionLinkParams, bi as FileCreateUploadURLParams, c as LogLevel, ci as SessionPatchResponse, di as SessionRetrieveResponse, ea as APIPromise, ei as SessionDeleteResponse, fi as SessionSearchParams, gi as SessionToolsParams, hi as SessionToolkitsResponse, ii as SessionExecuteResponse, ji as AutoCredentials, ki as AuthMode, l as Logger, li as SessionProxyExecuteParams, mi as SessionToolkitsParams, ni as SessionExecuteMetaResponse, o as Composio, oi as SessionLinkResponse, pi as SessionSearchResponse, qi as UnprocessableEntityError, qr as Session, ri as SessionExecuteParams, s as EnvironmentMap, si as SessionPatchParams, ti as SessionExecuteMetaParams, ui as SessionProxyExecuteResponse, vi as FileCreateDownloadURLParams, wi as FileListParams, xi as FileCreateUploadURLResponse, yi as FileCreateDownloadURLResponse, zi as AuthenticationError } from "./session-configs-x3OA4CSe.mjs";
|
|
2
|
+
import { t as VERSION } from "./version-DEAhxVwC.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, type Logger, 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 { A as
|
|
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, B as unusableKeyError, C as resolveIdentity, D as inspectDeprecatedInputs, E as mergeHeaders, H as assertCredentialTransport, I as isUsableKey, L as resolveAuth, O as inspectDeprecation, P as authFromCredentials, R as resolveScope, S as reservedHeaders, W as parseHTTPURL, 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-DKgGT6Dg.mjs";
|
|
3
|
+
import { t as ApiKeyRevocation } from "./api-key-revocation-JkA4sOGH.mjs";
|
|
4
|
+
import { t as AuthConfigs } from "./auth-configs-RAgN782Z.mjs";
|
|
5
|
+
import { t as Auth$1 } from "./auth-B_K-wdMm.mjs";
|
|
6
|
+
import { t as Cli } from "./cli-Ca5bRiEN.mjs";
|
|
7
|
+
import { t as ConnectedAccounts } from "./connected-accounts-D6NTwvbi.mjs";
|
|
8
|
+
import { t as Custom } from "./custom-DA3ABHnI.mjs";
|
|
9
|
+
import { t as Files$1 } from "./files-DLRmNLRD.mjs";
|
|
10
|
+
import { t as Keyring } from "./keyring-Q8GSieAv.mjs";
|
|
11
|
+
import { t as Link } from "./link-D4dY_eaN.mjs";
|
|
12
|
+
import { t as Logs } from "./logs-Dc63Ju74.mjs";
|
|
13
|
+
import { t as Mcp } from "./mcp-Cw7-Mtkm.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-RRUxKfRw.mjs";
|
|
16
|
+
import { t as Project } from "./project-Cj9ULE0a.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-CeBs4ZE1.mjs";
|
|
19
|
+
import { t as Session } from "./session-BmXeclWC.mjs";
|
|
20
|
+
import { t as ToolRouter } from "./tool-router-DYPUf-fN.mjs";
|
|
21
|
+
import { t as Toolkits } from "./toolkits-DZOZDm-4.mjs";
|
|
22
|
+
import { t as Tools } from "./tools-BDCRk80t.mjs";
|
|
23
|
+
import { t as TriggerInstances } from "./trigger-instances-J5frdgzO.mjs";
|
|
24
|
+
import { t as TriggersTypes } from "./triggers-types-DLVCtuwC.mjs";
|
|
25
|
+
import { t as WebhookEndpoints } from "./webhook-endpoints-BrSjXOf0.mjs";
|
|
26
|
+
import { t as WebhookSubscriptions } from "./webhook-subscriptions-HT1acmwH.mjs";
|
|
27
|
+
import { n as APIPromise, t as GENERATED_DEPRECATED_INPUTS } from "./generated-deprecated-inputs-zx6ml908.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),
|
|
@@ -59,29 +59,16 @@ const environments = {
|
|
|
59
59
|
staging: "https://staging-backend.composio.dev",
|
|
60
60
|
local: "http://localhost:9900"
|
|
61
61
|
};
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
const
|
|
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;
|
|
62
|
+
/** A setting as `fromEnv` reads one: trimmed, and absent when empty. */
|
|
63
|
+
const setting = (environment, name) => environment[name]?.trim() || void 0;
|
|
64
|
+
const parseCustomHeaders = (raw) => {
|
|
78
65
|
const parsed = {};
|
|
79
66
|
for (const line of raw.split("\n")) {
|
|
80
67
|
const colon = line.indexOf(":");
|
|
81
68
|
if (colon >= 0) parsed[line.substring(0, colon).trim()] = line.substring(colon + 1).trim();
|
|
82
69
|
}
|
|
83
70
|
try {
|
|
84
|
-
return mergeHeaders([parsed
|
|
71
|
+
return mergeHeaders([parsed]);
|
|
85
72
|
} catch (cause) {
|
|
86
73
|
throw new ComposioError(`COMPOSIO_CUSTOM_HEADERS contains an invalid header: ${cause instanceof Error ? cause.message : String(cause)}`);
|
|
87
74
|
}
|
|
@@ -100,42 +87,23 @@ const LOG_LEVELS = {
|
|
|
100
87
|
* the default rather than silencing the client or making it shout.
|
|
101
88
|
*/
|
|
102
89
|
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;
|
|
90
|
+
const isCompatCredential = (value) => typeof value === "string" || typeof value === "function";
|
|
91
|
+
const checkCompatKey = (credential, option) => {
|
|
92
|
+
if (typeof credential === "string" && !isUsableKey("ApiKeyAuth", credential)) throw unusableKeyError(`\`${option}\``);
|
|
111
93
|
};
|
|
112
94
|
const resolveClientOptions = (input) => {
|
|
113
|
-
const
|
|
114
|
-
|
|
115
|
-
|
|
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 = {
|
|
95
|
+
const baseURL = input.baseURL ?? null;
|
|
96
|
+
if (baseURL && input.environment) throw new ComposioError("Ambiguous URL; The `baseURL` option and the `environment` option are given. If you want to use the environment you must pass baseURL: null");
|
|
97
|
+
return {
|
|
121
98
|
...input,
|
|
122
|
-
|
|
123
|
-
userApiKey,
|
|
124
|
-
orgApiKey,
|
|
125
|
-
allowInsecureHTTP: input.allowInsecureHTTP ?? readEnvironment("COMPOSIO_ALLOW_INSECURE_HTTP") === "1",
|
|
99
|
+
allowInsecureHTTP: input.allowInsecureHTTP ?? false,
|
|
126
100
|
allowedHTTPOrigin: input.allowedHTTPOrigin ?? null,
|
|
127
101
|
baseURL,
|
|
128
102
|
environment: input.environment ?? "production",
|
|
129
|
-
logLevel: input.logLevel ??
|
|
103
|
+
logLevel: input.logLevel ?? "warn"
|
|
130
104
|
};
|
|
131
|
-
options.defaultHeaders = mergeEnvironmentHeaders(readEnvironment("COMPOSIO_CUSTOM_HEADERS"), input.defaultHeaders);
|
|
132
|
-
if (hasExplicitEnvironment) options[environmentReader] = emptyEnvironmentReader;
|
|
133
|
-
return options;
|
|
134
105
|
};
|
|
135
106
|
var Composio = class Composio {
|
|
136
|
-
apiKey;
|
|
137
|
-
userApiKey;
|
|
138
|
-
orgApiKey;
|
|
139
107
|
baseURL;
|
|
140
108
|
maxRetries;
|
|
141
109
|
timeout;
|
|
@@ -143,6 +111,11 @@ var Composio = class Composio {
|
|
|
143
111
|
logLevel;
|
|
144
112
|
#transport;
|
|
145
113
|
#options;
|
|
114
|
+
#identity;
|
|
115
|
+
#auth;
|
|
116
|
+
#scope;
|
|
117
|
+
#scopeHeaders;
|
|
118
|
+
#reserved;
|
|
146
119
|
/**
|
|
147
120
|
* The (operation, notice) pairs, and separately the (operation, deprecated
|
|
148
121
|
* input set) pairs, this instance has already warned about — one Set shared
|
|
@@ -158,8 +131,19 @@ var Composio = class Composio {
|
|
|
158
131
|
* only so a derived client can join its parent's record.
|
|
159
132
|
*/
|
|
160
133
|
#deprecationSeen = /* @__PURE__ */ new Set();
|
|
161
|
-
constructor(input
|
|
134
|
+
constructor(input) {
|
|
135
|
+
if (typeof input !== "object" || input === null) throw new ComposioError("`new Composio(options)` needs an options object with `auth`.");
|
|
136
|
+
assertNoRemovedCredentialOptions(input);
|
|
162
137
|
const options = resolveClientOptions(input);
|
|
138
|
+
this.#auth = resolveAuth(options.auth, isCompatCredential, checkCompatKey);
|
|
139
|
+
this.#scopeHeaders = resolveScope(options.scope);
|
|
140
|
+
this.#scope = options.scope === void 0 ? void 0 : Object.freeze({ ...options.scope });
|
|
141
|
+
this.#identity = resolveIdentity(options.identity);
|
|
142
|
+
this.#reserved = reservedHeaders(this.#identity, {
|
|
143
|
+
auth: this.#auth.mode !== "none",
|
|
144
|
+
scope: this.#scopeHeaders !== void 0
|
|
145
|
+
});
|
|
146
|
+
assertNoReservedHeaders(options.defaultHeaders, this.#reserved, "defaultHeaders");
|
|
163
147
|
this.baseURL = options.baseURL || environments[options.environment];
|
|
164
148
|
this.timeout = options.timeout ?? Composio.DEFAULT_TIMEOUT;
|
|
165
149
|
this.logger = options.logger ?? console;
|
|
@@ -168,28 +152,85 @@ var Composio = class Composio {
|
|
|
168
152
|
this.#transport = options.transport ?? createFetchTransport();
|
|
169
153
|
options.allowedHTTPOrigin = options.allowInsecureHTTP ? options.allowedHTTPOrigin ?? parseHTTPURL(this.baseURL)?.origin ?? null : null;
|
|
170
154
|
this.#options = options;
|
|
171
|
-
this.
|
|
172
|
-
this.userApiKey = options.userApiKey;
|
|
173
|
-
this.orgApiKey = options.orgApiKey;
|
|
174
|
-
assertCredentialTransport(this.baseURL, this.#credentials(), options.allowedHTTPOrigin);
|
|
155
|
+
assertCredentialTransport(this.baseURL, this.#auth.mode !== "none", options.allowedHTTPOrigin);
|
|
175
156
|
Object.assign(this, createClientResources(this));
|
|
176
157
|
}
|
|
177
158
|
/**
|
|
178
|
-
* Constructs a client from
|
|
159
|
+
* Constructs a client from an environment mapping the caller passes in, such
|
|
160
|
+
* as `process.env`. It reads these and nothing else:
|
|
161
|
+
*
|
|
162
|
+
* - `COMPOSIO_API_KEY`, `COMPOSIO_USER_API_KEY`, `COMPOSIO_ORG_API_KEY`: one
|
|
163
|
+
* set is that fixed mode, several is `Auth.auto`, none is `Auth.none()`;
|
|
164
|
+
* - `COMPOSIO_BASE_URL`, `COMPOSIO_ALLOW_INSECURE_HTTP=1`,
|
|
165
|
+
* `COMPOSIO_LOG_LEVEL`, and `COMPOSIO_CUSTOM_HEADERS` (as `defaultHeaders`).
|
|
179
166
|
*
|
|
180
|
-
*
|
|
181
|
-
*
|
|
182
|
-
*
|
|
183
|
-
* `COMPOSIO_BASE_URL`, and `apiKey: null` disables a mapped API key.
|
|
167
|
+
* `COMPOSIO_ORG_ID` and `COMPOSIO_PROJECT_ID` are not read: `scope` is always
|
|
168
|
+
* an argument. An override replaces the whole field it names, so
|
|
169
|
+
* `{ auth: Auth.none() }` means none whatever the mapping holds.
|
|
184
170
|
*/
|
|
185
|
-
static fromEnv(environment,
|
|
186
|
-
const
|
|
187
|
-
|
|
188
|
-
|
|
171
|
+
static fromEnv(environment, overrides = {}) {
|
|
172
|
+
const read = (name) => setting(environment, name);
|
|
173
|
+
const customHeaders = read("COMPOSIO_CUSTOM_HEADERS");
|
|
174
|
+
const baseURL = read("COMPOSIO_BASE_URL");
|
|
175
|
+
const allowInsecureHTTP = read("COMPOSIO_ALLOW_INSECURE_HTTP") === "1";
|
|
176
|
+
const logLevel = read("COMPOSIO_LOG_LEVEL");
|
|
177
|
+
const mapped = {
|
|
178
|
+
auth: authFromCredentials({
|
|
179
|
+
project: read("COMPOSIO_API_KEY"),
|
|
180
|
+
user: read("COMPOSIO_USER_API_KEY"),
|
|
181
|
+
organization: read("COMPOSIO_ORG_API_KEY")
|
|
182
|
+
}),
|
|
183
|
+
...baseURL !== void 0 && overrides.environment === void 0 ? { baseURL } : {},
|
|
184
|
+
...allowInsecureHTTP ? { allowInsecureHTTP } : {},
|
|
185
|
+
...logLevel !== void 0 ? { logLevel } : {},
|
|
186
|
+
...customHeaders !== void 0 ? { defaultHeaders: parseCustomHeaders(customHeaders) } : {}
|
|
189
187
|
};
|
|
190
|
-
return new this(
|
|
188
|
+
return new this({
|
|
189
|
+
...mapped,
|
|
190
|
+
...overrides
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
/** How this client authenticates: `'none'`, `'project'`, `'user'`, `'organization'` or `'auto'`. */
|
|
194
|
+
get authMode() {
|
|
195
|
+
return this.#auth.mode;
|
|
196
|
+
}
|
|
197
|
+
/** The organization and project this client addresses, or `undefined`. */
|
|
198
|
+
get scope() {
|
|
199
|
+
return this.#scope;
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* The project key `auth` holds, when it is a string; `null` otherwise.
|
|
203
|
+
* @deprecated Read-only since 2.0.0-rc.18 and removed in rc.19; keep your own copy of the key.
|
|
204
|
+
*/
|
|
205
|
+
get apiKey() {
|
|
206
|
+
return this.#heldKey("ApiKeyAuth");
|
|
191
207
|
}
|
|
192
|
-
/**
|
|
208
|
+
/**
|
|
209
|
+
* The user key `auth` holds, when it is a string; `null` otherwise.
|
|
210
|
+
* @deprecated Read-only since 2.0.0-rc.18 and removed in rc.19; keep your own copy of the key.
|
|
211
|
+
*/
|
|
212
|
+
get userApiKey() {
|
|
213
|
+
return this.#heldKey("UserApiKeyAuth");
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* The organization key `auth` holds, when it is a string; `null` otherwise.
|
|
217
|
+
* @deprecated Read-only since 2.0.0-rc.18 and removed in rc.19; keep your own copy of the key.
|
|
218
|
+
*/
|
|
219
|
+
get orgApiKey() {
|
|
220
|
+
return this.#heldKey("OrgApiKeyAuth");
|
|
221
|
+
}
|
|
222
|
+
#heldKey(scheme) {
|
|
223
|
+
const credential = this.#auth.credentials[scheme];
|
|
224
|
+
return typeof credential === "string" ? credential : null;
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Returns a new client from this one's options with `options` merged over
|
|
228
|
+
* them, key by key. Every construction check runs again on the result:
|
|
229
|
+
* `auth` against the origin, the reserved headers against `auth`, `scope`
|
|
230
|
+
* and `identity`, and `allowInsecureHTTP` against a changed `baseURL`.
|
|
231
|
+
* `defaultHeaders` replaces the map rather than merging into it, and
|
|
232
|
+
* `{ scope: undefined }` removes the scope.
|
|
233
|
+
*/
|
|
193
234
|
withOptions(options) {
|
|
194
235
|
const transport = Object.hasOwn(options, "transport") ? options.transport : this.#transport;
|
|
195
236
|
const allowedHTTPOrigin = options.allowInsecureHTTP === true ? void 0 : this.#options.allowedHTTPOrigin;
|
|
@@ -201,9 +242,7 @@ var Composio = class Composio {
|
|
|
201
242
|
timeout: this.timeout,
|
|
202
243
|
logger: this.logger,
|
|
203
244
|
logLevel: this.logLevel,
|
|
204
|
-
|
|
205
|
-
userApiKey: this.userApiKey,
|
|
206
|
-
orgApiKey: this.orgApiKey,
|
|
245
|
+
scope: this.#scope,
|
|
207
246
|
...options,
|
|
208
247
|
allowedHTTPOrigin,
|
|
209
248
|
transport
|
|
@@ -237,14 +276,6 @@ var Composio = class Composio {
|
|
|
237
276
|
request(options) {
|
|
238
277
|
return new APIPromise(makeRequest(this.#kernelConfig(), options));
|
|
239
278
|
}
|
|
240
|
-
/** Read at dispatch, never cached: all three fields are public and mutable. */
|
|
241
|
-
#credentials() {
|
|
242
|
-
return {
|
|
243
|
-
apiKey: this.apiKey,
|
|
244
|
-
userApiKey: this.userApiKey,
|
|
245
|
-
orgApiKey: this.orgApiKey
|
|
246
|
-
};
|
|
247
|
-
}
|
|
248
279
|
#onKernelLog = (level, message, metadata) => {
|
|
249
280
|
this.#emitLog(level, message, metadata);
|
|
250
281
|
};
|
|
@@ -280,7 +311,9 @@ var Composio = class Composio {
|
|
|
280
311
|
const lifecycleLoggingEnabled = LOG_LEVELS[configuredLogLevel] >= LOG_LEVELS.info;
|
|
281
312
|
return {
|
|
282
313
|
baseURL: this.baseURL,
|
|
283
|
-
|
|
314
|
+
auth: this.#auth,
|
|
315
|
+
scope: this.#scopeHeaders,
|
|
316
|
+
reserved: this.#reserved,
|
|
284
317
|
allowedHTTPOrigin: this.#options.allowedHTTPOrigin,
|
|
285
318
|
operations: GENERATED_OPERATIONS,
|
|
286
319
|
maxRetries: this.maxRetries,
|
|
@@ -288,6 +321,7 @@ var Composio = class Composio {
|
|
|
288
321
|
userAgent: `${this.constructor.name}/JS ${VERSION}`,
|
|
289
322
|
transport: this.#transport,
|
|
290
323
|
defaultHeaders: this.#options.defaultHeaders,
|
|
324
|
+
identity: this.#identity,
|
|
291
325
|
...lifecycleLoggingEnabled ? { onLog: this.#onKernelLog } : {},
|
|
292
326
|
onResponse: this.#onKernelResponse,
|
|
293
327
|
onRequest: this.#onKernelRequest
|
|
@@ -344,10 +378,10 @@ Composio.Migration = Migration;
|
|
|
344
378
|
Composio.WebhookSubscriptions = WebhookSubscriptions;
|
|
345
379
|
Composio.WebhookEndpoints = WebhookEndpoints;
|
|
346
380
|
Composio.Org = Org;
|
|
347
|
-
Composio.Auth = Auth;
|
|
381
|
+
Composio.Auth = Auth$1;
|
|
348
382
|
Composio.ApiKeyRevocation = ApiKeyRevocation;
|
|
349
383
|
Composio.Custom = Custom;
|
|
350
384
|
Composio.Keyring = Keyring;
|
|
351
385
|
|
|
352
386
|
//#endregion
|
|
353
|
-
export { APIConnectionError, APIConnectionTimeoutError, APIError, APIPromise, APIUserAbortError, AuthenticationError, BadRequestError, Composio, Composio as default, ComposioError, ConflictError, Files, InternalServerError, NotFoundError, PermissionDeniedError, RateLimitError, Session, ToolRouter, UnprocessableEntityError, VERSION, createFetchTransport };
|
|
387
|
+
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-DKgGT6Dg.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-DKgGT6Dg.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-DKgGT6Dg.mjs";
|
|
2
|
+
import { t as Triggers } from "./triggers-CnvE7y0L.mjs";
|
|
3
|
+
import { t as Tools } from "./tools-C0GjPEpP.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-DKgGT6Dg.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-DKgGT6Dg.mjs";
|
|
2
|
+
import { t as Custom } from "./custom-BBr7KbCv.mjs";
|
|
3
|
+
import { t as Generate } from "./generate-16uLPwUU.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-DKgGT6Dg.mjs";
|
|
2
|
+
import { t as Clanker } from "./clanker-Pgyyh95r.mjs";
|
|
3
|
+
import { t as Consumer } from "./consumer-BP4OyJS0.mjs";
|
|
4
|
+
import { t as Owner } from "./owner-GZX-sp-h.mjs";
|
|
5
|
+
import { t as Project } from "./project-C1uq7bV_.mjs";
|
|
6
|
+
import { t as Usage } from "./usage-DPxuivP6.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 { d as path, n as generatedOperation, y as withOperation } from "./generated-operations-DKgGT6Dg.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-DKgGT6Dg.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-DKgGT6Dg.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 { n as generatedOperation, y as withOperation } from "./generated-operations-DKgGT6Dg.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 ApiKeyRevocationCreateParams, x as ApiKeyRevocationCreateResponse, y as ApiKeyRevocation } from "../session-configs-
|
|
1
|
+
import { b as ApiKeyRevocationCreateParams, x as ApiKeyRevocationCreateResponse, y as ApiKeyRevocation } from "../session-configs-x3OA4CSe.mjs";
|
|
2
2
|
export { ApiKeyRevocation, type ApiKeyRevocationCreateParams, type ApiKeyRevocationCreateResponse };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { S as Auth } from "../../session-configs-
|
|
1
|
+
import { S as Auth } from "../../session-configs-x3OA4CSe.mjs";
|
|
2
2
|
export { Auth };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as Session, S as Auth, w as SessionRetrieveInfoResponse } from "../../session-configs-
|
|
1
|
+
import { C as Session, S as Auth, w as SessionRetrieveInfoResponse } from "../../session-configs-x3OA4CSe.mjs";
|
|
2
2
|
export { Auth, Session, type SessionRetrieveInfoResponse };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as Session, w as SessionRetrieveInfoResponse } from "../../session-configs-
|
|
1
|
+
import { C as Session, w as SessionRetrieveInfoResponse } from "../../session-configs-x3OA4CSe.mjs";
|
|
2
2
|
export { Session, type SessionRetrieveInfoResponse };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Bn as AuthConfigListParams, Gn as AuthConfigUpdateStatusParams, Hn as AuthConfigRetrieveResponse, In as AuthConfigCreateParams, Kn as AuthConfigUpdateStatusResponse, Ln as AuthConfigCreateResponse, Rn as AuthConfigDeleteParams, Un as AuthConfigUpdateParams, Vn as AuthConfigListResponse, Wn as AuthConfigUpdateResponse, qn as AuthConfigs, zn as AuthConfigDeleteResponse } from "../session-configs-
|
|
1
|
+
import { Bn as AuthConfigListParams, Gn as AuthConfigUpdateStatusParams, Hn as AuthConfigRetrieveResponse, In as AuthConfigCreateParams, Kn as AuthConfigUpdateStatusResponse, Ln as AuthConfigCreateResponse, Rn as AuthConfigDeleteParams, Un as AuthConfigUpdateParams, Vn as AuthConfigListResponse, Wn as AuthConfigUpdateResponse, qn as AuthConfigs, zn as AuthConfigDeleteResponse } from "../session-configs-x3OA4CSe.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 Session, S as Auth, w as SessionRetrieveInfoResponse } from "../session-configs-
|
|
1
|
+
import { C as Session, S as Auth, w as SessionRetrieveInfoResponse } from "../session-configs-x3OA4CSe.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-BT5NJfbm.mjs";
|
|
2
|
+
import { t as Auth } from "../auth-B_K-wdMm.mjs";
|
|
3
3
|
import "./auth/index.mjs";
|
|
4
4
|
|
|
5
5
|
export { Auth, Session };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Gt as CliCreateSessionResponse, Ht as CliCreateCodactFailureParams, Kt as CliGetSessionParams, Ut as CliCreateCodactFailureResponse, Vt as Cli, Wt as CliCreateSessionParams, qt as CliGetSessionResponse } from "../../session-configs-
|
|
1
|
+
import { Gt as CliCreateSessionResponse, Ht as CliCreateCodactFailureParams, Kt as CliGetSessionParams, Ut as CliCreateCodactFailureResponse, Vt as Cli, Wt as CliCreateSessionParams, qt as CliGetSessionResponse } from "../../session-configs-x3OA4CSe.mjs";
|
|
2
2
|
export { Cli, CliCreateCodactFailureParams, CliCreateCodactFailureResponse, CliCreateSessionParams, CliCreateSessionResponse, CliGetSessionParams, CliGetSessionResponse };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Gt as CliCreateSessionResponse, Ht as CliCreateCodactFailureParams, Jt as Realtime, Kt as CliGetSessionParams, Ut as CliCreateCodactFailureResponse, Vt as Cli, Wt as CliCreateSessionParams, Xt as RealtimeAuthResponse, Yt as RealtimeAuthParams, Zt as RealtimeCredentialsResponse, qt as CliGetSessionResponse } from "../../session-configs-
|
|
1
|
+
import { Gt as CliCreateSessionResponse, Ht as CliCreateCodactFailureParams, Jt as Realtime, Kt as CliGetSessionParams, Ut as CliCreateCodactFailureResponse, Vt as Cli, Wt as CliCreateSessionParams, Xt as RealtimeAuthResponse, Yt as RealtimeAuthParams, Zt as RealtimeCredentialsResponse, qt as CliGetSessionResponse } from "../../session-configs-x3OA4CSe.mjs";
|
|
2
2
|
export { Cli, type CliCreateCodactFailureParams, type CliCreateCodactFailureResponse, type CliCreateSessionParams, type CliCreateSessionResponse, type CliGetSessionParams, type CliGetSessionResponse, Realtime, type RealtimeAuthParams, type RealtimeAuthResponse, type RealtimeCredentialsResponse };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Jt as Realtime, Xt as RealtimeAuthResponse, Yt as RealtimeAuthParams, Zt as RealtimeCredentialsResponse } from "../../session-configs-
|
|
1
|
+
import { Jt as Realtime, Xt as RealtimeAuthResponse, Yt as RealtimeAuthParams, Zt as RealtimeCredentialsResponse } from "../../session-configs-x3OA4CSe.mjs";
|
|
2
2
|
export { Realtime, RealtimeAuthParams, RealtimeAuthResponse, RealtimeCredentialsResponse };
|