@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
|
@@ -25094,67 +25094,6 @@ declare class APIPromise<T> extends Promise<T> {
|
|
|
25094
25094
|
finally(onfinally?: (() => void) | undefined | null): Promise<T>;
|
|
25095
25095
|
}
|
|
25096
25096
|
//#endregion
|
|
25097
|
-
//#region src/compat/error.d.ts
|
|
25098
|
-
declare class ComposioError extends Error {}
|
|
25099
|
-
/**
|
|
25100
|
-
* The error envelope every Composio API error response carries — the spec's
|
|
25101
|
-
* shared `Error` schema, `{ error: { message, code, slug, status, request_id?,
|
|
25102
|
-
* suggested_fix?, errors? } }`. `APIError.error` stays the raw parsed body
|
|
25103
|
-
* (hard contract: a proxy can answer with anything); {@link APIError.details}
|
|
25104
|
-
* is the same body narrowed to this shape when it has it.
|
|
25105
|
-
*/
|
|
25106
|
-
type APIErrorBody = Error$1;
|
|
25107
|
-
declare class APIError<TStatus extends number | undefined = number | undefined, THeaders extends Headers | undefined = Headers | undefined, TError extends object | undefined = object | undefined> extends ComposioError {
|
|
25108
|
-
/** HTTP status for the response that caused the error. */
|
|
25109
|
-
readonly status: TStatus;
|
|
25110
|
-
/** HTTP headers of the response that caused the error. */
|
|
25111
|
-
readonly headers: THeaders;
|
|
25112
|
-
/** JSON body of the response that caused the error. */
|
|
25113
|
-
readonly error: TError;
|
|
25114
|
-
/**
|
|
25115
|
-
* The body narrowed to the Composio error envelope (`APIErrorBody['error']`),
|
|
25116
|
-
* or `undefined` when the body is not one — so a validation failure's
|
|
25117
|
-
* `errors[]` and `suggested_fix` are reachable without casting `error`.
|
|
25118
|
-
*
|
|
25119
|
-
* Not part of the Stainless surface: a sanctioned superset, like
|
|
25120
|
-
* `ClientOptions.userApiKey`.
|
|
25121
|
-
*/
|
|
25122
|
-
readonly details: APIErrorBody['error'] | undefined;
|
|
25123
|
-
/**
|
|
25124
|
-
* The request id the API assigned, from the `x-request-id` response header
|
|
25125
|
-
* first and the envelope's `request_id` otherwise; `undefined` when neither
|
|
25126
|
-
* is present (connection errors, aborts). Same superset status as `details`.
|
|
25127
|
-
*/
|
|
25128
|
-
readonly requestId: string | undefined;
|
|
25129
|
-
constructor(status: TStatus, error: TError, message: string | undefined, headers: THeaders);
|
|
25130
|
-
private static makeMessage;
|
|
25131
|
-
static generate(status: number | undefined, errorResponse: object | undefined, message: string | undefined, headers: Headers | undefined): APIError;
|
|
25132
|
-
}
|
|
25133
|
-
declare class APIUserAbortError extends APIError<undefined, undefined, undefined> {
|
|
25134
|
-
constructor({ message }?: {
|
|
25135
|
-
message?: string;
|
|
25136
|
-
});
|
|
25137
|
-
}
|
|
25138
|
-
declare class APIConnectionError extends APIError<undefined, undefined, undefined> {
|
|
25139
|
-
constructor({ message, cause }: {
|
|
25140
|
-
message?: string | undefined;
|
|
25141
|
-
cause?: unknown;
|
|
25142
|
-
});
|
|
25143
|
-
}
|
|
25144
|
-
declare class APIConnectionTimeoutError extends APIConnectionError {
|
|
25145
|
-
constructor({ message }?: {
|
|
25146
|
-
message?: string;
|
|
25147
|
-
});
|
|
25148
|
-
}
|
|
25149
|
-
declare class BadRequestError extends APIError<400, Headers> {}
|
|
25150
|
-
declare class AuthenticationError extends APIError<401, Headers> {}
|
|
25151
|
-
declare class PermissionDeniedError extends APIError<403, Headers> {}
|
|
25152
|
-
declare class NotFoundError extends APIError<404, Headers> {}
|
|
25153
|
-
declare class ConflictError extends APIError<409, Headers> {}
|
|
25154
|
-
declare class UnprocessableEntityError extends APIError<422, Headers> {}
|
|
25155
|
-
declare class RateLimitError extends APIError<429, Headers> {}
|
|
25156
|
-
declare class InternalServerError extends APIError<number, Headers> {}
|
|
25157
|
-
//#endregion
|
|
25158
25097
|
//#region src/compat/headers.d.ts
|
|
25159
25098
|
type HeaderValue = string | null | undefined;
|
|
25160
25099
|
/**
|
|
@@ -25235,6 +25174,112 @@ interface FinalRequestOptions extends RequestOptions {
|
|
|
25235
25174
|
body?: unknown;
|
|
25236
25175
|
}
|
|
25237
25176
|
//#endregion
|
|
25177
|
+
//#region src/compat/error.d.ts
|
|
25178
|
+
declare class ComposioError extends Error {}
|
|
25179
|
+
/**
|
|
25180
|
+
* The error envelope every Composio API error response carries — the spec's
|
|
25181
|
+
* shared `Error` schema, `{ error: { message, code, slug, status, request_id?,
|
|
25182
|
+
* suggested_fix?, errors? } }`. `APIError.error` stays the raw parsed body
|
|
25183
|
+
* (hard contract: a proxy can answer with anything); {@link APIError.details}
|
|
25184
|
+
* is the same body narrowed to this shape when it has it.
|
|
25185
|
+
*/
|
|
25186
|
+
type APIErrorBody = Error$1;
|
|
25187
|
+
declare class APIError<TStatus extends number | undefined = number | undefined, THeaders extends Headers | undefined = Headers | undefined, TError extends object | undefined = object | undefined> extends ComposioError {
|
|
25188
|
+
/** HTTP status for the response that caused the error. */
|
|
25189
|
+
readonly status: TStatus;
|
|
25190
|
+
/** HTTP headers of the response that caused the error. */
|
|
25191
|
+
readonly headers: THeaders;
|
|
25192
|
+
/** JSON body of the response that caused the error. */
|
|
25193
|
+
readonly error: TError;
|
|
25194
|
+
/**
|
|
25195
|
+
* The body narrowed to the Composio error envelope (`APIErrorBody['error']`),
|
|
25196
|
+
* or `undefined` when the body is not one — so a validation failure's
|
|
25197
|
+
* `errors[]` and `suggested_fix` are reachable without casting `error`.
|
|
25198
|
+
*
|
|
25199
|
+
* Not part of the Stainless surface: a sanctioned superset, like
|
|
25200
|
+
* `ClientOptions.identity`.
|
|
25201
|
+
*/
|
|
25202
|
+
readonly details: APIErrorBody['error'] | undefined;
|
|
25203
|
+
/**
|
|
25204
|
+
* The request id the API assigned, from the `x-request-id` response header
|
|
25205
|
+
* first and the envelope's `request_id` otherwise; `undefined` when neither
|
|
25206
|
+
* is present (connection errors, aborts). Same superset status as `details`.
|
|
25207
|
+
*/
|
|
25208
|
+
readonly requestId: string | undefined;
|
|
25209
|
+
constructor(status: TStatus, error: TError, message: string | undefined, headers: THeaders);
|
|
25210
|
+
private static makeMessage;
|
|
25211
|
+
static generate(status: number | undefined, errorResponse: object | undefined, message: string | undefined, headers: Headers | undefined): APIError;
|
|
25212
|
+
}
|
|
25213
|
+
declare class APIUserAbortError extends APIError<undefined, undefined, undefined> {
|
|
25214
|
+
constructor({ message }?: {
|
|
25215
|
+
message?: string;
|
|
25216
|
+
});
|
|
25217
|
+
}
|
|
25218
|
+
declare class APIConnectionError extends APIError<undefined, undefined, undefined> {
|
|
25219
|
+
constructor({ message, cause }: {
|
|
25220
|
+
message?: string | undefined;
|
|
25221
|
+
cause?: unknown;
|
|
25222
|
+
});
|
|
25223
|
+
}
|
|
25224
|
+
declare class APIConnectionTimeoutError extends APIConnectionError {
|
|
25225
|
+
constructor({ message }?: {
|
|
25226
|
+
message?: string;
|
|
25227
|
+
});
|
|
25228
|
+
}
|
|
25229
|
+
declare class BadRequestError extends APIError<400, Headers> {}
|
|
25230
|
+
declare class AuthenticationError extends APIError<401, Headers> {}
|
|
25231
|
+
declare class PermissionDeniedError extends APIError<403, Headers> {}
|
|
25232
|
+
declare class NotFoundError extends APIError<404, Headers> {}
|
|
25233
|
+
declare class ConflictError extends APIError<409, Headers> {}
|
|
25234
|
+
declare class UnprocessableEntityError extends APIError<422, Headers> {}
|
|
25235
|
+
declare class RateLimitError extends APIError<429, Headers> {}
|
|
25236
|
+
declare class InternalServerError extends APIError<number, Headers> {}
|
|
25237
|
+
//#endregion
|
|
25238
|
+
//#region src/compat/auth.d.ts
|
|
25239
|
+
/** A key, or a function returning one, called once per call. */
|
|
25240
|
+
type Credential = string | (() => string | PromiseLike<string>);
|
|
25241
|
+
/** At least one of the three. */
|
|
25242
|
+
type AutoCredentials<C = Credential> = Readonly<{
|
|
25243
|
+
project?: C | undefined;
|
|
25244
|
+
user?: C | undefined;
|
|
25245
|
+
organization?: C | undefined;
|
|
25246
|
+
}>;
|
|
25247
|
+
type AuthOf<C> = Readonly<{
|
|
25248
|
+
mode: 'none';
|
|
25249
|
+
}> | Readonly<{
|
|
25250
|
+
mode: 'project';
|
|
25251
|
+
credential: C;
|
|
25252
|
+
}> | Readonly<{
|
|
25253
|
+
mode: 'user';
|
|
25254
|
+
credential: C;
|
|
25255
|
+
}> | Readonly<{
|
|
25256
|
+
mode: 'organization';
|
|
25257
|
+
credential: C;
|
|
25258
|
+
}> | Readonly<{
|
|
25259
|
+
mode: 'auto';
|
|
25260
|
+
credentials: AutoCredentials<C>;
|
|
25261
|
+
}>;
|
|
25262
|
+
type Auth$1 = AuthOf<Credential>;
|
|
25263
|
+
type AuthMode = Auth$1['mode'];
|
|
25264
|
+
type Scope = Readonly<{
|
|
25265
|
+
organizationId: string;
|
|
25266
|
+
projectId?: string | undefined;
|
|
25267
|
+
}> | Readonly<{
|
|
25268
|
+
projectId: string;
|
|
25269
|
+
}>;
|
|
25270
|
+
/**
|
|
25271
|
+
* Generic over the credential so `./effect` can take `Redacted` keys through
|
|
25272
|
+
* the same `Auth.project(key)` spelling.
|
|
25273
|
+
*/
|
|
25274
|
+
interface AuthConstructors<C> {
|
|
25275
|
+
readonly none: () => AuthOf<never>;
|
|
25276
|
+
readonly project: (credential: C) => AuthOf<C>;
|
|
25277
|
+
readonly user: (credential: C) => AuthOf<C>;
|
|
25278
|
+
readonly organization: (credential: C) => AuthOf<C>;
|
|
25279
|
+
readonly auto: (credentials: AutoCredentials<C>) => AuthOf<C>;
|
|
25280
|
+
}
|
|
25281
|
+
declare const Auth$1: AuthConstructors<Credential>;
|
|
25282
|
+
//#endregion
|
|
25238
25283
|
//#region src/compat/resources/tool-router/session/files.d.ts
|
|
25239
25284
|
type FileListQueryGen = NonNullable<GetApiV31ToolRouterSessionBySessionIdMountsByMountIdItemsData['query']>;
|
|
25240
25285
|
interface FileListParams$1 extends FileListQueryGen {
|
|
@@ -27059,67 +27104,27 @@ interface ClientResources {
|
|
|
27059
27104
|
}
|
|
27060
27105
|
//#endregion
|
|
27061
27106
|
//#region src/compat/client.d.ts
|
|
27062
|
-
declare const environments: {
|
|
27063
|
-
production: string;
|
|
27064
|
-
staging: string;
|
|
27065
|
-
local: string;
|
|
27066
|
-
};
|
|
27067
|
-
type Environment = keyof typeof environments;
|
|
27068
27107
|
/** Environment values consumed by {@link Composio.fromEnv}. */
|
|
27069
27108
|
type EnvironmentMap = Readonly<Record<string, string | undefined>>;
|
|
27070
27109
|
type LogLevel = 'off' | 'error' | 'warn' | 'info' | 'debug';
|
|
27071
|
-
|
|
27072
|
-
error: (...args: unknown[]) => void;
|
|
27073
|
-
warn: (...args: unknown[]) => void;
|
|
27074
|
-
info: (...args: unknown[]) => void;
|
|
27075
|
-
debug: (...args: unknown[]) => void;
|
|
27076
|
-
}
|
|
27110
|
+
type LogSink = Pick<Console, 'debug' | 'info' | 'warn' | 'error'>;
|
|
27077
27111
|
/**
|
|
27078
|
-
*
|
|
27112
|
+
* What a client is constructed from. The constructor reads nothing from the
|
|
27113
|
+
* process; {@link Composio.fromEnv} is the one reader of the environment.
|
|
27079
27114
|
*
|
|
27080
27115
|
* `logLevel`/`logger` control request lifecycle records and runtime
|
|
27081
27116
|
* deprecation notices. `logLevel: 'off'` silences both.
|
|
27082
27117
|
*/
|
|
27083
27118
|
interface ClientOptions {
|
|
27084
|
-
/**
|
|
27085
|
-
|
|
27086
|
-
/**
|
|
27087
|
-
|
|
27088
|
-
|
|
27089
|
-
*
|
|
27090
|
-
* Sent only on operations whose spec `security` names `UserApiKeyAuth` and
|
|
27091
|
-
* does *not* name `ApiKeyAuth` — eight operations, including
|
|
27092
|
-
* `auth.session.retrieveInfo` and the `cli.realtime` pair — because the API
|
|
27093
|
-
* rejects a request carrying two credential headers with a 401. Setting this
|
|
27094
|
-
* changes no byte on the other 96.
|
|
27095
|
-
*
|
|
27096
|
-
* Not part of the Stainless surface: a sanctioned superset, like the
|
|
27097
|
-
* credential transport boundary before it.
|
|
27098
|
-
*/
|
|
27099
|
-
userApiKey?: string | null | undefined;
|
|
27100
|
-
/**
|
|
27101
|
-
* Organization API key authentication (`OrgApiKeyAuth`, `x-org-api-key`).
|
|
27102
|
-
* Defaults to `process.env['COMPOSIO_ORG_API_KEY']`.
|
|
27103
|
-
*
|
|
27104
|
-
* Same rule and same superset status as `userApiKey`; it reaches the eight
|
|
27105
|
-
* `OrgApiKeyAuth`-only operations under `org.owner.*`, `org.usage.*` and
|
|
27106
|
-
* `org.clanker.createClaim`.
|
|
27107
|
-
*/
|
|
27108
|
-
orgApiKey?: string | null | undefined;
|
|
27109
|
-
/**
|
|
27110
|
-
* Named environment base URL: `production` (backend.composio.dev),
|
|
27111
|
-
* `staging` (staging-backend.composio.dev), or `local` (localhost:9900).
|
|
27112
|
-
* Mutually exclusive with `baseURL`.
|
|
27113
|
-
*/
|
|
27114
|
-
environment?: Environment | undefined;
|
|
27115
|
-
/** Override the base URL. Defaults to `process.env['COMPOSIO_BASE_URL']`. */
|
|
27119
|
+
/** `Auth.project(key)`, `Auth.user(key)`, `Auth.organization(key)`, `Auth.auto({ ... })` or `Auth.none()`. */
|
|
27120
|
+
auth: Auth$1;
|
|
27121
|
+
/** Sent as `x-org-id` and `x-project-id`. */
|
|
27122
|
+
scope?: Scope | undefined;
|
|
27123
|
+
/** Override the base URL. Defaults to `https://backend.composio.dev`. */
|
|
27116
27124
|
baseURL?: string | null | undefined;
|
|
27117
27125
|
/**
|
|
27118
27126
|
* Allows credentials to be sent to this client's configured plain-HTTP
|
|
27119
27127
|
* origin. The permission is limited to the resolved scheme, host, and port.
|
|
27120
|
-
*
|
|
27121
|
-
* Not part of the Stainless surface: a sanctioned security superset.
|
|
27122
|
-
* Defaults to `process.env['COMPOSIO_ALLOW_INSECURE_HTTP'] === '1'`.
|
|
27123
27128
|
*/
|
|
27124
27129
|
allowInsecureHTTP?: boolean | undefined;
|
|
27125
27130
|
/** Per-request time budget in milliseconds (each retry attempt gets its own). */
|
|
@@ -27142,43 +27147,35 @@ interface ClientOptions {
|
|
|
27142
27147
|
identity?: ClientIdentity | undefined;
|
|
27143
27148
|
/**
|
|
27144
27149
|
* Headers sent on every request; per-request headers win, `null` deletes.
|
|
27145
|
-
*
|
|
27146
|
-
* `x-client-language`) are the client's own and are refused here, as is
|
|
27147
|
-
* every identity header once `identity` is set.
|
|
27150
|
+
* Headers that `identity`, `auth` or `scope` write are refused.
|
|
27148
27151
|
*/
|
|
27149
27152
|
defaultHeaders?: HeadersLike;
|
|
27150
|
-
/** Defaults to `
|
|
27153
|
+
/** Defaults to `'warn'`. */
|
|
27151
27154
|
logLevel?: LogLevel | undefined;
|
|
27152
|
-
/** Defaults to `
|
|
27153
|
-
logger?:
|
|
27155
|
+
/** Where log lines go. Defaults to `console`. */
|
|
27156
|
+
logger?: LogSink | undefined;
|
|
27154
27157
|
}
|
|
27155
27158
|
/**
|
|
27156
|
-
* Stainless-shaped entry point: `new Composio({
|
|
27159
|
+
* Stainless-shaped entry point: `new Composio({ auth: Auth.project(key) }).toolRouter.session.*`.
|
|
27157
27160
|
* Owns HTTP dispatch outright (see `request.ts`); the hey-api generated code
|
|
27158
27161
|
* under `src/generated/` is codegen input only and none of it runs here.
|
|
27159
27162
|
*/
|
|
27160
27163
|
interface Composio extends ClientResources {}
|
|
27161
27164
|
declare class Composio {
|
|
27162
27165
|
#private;
|
|
27163
|
-
|
|
27164
|
-
|
|
27165
|
-
|
|
27166
|
-
|
|
27167
|
-
|
|
27168
|
-
timeout: number;
|
|
27169
|
-
logger: Logger;
|
|
27170
|
-
logLevel: LogLevel | undefined;
|
|
27171
|
-
constructor(input?: ClientOptions);
|
|
27166
|
+
readonly baseURL: string;
|
|
27167
|
+
readonly maxRetries: number;
|
|
27168
|
+
readonly timeout: number;
|
|
27169
|
+
readonly logLevel: LogLevel;
|
|
27170
|
+
constructor(input: ClientOptions);
|
|
27172
27171
|
/**
|
|
27173
|
-
* Constructs a client from
|
|
27174
|
-
*
|
|
27175
|
-
* Unlike the compatibility constructor, this method never reads ambient
|
|
27176
|
-
* process or Deno state. Explicit options replace values from `environment`;
|
|
27177
|
-
* in particular, an explicit named environment replaces
|
|
27178
|
-
* `COMPOSIO_BASE_URL`, and `apiKey: null` disables a mapped API key.
|
|
27172
|
+
* Constructs a client from `environment` (such as `process.env`), the only
|
|
27173
|
+
* place a client reads `COMPOSIO_*`. Each override replaces the field it names.
|
|
27179
27174
|
*/
|
|
27180
|
-
static fromEnv<T extends typeof Composio>(this: T, environment: EnvironmentMap,
|
|
27181
|
-
|
|
27175
|
+
static fromEnv<T extends typeof Composio>(this: T, environment: EnvironmentMap, overrides?: Partial<ClientOptions>): InstanceType<T>;
|
|
27176
|
+
get authMode(): AuthMode;
|
|
27177
|
+
get scope(): Scope | undefined;
|
|
27178
|
+
/** A new client with `options` merged over this one's, key by key, validated as a constructor call is. */
|
|
27182
27179
|
withOptions(options: Partial<ClientOptions>): this;
|
|
27183
27180
|
get<Rsp>(path: string, opts?: RequestOptions & {
|
|
27184
27181
|
query?: Record<string, unknown> | null;
|
|
@@ -27277,4 +27274,4 @@ declare namespace SessionConfigs {
|
|
|
27277
27274
|
export { type SessionConfigsRetrieveResponse, type SessionConfigsListResponse, type SessionConfigsListParams };
|
|
27278
27275
|
}
|
|
27279
27276
|
//#endregion
|
|
27280
|
-
export {
|
|
27277
|
+
export { ProjectRetrieveResponse as $, APIPromise as $i, ToolkitRetrieveMultiParams as $n, SessionDeleteResponse as $r, McpCreateInstanceResponse as $t, Usage as A, AutoCredentials as Ai, TriggersTypeListResponse as An, Files as Ar, Logs as At, ConsumerListConnectedToolkitsResponse as B, ComposioError as Bi, AuthConfigListResponse as Bn, ToolRetrieveParams as Br, Cli as Bt, SessionRetrieveInfoResponse as C, FileListParams$1 as Ci, TriggerInstanceUpsertResponse as Cn, ConnectedAccountUpdateStatusParams as Cr, UsageRetrieveParams$1 as Ct, Clanker as D, AuthConstructors as Di, ManageUpdateParams as Dn, FileCreatePresignedURLResponse as Dr, LogCreateToolExecutionParams as Dt, OrgListResponse as E, Auth$1 as Ei, ManageDeleteResponse as En, FileCreatePresignedURLParams as Er, UsageRetrieveSummaryResponse$1 as Et, Project$1 as F, APIError as Fi, AuthConfigCreateParams as Fn, ToolListParams$1 as Fr, Tools as Ft, Project$3 as G, RateLimitError as Gi, AuthConfigUpdateStatusResponse as Gn, ToolRouter as Gr, CliGetSessionParams as Gt, ProjectResolveParams as H, InternalServerError as Hi, AuthConfigUpdateParams as Hn, ToolRetrieveRequiredScopesResponse as Hr, CliCreateCodactFailureResponse as Ht, ProjectListParams as I, APIErrorBody as Ii, AuthConfigCreateResponse as In, ToolListResponse$1 as Ir, TriggerListParams as It, ProjectDeleteParams as J, FetchTransportDefaults as Ji, ToolkitListResponse as Jn, SessionAttachResponse as Jr, RealtimeAuthParams as Jt, ProjectCreateParams as K, UnprocessableEntityError as Ki, AuthConfigs as Kn, Session$1 as Kr, CliGetSessionResponse as Kt, ProjectListResponse as L, APIUserAbortError as Li, AuthConfigDeleteParams as Ln, ToolProxyParams as Lr, TriggerListResponse as Lt, UsageRetrieveResponse as M, Scope as Mi, TriggersTypeRetrieveParams as Mn, ToolExecuteResponse as Mr, ToolListParams as Mt, UsageRetrieveSummaryParams as N, APIConnectionError as Ni, TriggersTypeRetrieveResponse as Nn, ToolGetInputParams as Nr, ToolListResponse as Nt, ClankerCreateClaimParams as O, AuthMode as Oi, ManageUpdateResponse as On, FileListParams as Or, LogCreateToolExecutionResponse as Ot, UsageRetrieveSummaryResponse as P, APIConnectionTimeoutError as Pi, TriggersTypes as Pn, ToolGetInputResponse as Pr, ToolRetrieveResponse as Pt, ProjectRegenerateAPIKeyResponse as Q, HeadersLike as Qi, ToolkitRetrieveChangelogResponse as Qn, SessionCreateResponse as Qr, McpCreateInstanceParams as Qt, Consumer as R, AuthenticationError as Ri, AuthConfigDeleteResponse as Rn, ToolProxyResponse as Rr, TriggerRetrieveResponse as Rt, Session as S, FileDeleteResponse as Si, TriggerInstanceUpsertParams as Sn, ConnectedAccountRevokeResponse as Sr, Usage$1 as St, OrgListParams as T, Files$1 as Ti, Manage as Tn, ConnectedAccounts as Tr, UsageRetrieveSummaryParams$1 as Tt, ProjectResolveResponse as U, NotFoundError as Ui, AuthConfigUpdateResponse as Un, ToolRetrieveResponse$1 as Ur, CliCreateSessionParams as Ut, Project$2 as V, ConflictError as Vi, AuthConfigRetrieveResponse as Vn, ToolRetrieveRequiredScopesParams as Vr, CliCreateCodactFailureParams as Vt, Owner as W, PermissionDeniedError as Wi, AuthConfigUpdateStatusParams as Wn, Tools$1 as Wr, CliCreateSessionResponse as Wt, ProjectListParams$1 as X, createFetchTransport as Xi, ToolkitRecommendScopesResponse as Xn, SessionConfigHistoryResponse as Xr, RealtimeCredentialsResponse as Xt, ProjectDeleteResponse as Y, Transport as Yi, ToolkitRecommendScopesParams as Yn, SessionConfigHistoryParams as Yr, RealtimeAuthResponse as Yt, ProjectListResponse$1 as Z, ClientIdentity as Zi, ToolkitRetrieveCategoriesResponse as Zn, SessionCreateParams as Zr, Mcp as Zt, CustomUpsertResponse as _, FileCreateDownloadURLParams as _i, Custom$1 as _n, ConnectedAccountPatchParams as _r, WebhookSubscriptionRotateSecretResponse as _t, ClientOptions as a, SessionLinkResponse as ai, McpListInstancesParams as an, Toolkits as ar, WebhookEndpointReplaceResponse as at, ApiKeyRevocationCreateResponse as b, FileCreateUploadURLResponse as bi, TriggerInstanceListActiveParams as bn, ConnectedAccountRefreshResponse as br, WebhookSubscriptions as bt, LogLevel as c, SessionProxyExecuteParams as ci, McpListResponse as cn, LinkCreateResponse as cr, WebhookEndpointUpdateResponse as ct, Custom as d, SessionSearchParams as di, McpRetrieveResponse as dn, ConnectedAccountCreateParams as dr, WebhookSubscriptionCreateResponse as dt, SessionExecuteMetaParams as ei, McpCreateParams as en, ToolkitRetrieveMultiResponse as er, WebhookEndpointCreateParams as et, CustomDeleteToolkitParams as f, SessionSearchResponse as fi, McpUpdateParams as fn, ConnectedAccountCreateResponse as fr, WebhookSubscriptionDeleteResponse as ft, CustomUpsertParams as g, SessionToolsResponse as gi, GenerateURLResponse as gn, ConnectedAccountListResponse as gr, WebhookSubscriptionRetrieveResponse as gt, CustomSyncResponse as h, SessionToolsParams as hi, GenerateURLParams as hn, ConnectedAccountListParams as hr, WebhookSubscriptionListResponse as ht, SessionConfigsRetrieveResponse as i, SessionLinkParams as ii, McpDeleteResponse as in, ToolkitRetrieveScopesGrantContextResponse as ir, WebhookEndpointReplaceParams as it, UsageRetrieveParams as j, Credential as ji, TriggersTypeRetrieveEnumResponse as jn, ToolExecuteParams as jr, ToolListFieldsResponse as jt, ClankerCreateClaimResponse as k, AuthOf as ki, TriggersTypeListParams as kn, FileListResponse as kr, LogRetrieveToolExecutionResponse as kt, Keyring as l, SessionProxyExecuteResponse as li, McpRetrieveAppParams as ln, ConnectedAccountCompleteAuthParams as lr, WebhookEndpoints as lt, CustomSyncParams as m, SessionToolkitsResponse as mi, Generate as mn, ConnectedAccountDeleteResponse as mr, WebhookSubscriptionListParams as mt, SessionConfigsListParams as n, SessionExecuteParams as ni, McpDeleteInstanceParams as nn, ToolkitRetrieveResponse as nr, WebhookEndpointListParams as nt, Composio as o, SessionPatchParams as oi, McpListInstancesResponse as on, Link as or, WebhookEndpointRetrieveResponse as ot, CustomDeleteToolkitResponse as p, SessionToolkitsParams as pi, McpUpdateResponse as pn, ConnectedAccountDeleteParams as pr, WebhookSubscriptionListEventTypesResponse as pt, ProjectCreateResponse as q, RequestOptions as qi, ToolkitListParams as qn, SessionAttachParams as qr, Realtime as qt, SessionConfigsListResponse as r, SessionExecuteResponse as ri, McpDeleteInstanceResponse as rn, ToolkitRetrieveScopesGrantContextParams as rr, WebhookEndpointListResponse as rt, EnvironmentMap as s, SessionPatchResponse as si, McpListParams as sn, LinkCreateParams as sr, WebhookEndpointUpdateParams as st, SessionConfigs as t, SessionExecuteMetaResponse as ti, McpCreateResponse as tn, ToolkitRetrieveParams as tr, WebhookEndpointCreateResponse as tt, KeyringListTransferKeysResponse as u, SessionRetrieveResponse as ui, McpRetrieveAppResponse as un, ConnectedAccountCompleteAuthResponse as ur, WebhookSubscriptionCreateParams as ut, ApiKeyRevocation as v, FileCreateDownloadURLResponse as vi, CustomCreateParams as vn, ConnectedAccountPatchResponse as vr, WebhookSubscriptionUpdateParams as vt, Org as w, FileListResponse$1 as wi, TriggerInstances as wn, ConnectedAccountUpdateStatusResponse as wr, UsageRetrieveResponse$1 as wt, Auth as x, FileDeleteParams as xi, TriggerInstanceListActiveResponse as xn, ConnectedAccountRetrieveResponse as xr, Project$4 as xt, ApiKeyRevocationCreateParams as y, FileCreateUploadURLParams as yi, CustomCreateResponse as yn, ConnectedAccountRefreshParams as yr, WebhookSubscriptionUpdateResponse as yt, ConsumerListConnectedToolkitsParams as z, BadRequestError as zi, AuthConfigListParams as zn, ToolRetrieveEnumResponse as zr, Triggers as zt };
|
|
@@ -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/toolkits.ts
|
|
4
4
|
const OP_RETRIEVE = generatedOperation("toolkits.retrieve");
|
|
@@ -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/logs/tools.ts
|
|
4
4
|
const OP_RETRIEVE = generatedOperation("logs.tools.retrieve");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { E as mergeHeaders, d as path, n as generatedOperation, y as withOperation } from "./generated-operations-Dv7pAKDT.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/compat/resources/tools.ts
|
|
4
4
|
const OP_RETRIEVE = generatedOperation("tools.retrieve");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as Manage } from "./manage-
|
|
1
|
+
import { d as path, n as generatedOperation, y as withOperation } from "./generated-operations-Dv7pAKDT.mjs";
|
|
2
|
+
import { t as Manage } from "./manage-CeB03gO8.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/compat/resources/trigger-instances/trigger-instances.ts
|
|
5
5
|
const OP_LIST_ACTIVE = generatedOperation("triggerInstances.listActive");
|
|
@@ -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/logs/triggers.ts
|
|
4
4
|
const OP_RETRIEVE = generatedOperation("logs.triggers.retrieve");
|
|
@@ -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/triggers-types.ts
|
|
4
4
|
const OP_RETRIEVE = generatedOperation("triggersTypes.retrieve");
|
|
@@ -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/project/usage.ts
|
|
4
4
|
const OP_RETRIEVE = generatedOperation("project.usage.retrieve");
|
|
@@ -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/usage.ts
|
|
4
4
|
const OP_RETRIEVE = generatedOperation("org.usage.retrieve");
|
|
@@ -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/webhook-endpoints.ts
|
|
4
4
|
const OP_CREATE = generatedOperation("webhookEndpoints.create");
|
|
@@ -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/webhook-subscriptions.ts
|
|
4
4
|
const OP_CREATE = generatedOperation("webhookSubscriptions.create");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@composio/client",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.19",
|
|
4
4
|
"description": "Composio API client for TypeScript, generated from the v3.1 OpenAPI spec with hey-api",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
"@types/node": "^26.1.0",
|
|
115
115
|
"@typescript/native-preview": "^7.0.0-dev.20260703.1",
|
|
116
116
|
"@vitest/eslint-plugin": "^1.6.26",
|
|
117
|
-
"composio-client-previous": "npm:@composio/client@2.0.0-rc.
|
|
117
|
+
"composio-client-previous": "npm:@composio/client@2.0.0-rc.18",
|
|
118
118
|
"composio-client-stainless": "npm:@composio/client@0.1.0-alpha.76",
|
|
119
119
|
"effect": "4.0.3",
|
|
120
120
|
"eslint": "^9.39.4",
|