@composio/client 0.1.0-alpha.14 → 0.1.0-alpha.16
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/CHANGELOG.md +43 -0
- package/README.md +12 -24
- package/client.d.mts +7 -7
- package/client.d.mts.map +1 -1
- package/client.d.ts +7 -7
- package/client.d.ts.map +1 -1
- package/client.js +3 -3
- package/client.js.map +1 -1
- package/client.mjs +3 -3
- package/client.mjs.map +1 -1
- package/internal/detect-platform.js +3 -3
- package/internal/detect-platform.js.map +1 -1
- package/internal/detect-platform.mjs +3 -3
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/shim-types.d.mts +11 -22
- package/internal/shim-types.d.mts.map +1 -0
- package/internal/shim-types.d.ts +11 -22
- package/internal/shim-types.d.ts.map +1 -0
- package/internal/shim-types.js +4 -0
- package/internal/shim-types.js.map +1 -0
- package/internal/shim-types.mjs +3 -0
- package/internal/shim-types.mjs.map +1 -0
- package/internal/shims.d.mts +2 -2
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +2 -2
- package/internal/shims.d.ts.map +1 -1
- package/package.json +1 -4
- package/resources/auth-configs.d.mts +3 -3
- package/resources/auth-configs.d.mts.map +1 -1
- package/resources/auth-configs.d.ts +3 -3
- package/resources/auth-configs.d.ts.map +1 -1
- package/resources/connected-accounts.d.mts +5262 -52
- package/resources/connected-accounts.d.mts.map +1 -1
- package/resources/connected-accounts.d.ts +5262 -52
- package/resources/connected-accounts.d.ts.map +1 -1
- package/resources/index.d.mts +3 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/mcp/index.d.mts +1 -1
- package/resources/mcp/index.d.mts.map +1 -1
- package/resources/mcp/index.d.ts +1 -1
- package/resources/mcp/index.d.ts.map +1 -1
- package/resources/mcp/index.js.map +1 -1
- package/resources/mcp/index.mjs.map +1 -1
- package/resources/mcp/mcp.d.mts +99 -1
- package/resources/mcp/mcp.d.mts.map +1 -1
- package/resources/mcp/mcp.d.ts +99 -1
- package/resources/mcp/mcp.d.ts.map +1 -1
- package/resources/mcp/mcp.js +22 -0
- package/resources/mcp/mcp.js.map +1 -1
- package/resources/mcp/mcp.mjs +22 -0
- package/resources/mcp/mcp.mjs.map +1 -1
- package/resources/org/project/api-keys.d.mts +0 -15
- package/resources/org/project/api-keys.d.mts.map +1 -1
- package/resources/org/project/api-keys.d.ts +0 -15
- package/resources/org/project/api-keys.d.ts.map +1 -1
- package/resources/tools.d.mts +4 -5
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +4 -5
- package/resources/tools.d.ts.map +1 -1
- package/resources/trigger-instances/index.d.mts +2 -1
- package/resources/trigger-instances/index.d.mts.map +1 -1
- package/resources/trigger-instances/index.d.ts +2 -1
- package/resources/trigger-instances/index.d.ts.map +1 -1
- package/resources/trigger-instances/index.js +3 -1
- package/resources/trigger-instances/index.js.map +1 -1
- package/resources/trigger-instances/index.mjs +1 -0
- package/resources/trigger-instances/index.mjs.map +1 -1
- package/resources/trigger-instances/manage.d.mts +26 -0
- package/resources/trigger-instances/manage.d.mts.map +1 -0
- package/resources/trigger-instances/manage.d.ts +26 -0
- package/resources/trigger-instances/manage.d.ts.map +1 -0
- package/resources/trigger-instances/manage.js +16 -0
- package/resources/trigger-instances/manage.js.map +1 -0
- package/resources/trigger-instances/manage.mjs +12 -0
- package/resources/trigger-instances/manage.mjs.map +1 -0
- package/resources/trigger-instances/trigger-instances.d.mts +15 -68
- package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.ts +15 -68
- package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
- package/resources/trigger-instances/trigger-instances.js +4 -7
- package/resources/trigger-instances/trigger-instances.js.map +1 -1
- package/resources/trigger-instances/trigger-instances.mjs +4 -7
- package/resources/trigger-instances/trigger-instances.mjs.map +1 -1
- package/resources/v3/admin.d.mts +100 -0
- package/resources/v3/admin.d.mts.map +1 -0
- package/resources/v3/admin.d.ts +100 -0
- package/resources/v3/admin.d.ts.map +1 -0
- package/resources/v3/admin.js +54 -0
- package/resources/v3/admin.js.map +1 -0
- package/resources/v3/admin.mjs +50 -0
- package/resources/v3/admin.mjs.map +1 -0
- package/resources/v3/auth/auth.d.mts +10 -0
- package/resources/v3/auth/auth.d.mts.map +1 -0
- package/resources/v3/auth/auth.d.ts +10 -0
- package/resources/v3/auth/auth.d.ts.map +1 -0
- package/resources/{auth → v3/auth}/auth.js +2 -2
- package/resources/v3/auth/auth.js.map +1 -0
- package/resources/{auth → v3/auth}/auth.mjs +1 -1
- package/resources/v3/auth/auth.mjs.map +1 -0
- package/resources/v3/auth/index.d.mts +3 -0
- package/resources/v3/auth/index.d.mts.map +1 -0
- package/resources/v3/auth/index.d.ts +3 -0
- package/resources/v3/auth/index.d.ts.map +1 -0
- package/resources/v3/auth/index.js.map +1 -0
- package/resources/v3/auth/index.mjs.map +1 -0
- package/resources/{auth → v3/auth}/session.d.mts +16 -10
- package/resources/v3/auth/session.d.mts.map +1 -0
- package/resources/{auth → v3/auth}/session.d.ts +16 -10
- package/resources/v3/auth/session.d.ts.map +1 -0
- package/resources/{auth → v3/auth}/session.js +8 -2
- package/resources/v3/auth/session.js.map +1 -0
- package/resources/{auth → v3/auth}/session.mjs +8 -2
- package/resources/v3/auth/session.mjs.map +1 -0
- package/resources/{auth.d.mts.map → v3/auth.d.mts.map} +1 -1
- package/resources/v3/auth.d.ts.map +1 -0
- package/resources/{auth.js → v3/auth.js} +1 -1
- package/resources/v3/auth.js.map +1 -0
- package/resources/v3/auth.mjs.map +1 -0
- package/resources/v3/cli.d.mts +167 -0
- package/resources/v3/cli.d.mts.map +1 -0
- package/resources/v3/cli.d.ts +167 -0
- package/resources/v3/cli.d.ts.map +1 -0
- package/resources/v3/cli.js +55 -0
- package/resources/v3/cli.js.map +1 -0
- package/resources/v3/cli.mjs +51 -0
- package/resources/v3/cli.mjs.map +1 -0
- package/resources/v3/index.d.mts +6 -0
- package/resources/v3/index.d.mts.map +1 -0
- package/resources/v3/index.d.ts +6 -0
- package/resources/v3/index.d.ts.map +1 -0
- package/resources/v3/index.js +15 -0
- package/resources/v3/index.js.map +1 -0
- package/resources/v3/index.mjs +7 -0
- package/resources/v3/index.mjs.map +1 -0
- package/resources/v3/internal/action-execution.d.mts +153 -0
- package/resources/v3/internal/action-execution.d.mts.map +1 -0
- package/resources/v3/internal/action-execution.d.ts +153 -0
- package/resources/v3/internal/action-execution.d.ts.map +1 -0
- package/resources/v3/internal/action-execution.js +38 -0
- package/resources/v3/internal/action-execution.js.map +1 -0
- package/resources/v3/internal/action-execution.mjs +34 -0
- package/resources/v3/internal/action-execution.mjs.map +1 -0
- package/resources/v3/internal/index.d.mts +4 -0
- package/resources/v3/internal/index.d.mts.map +1 -0
- package/resources/v3/internal/index.d.ts +4 -0
- package/resources/v3/internal/index.d.ts.map +1 -0
- package/resources/v3/internal/index.js +11 -0
- package/resources/v3/internal/index.js.map +1 -0
- package/resources/v3/internal/index.mjs +5 -0
- package/resources/v3/internal/index.mjs.map +1 -0
- package/resources/v3/internal/internal.d.mts +14 -0
- package/resources/v3/internal/internal.d.mts.map +1 -0
- package/resources/v3/internal/internal.d.ts +14 -0
- package/resources/v3/internal/internal.d.ts.map +1 -0
- package/resources/v3/internal/internal.js +21 -0
- package/resources/v3/internal/internal.js.map +1 -0
- package/resources/v3/internal/internal.mjs +16 -0
- package/resources/v3/internal/internal.mjs.map +1 -0
- package/resources/v3/internal/trigger.d.mts +84 -0
- package/resources/v3/internal/trigger.d.mts.map +1 -0
- package/resources/v3/internal/trigger.d.ts +84 -0
- package/resources/v3/internal/trigger.d.ts.map +1 -0
- package/resources/v3/internal/trigger.js +23 -0
- package/resources/v3/internal/trigger.js.map +1 -0
- package/resources/v3/internal/trigger.mjs +19 -0
- package/resources/v3/internal/trigger.mjs.map +1 -0
- package/resources/v3/internal.d.mts +2 -0
- package/resources/v3/internal.d.mts.map +1 -0
- package/resources/v3/internal.d.ts +2 -0
- package/resources/v3/internal.d.ts.map +1 -0
- package/resources/v3/internal.js +6 -0
- package/resources/v3/internal.js.map +1 -0
- package/resources/v3/internal.mjs +3 -0
- package/resources/v3/internal.mjs.map +1 -0
- package/resources/v3/v3.d.mts +22 -0
- package/resources/v3/v3.d.mts.map +1 -0
- package/resources/v3/v3.d.ts +22 -0
- package/resources/v3/v3.d.ts.map +1 -0
- package/resources/v3/v3.js +29 -0
- package/resources/v3/v3.js.map +1 -0
- package/resources/v3/v3.mjs +24 -0
- package/resources/v3/v3.mjs.map +1 -0
- package/resources/v3.d.mts +2 -0
- package/resources/v3.d.mts.map +1 -0
- package/resources/v3.d.ts +2 -0
- package/resources/v3.d.ts.map +1 -0
- package/resources/v3.js +6 -0
- package/resources/v3.js.map +1 -0
- package/resources/v3.mjs +3 -0
- package/resources/v3.mjs.map +1 -0
- package/src/client.ts +9 -11
- package/src/internal/detect-platform.ts +3 -3
- package/src/internal/shim-types.ts +26 -0
- package/src/internal/shims.ts +2 -2
- package/src/resources/auth-configs.ts +0 -3
- package/src/resources/connected-accounts.ts +10261 -298
- package/src/resources/index.ts +3 -4
- package/src/resources/mcp/index.ts +2 -0
- package/src/resources/mcp/mcp.ts +128 -0
- package/src/resources/org/project/api-keys.ts +0 -18
- package/src/resources/tools.ts +5 -6
- package/src/resources/trigger-instances/index.ts +6 -3
- package/src/resources/trigger-instances/manage.ts +46 -0
- package/src/resources/trigger-instances/trigger-instances.ts +21 -87
- package/src/resources/v3/admin.ts +141 -0
- package/src/resources/{auth → v3/auth}/auth.ts +3 -3
- package/src/resources/{auth → v3/auth}/index.ts +1 -1
- package/src/resources/{auth → v3/auth}/session.ts +16 -10
- package/src/resources/v3/cli.ts +209 -0
- package/src/resources/v3/index.ts +20 -0
- package/src/resources/v3/internal/action-execution.ts +236 -0
- package/src/resources/v3/internal/index.ts +10 -0
- package/src/resources/v3/internal/internal.ts +35 -0
- package/src/resources/v3/internal/trigger.ts +122 -0
- package/src/resources/v3/internal.ts +3 -0
- package/src/resources/v3/v3.ts +59 -0
- package/src/resources/v3.ts +3 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/auth/auth.d.mts +0 -10
- package/resources/auth/auth.d.mts.map +0 -1
- package/resources/auth/auth.d.ts +0 -10
- package/resources/auth/auth.d.ts.map +0 -1
- package/resources/auth/auth.js.map +0 -1
- package/resources/auth/auth.mjs.map +0 -1
- package/resources/auth/index.d.mts +0 -3
- package/resources/auth/index.d.mts.map +0 -1
- package/resources/auth/index.d.ts +0 -3
- package/resources/auth/index.d.ts.map +0 -1
- package/resources/auth/index.js.map +0 -1
- package/resources/auth/index.mjs.map +0 -1
- package/resources/auth/session.d.mts.map +0 -1
- package/resources/auth/session.d.ts.map +0 -1
- package/resources/auth/session.js.map +0 -1
- package/resources/auth/session.mjs.map +0 -1
- package/resources/auth.d.ts.map +0 -1
- package/resources/auth.js.map +0 -1
- package/resources/auth.mjs.map +0 -1
- package/src/internal/shim-types.d.ts +0 -28
- /package/resources/{auth → v3/auth}/index.js +0 -0
- /package/resources/{auth → v3/auth}/index.mjs +0 -0
- /package/resources/{auth.d.mts → v3/auth.d.mts} +0 -0
- /package/resources/{auth.d.ts → v3/auth.d.ts} +0 -0
- /package/resources/{auth.mjs → v3/auth.mjs} +0 -0
- /package/src/resources/{auth.ts → v3/auth.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../src/resources/v3/internal.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8DAAiC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal.mjs","sourceRoot":"","sources":["../../src/resources/v3/internal.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as AdminAPI from "./admin.mjs";
|
|
3
|
+
import { Admin, AdminListConnectionsParams, AdminListConnectionsResponse, AdminRefreshAuthTokensParams, AdminRefreshAuthTokensResponse } from "./admin.mjs";
|
|
4
|
+
import * as CliAPI from "./cli.mjs";
|
|
5
|
+
import { Cli, CliCreateSessionResponse, CliLinkSessionParams, CliLinkSessionResponse, CliRetrieveSessionParams, CliRetrieveSessionResponse } from "./cli.mjs";
|
|
6
|
+
import * as AuthAPI from "./auth/auth.mjs";
|
|
7
|
+
import { Auth } from "./auth/auth.mjs";
|
|
8
|
+
import * as InternalAPI from "./internal/internal.mjs";
|
|
9
|
+
import { Internal } from "./internal/internal.mjs";
|
|
10
|
+
export declare class V3 extends APIResource {
|
|
11
|
+
auth: AuthAPI.Auth;
|
|
12
|
+
admin: AdminAPI.Admin;
|
|
13
|
+
cli: CliAPI.Cli;
|
|
14
|
+
internal: InternalAPI.Internal;
|
|
15
|
+
}
|
|
16
|
+
export declare namespace V3 {
|
|
17
|
+
export { Auth as Auth };
|
|
18
|
+
export { Admin as Admin, type AdminListConnectionsResponse as AdminListConnectionsResponse, type AdminRefreshAuthTokensResponse as AdminRefreshAuthTokensResponse, type AdminListConnectionsParams as AdminListConnectionsParams, type AdminRefreshAuthTokensParams as AdminRefreshAuthTokensParams, };
|
|
19
|
+
export { Cli as Cli, type CliCreateSessionResponse as CliCreateSessionResponse, type CliLinkSessionResponse as CliLinkSessionResponse, type CliRetrieveSessionResponse as CliRetrieveSessionResponse, type CliLinkSessionParams as CliLinkSessionParams, type CliRetrieveSessionParams as CliRetrieveSessionParams, };
|
|
20
|
+
export { Internal as Internal };
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=v3.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v3.d.mts","sourceRoot":"","sources":["../../src/resources/v3/v3.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EACL,KAAK,EACL,0BAA0B,EAC1B,4BAA4B,EAC5B,4BAA4B,EAC5B,8BAA8B,EAC/B;OACM,KAAK,MAAM;OACX,EACL,GAAG,EACH,wBAAwB,EACxB,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACxB,0BAA0B,EAC3B;OACM,KAAK,OAAO;OACZ,EAAE,IAAI,EAAE;OACR,KAAK,WAAW;OAChB,EAAE,QAAQ,EAAE;AAEnB,qBAAa,EAAG,SAAQ,WAAW;IACjC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;IACpD,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IACzD,GAAG,EAAE,MAAM,CAAC,GAAG,CAAgC;IAC/C,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;CACzE;AAOD,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EAAE,IAAI,IAAI,IAAI,EAAE,CAAC;IAExB,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;IAEF,OAAO,EACL,GAAG,IAAI,GAAG,EACV,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;IAEF,OAAO,EAAE,QAAQ,IAAI,QAAQ,EAAE,CAAC;CACjC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as AdminAPI from "./admin.js";
|
|
3
|
+
import { Admin, AdminListConnectionsParams, AdminListConnectionsResponse, AdminRefreshAuthTokensParams, AdminRefreshAuthTokensResponse } from "./admin.js";
|
|
4
|
+
import * as CliAPI from "./cli.js";
|
|
5
|
+
import { Cli, CliCreateSessionResponse, CliLinkSessionParams, CliLinkSessionResponse, CliRetrieveSessionParams, CliRetrieveSessionResponse } from "./cli.js";
|
|
6
|
+
import * as AuthAPI from "./auth/auth.js";
|
|
7
|
+
import { Auth } from "./auth/auth.js";
|
|
8
|
+
import * as InternalAPI from "./internal/internal.js";
|
|
9
|
+
import { Internal } from "./internal/internal.js";
|
|
10
|
+
export declare class V3 extends APIResource {
|
|
11
|
+
auth: AuthAPI.Auth;
|
|
12
|
+
admin: AdminAPI.Admin;
|
|
13
|
+
cli: CliAPI.Cli;
|
|
14
|
+
internal: InternalAPI.Internal;
|
|
15
|
+
}
|
|
16
|
+
export declare namespace V3 {
|
|
17
|
+
export { Auth as Auth };
|
|
18
|
+
export { Admin as Admin, type AdminListConnectionsResponse as AdminListConnectionsResponse, type AdminRefreshAuthTokensResponse as AdminRefreshAuthTokensResponse, type AdminListConnectionsParams as AdminListConnectionsParams, type AdminRefreshAuthTokensParams as AdminRefreshAuthTokensParams, };
|
|
19
|
+
export { Cli as Cli, type CliCreateSessionResponse as CliCreateSessionResponse, type CliLinkSessionResponse as CliLinkSessionResponse, type CliRetrieveSessionResponse as CliRetrieveSessionResponse, type CliLinkSessionParams as CliLinkSessionParams, type CliRetrieveSessionParams as CliRetrieveSessionParams, };
|
|
20
|
+
export { Internal as Internal };
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=v3.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v3.d.ts","sourceRoot":"","sources":["../../src/resources/v3/v3.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EACL,KAAK,EACL,0BAA0B,EAC1B,4BAA4B,EAC5B,4BAA4B,EAC5B,8BAA8B,EAC/B;OACM,KAAK,MAAM;OACX,EACL,GAAG,EACH,wBAAwB,EACxB,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACxB,0BAA0B,EAC3B;OACM,KAAK,OAAO;OACZ,EAAE,IAAI,EAAE;OACR,KAAK,WAAW;OAChB,EAAE,QAAQ,EAAE;AAEnB,qBAAa,EAAG,SAAQ,WAAW;IACjC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;IACpD,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IACzD,GAAG,EAAE,MAAM,CAAC,GAAG,CAAgC;IAC/C,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;CACzE;AAOD,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EAAE,IAAI,IAAI,IAAI,EAAE,CAAC;IAExB,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;IAEF,OAAO,EACL,GAAG,IAAI,GAAG,EACV,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;IAEF,OAAO,EAAE,QAAQ,IAAI,QAAQ,EAAE,CAAC;CACjC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.V3 = void 0;
|
|
5
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../core/resource.js");
|
|
7
|
+
const AdminAPI = tslib_1.__importStar(require("./admin.js"));
|
|
8
|
+
const admin_1 = require("./admin.js");
|
|
9
|
+
const CliAPI = tslib_1.__importStar(require("./cli.js"));
|
|
10
|
+
const cli_1 = require("./cli.js");
|
|
11
|
+
const AuthAPI = tslib_1.__importStar(require("./auth/auth.js"));
|
|
12
|
+
const auth_1 = require("./auth/auth.js");
|
|
13
|
+
const InternalAPI = tslib_1.__importStar(require("./internal/internal.js"));
|
|
14
|
+
const internal_1 = require("./internal/internal.js");
|
|
15
|
+
class V3 extends resource_1.APIResource {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments);
|
|
18
|
+
this.auth = new AuthAPI.Auth(this._client);
|
|
19
|
+
this.admin = new AdminAPI.Admin(this._client);
|
|
20
|
+
this.cli = new CliAPI.Cli(this._client);
|
|
21
|
+
this.internal = new InternalAPI.Internal(this._client);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.V3 = V3;
|
|
25
|
+
V3.Auth = auth_1.Auth;
|
|
26
|
+
V3.Admin = admin_1.Admin;
|
|
27
|
+
V3.Cli = cli_1.Cli;
|
|
28
|
+
V3.Internal = internal_1.Internal;
|
|
29
|
+
//# sourceMappingURL=v3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v3.js","sourceRoot":"","sources":["../../src/resources/v3/v3.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,6DAAoC;AACpC,sCAMiB;AACjB,yDAAgC;AAChC,kCAOe;AACf,gEAAuC;AACvC,yCAAmC;AACnC,4EAAmD;AACnD,qDAA+C;AAE/C,MAAa,EAAG,SAAQ,sBAAW;IAAnC;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,QAAG,GAAe,IAAI,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/C,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC1E,CAAC;CAAA;AALD,gBAKC;AAED,EAAE,CAAC,IAAI,GAAG,WAAI,CAAC;AACf,EAAE,CAAC,KAAK,GAAG,aAAK,CAAC;AACjB,EAAE,CAAC,GAAG,GAAG,SAAG,CAAC;AACb,EAAE,CAAC,QAAQ,GAAG,mBAAQ,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import * as AdminAPI from "./admin.mjs";
|
|
4
|
+
import { Admin, } from "./admin.mjs";
|
|
5
|
+
import * as CliAPI from "./cli.mjs";
|
|
6
|
+
import { Cli, } from "./cli.mjs";
|
|
7
|
+
import * as AuthAPI from "./auth/auth.mjs";
|
|
8
|
+
import { Auth } from "./auth/auth.mjs";
|
|
9
|
+
import * as InternalAPI from "./internal/internal.mjs";
|
|
10
|
+
import { Internal } from "./internal/internal.mjs";
|
|
11
|
+
export class V3 extends APIResource {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments);
|
|
14
|
+
this.auth = new AuthAPI.Auth(this._client);
|
|
15
|
+
this.admin = new AdminAPI.Admin(this._client);
|
|
16
|
+
this.cli = new CliAPI.Cli(this._client);
|
|
17
|
+
this.internal = new InternalAPI.Internal(this._client);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
V3.Auth = Auth;
|
|
21
|
+
V3.Admin = Admin;
|
|
22
|
+
V3.Cli = Cli;
|
|
23
|
+
V3.Internal = Internal;
|
|
24
|
+
//# sourceMappingURL=v3.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v3.mjs","sourceRoot":"","sources":["../../src/resources/v3/v3.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EACL,KAAK,GAKN;OACM,KAAK,MAAM;OACX,EACL,GAAG,GAMJ;OACM,KAAK,OAAO;OACZ,EAAE,IAAI,EAAE;OACR,KAAK,WAAW;OAChB,EAAE,QAAQ,EAAE;AAEnB,MAAM,OAAO,EAAG,SAAQ,WAAW;IAAnC;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,QAAG,GAAe,IAAI,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/C,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC1E,CAAC;CAAA;AAED,EAAE,CAAC,IAAI,GAAG,IAAI,CAAC;AACf,EAAE,CAAC,KAAK,GAAG,KAAK,CAAC;AACjB,EAAE,CAAC,GAAG,GAAG,GAAG,CAAC;AACb,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v3.d.mts","sourceRoot":"","sources":["../src/resources/v3.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v3.d.ts","sourceRoot":"","sources":["../src/resources/v3.ts"],"names":[],"mappings":""}
|
package/resources/v3.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const tslib_1 = require("../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./v3/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=v3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v3.js","sourceRoot":"","sources":["../src/resources/v3.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAA2B"}
|
package/resources/v3.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v3.mjs","sourceRoot":"","sources":["../src/resources/v3.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
package/src/client.ts
CHANGED
|
@@ -98,7 +98,6 @@ import {
|
|
|
98
98
|
import { readEnv } from './internal/utils/env';
|
|
99
99
|
import { formatRequestDetails, loggerFor } from './internal/utils/log';
|
|
100
100
|
import { isEmptyObj } from './internal/utils/values';
|
|
101
|
-
import { Auth } from './resources/auth/auth';
|
|
102
101
|
import {
|
|
103
102
|
Mcp,
|
|
104
103
|
McpCreateParams,
|
|
@@ -111,18 +110,18 @@ import {
|
|
|
111
110
|
McpRetrieveResponse,
|
|
112
111
|
McpUpdateParams,
|
|
113
112
|
McpUpdateResponse,
|
|
113
|
+
McpValidateParams,
|
|
114
|
+
McpValidateResponse,
|
|
114
115
|
} from './resources/mcp/mcp';
|
|
115
116
|
import { Org } from './resources/org/org';
|
|
116
117
|
import {
|
|
117
|
-
TriggerInstanceDeleteResponse,
|
|
118
118
|
TriggerInstanceListActiveParams,
|
|
119
119
|
TriggerInstanceListActiveResponse,
|
|
120
|
-
TriggerInstanceUpdateStatusParams,
|
|
121
|
-
TriggerInstanceUpdateStatusResponse,
|
|
122
120
|
TriggerInstanceUpsertParams,
|
|
123
121
|
TriggerInstanceUpsertResponse,
|
|
124
122
|
TriggerInstances,
|
|
125
123
|
} from './resources/trigger-instances/trigger-instances';
|
|
124
|
+
import { V3 } from './resources/v3/v3';
|
|
126
125
|
|
|
127
126
|
const environments = {
|
|
128
127
|
production: 'https://backend.composio.dev',
|
|
@@ -806,7 +805,6 @@ export class Composio {
|
|
|
806
805
|
|
|
807
806
|
static toFile = Uploads.toFile;
|
|
808
807
|
|
|
809
|
-
auth: API.Auth = new API.Auth(this);
|
|
810
808
|
authConfigs: API.AuthConfigs = new API.AuthConfigs(this);
|
|
811
809
|
connectedAccounts: API.ConnectedAccounts = new API.ConnectedAccounts(this);
|
|
812
810
|
org: API.Org = new API.Org(this);
|
|
@@ -818,8 +816,8 @@ export class Composio {
|
|
|
818
816
|
mcp: API.Mcp = new API.Mcp(this);
|
|
819
817
|
files: API.Files = new API.Files(this);
|
|
820
818
|
migration: API.Migration = new API.Migration(this);
|
|
819
|
+
v3: API.V3 = new API.V3(this);
|
|
821
820
|
}
|
|
822
|
-
Composio.Auth = Auth;
|
|
823
821
|
Composio.AuthConfigs = AuthConfigs;
|
|
824
822
|
Composio.ConnectedAccounts = ConnectedAccounts;
|
|
825
823
|
Composio.Org = Org;
|
|
@@ -831,11 +829,10 @@ Composio.TriggersTypes = TriggersTypes;
|
|
|
831
829
|
Composio.Mcp = Mcp;
|
|
832
830
|
Composio.Files = Files;
|
|
833
831
|
Composio.Migration = Migration;
|
|
832
|
+
Composio.V3 = V3;
|
|
834
833
|
export declare namespace Composio {
|
|
835
834
|
export type RequestOptions = Opts.RequestOptions;
|
|
836
835
|
|
|
837
|
-
export { Auth as Auth };
|
|
838
|
-
|
|
839
836
|
export {
|
|
840
837
|
AuthConfigs as AuthConfigs,
|
|
841
838
|
type AuthConfigCreateResponse as AuthConfigCreateResponse,
|
|
@@ -900,12 +897,9 @@ export declare namespace Composio {
|
|
|
900
897
|
|
|
901
898
|
export {
|
|
902
899
|
TriggerInstances as TriggerInstances,
|
|
903
|
-
type TriggerInstanceDeleteResponse as TriggerInstanceDeleteResponse,
|
|
904
900
|
type TriggerInstanceListActiveResponse as TriggerInstanceListActiveResponse,
|
|
905
|
-
type TriggerInstanceUpdateStatusResponse as TriggerInstanceUpdateStatusResponse,
|
|
906
901
|
type TriggerInstanceUpsertResponse as TriggerInstanceUpsertResponse,
|
|
907
902
|
type TriggerInstanceListActiveParams as TriggerInstanceListActiveParams,
|
|
908
|
-
type TriggerInstanceUpdateStatusParams as TriggerInstanceUpdateStatusParams,
|
|
909
903
|
type TriggerInstanceUpsertParams as TriggerInstanceUpsertParams,
|
|
910
904
|
};
|
|
911
905
|
|
|
@@ -925,10 +919,12 @@ export declare namespace Composio {
|
|
|
925
919
|
type McpListResponse as McpListResponse,
|
|
926
920
|
type McpDeleteResponse as McpDeleteResponse,
|
|
927
921
|
type McpRetrieveAppResponse as McpRetrieveAppResponse,
|
|
922
|
+
type McpValidateResponse as McpValidateResponse,
|
|
928
923
|
type McpCreateParams as McpCreateParams,
|
|
929
924
|
type McpUpdateParams as McpUpdateParams,
|
|
930
925
|
type McpListParams as McpListParams,
|
|
931
926
|
type McpRetrieveAppParams as McpRetrieveAppParams,
|
|
927
|
+
type McpValidateParams as McpValidateParams,
|
|
932
928
|
};
|
|
933
929
|
|
|
934
930
|
export {
|
|
@@ -944,4 +940,6 @@ export declare namespace Composio {
|
|
|
944
940
|
type MigrationRetrieveNanoidResponse as MigrationRetrieveNanoidResponse,
|
|
945
941
|
type MigrationRetrieveNanoidParams as MigrationRetrieveNanoidParams,
|
|
946
942
|
};
|
|
943
|
+
|
|
944
|
+
export { V3 as V3 };
|
|
947
945
|
}
|
|
@@ -85,10 +85,10 @@ const getPlatformProperties = (): PlatformProperties => {
|
|
|
85
85
|
return {
|
|
86
86
|
'X-Stainless-Lang': 'js',
|
|
87
87
|
'X-Stainless-Package-Version': VERSION,
|
|
88
|
-
'X-Stainless-OS': normalizePlatform((globalThis as any).process.platform),
|
|
89
|
-
'X-Stainless-Arch': normalizeArch((globalThis as any).process.arch),
|
|
88
|
+
'X-Stainless-OS': normalizePlatform((globalThis as any).process.platform ?? 'unknown'),
|
|
89
|
+
'X-Stainless-Arch': normalizeArch((globalThis as any).process.arch ?? 'unknown'),
|
|
90
90
|
'X-Stainless-Runtime': 'node',
|
|
91
|
-
'X-Stainless-Runtime-Version': (globalThis as any).process.version,
|
|
91
|
+
'X-Stainless-Runtime-Version': (globalThis as any).process.version ?? 'unknown',
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
94
|
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Shims for types that we can't always rely on being available globally.
|
|
5
|
+
*
|
|
6
|
+
* Note: these only exist at the type-level, there is no corresponding runtime
|
|
7
|
+
* version for any of these symbols.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
type NeverToAny<T> = T extends never ? any : T;
|
|
11
|
+
|
|
12
|
+
/** @ts-ignore */
|
|
13
|
+
type _DOMReadableStream<R = any> = globalThis.ReadableStream<R>;
|
|
14
|
+
|
|
15
|
+
/** @ts-ignore */
|
|
16
|
+
type _NodeReadableStream<R = any> = import('stream/web').ReadableStream<R>;
|
|
17
|
+
|
|
18
|
+
type _ConditionalNodeReadableStream<R = any> =
|
|
19
|
+
typeof globalThis extends { ReadableStream: any } ? never : _NodeReadableStream<R>;
|
|
20
|
+
|
|
21
|
+
type _ReadableStream<R = any> = NeverToAny<
|
|
22
|
+
| ([0] extends [1 & _DOMReadableStream<R>] ? never : _DOMReadableStream<R>)
|
|
23
|
+
| ([0] extends [1 & _ConditionalNodeReadableStream<R>] ? never : _ConditionalNodeReadableStream<R>)
|
|
24
|
+
>;
|
|
25
|
+
|
|
26
|
+
export type { _ReadableStream as ReadableStream };
|
package/src/internal/shims.ts
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
* messages in cases where an environment isn't fully supported.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
10
|
+
import type { Fetch } from './builtin-types';
|
|
11
|
+
import type { ReadableStream } from './shim-types';
|
|
12
12
|
|
|
13
13
|
export function getDefaultFetch(): Fetch {
|
|
14
14
|
if (typeof fetch !== 'undefined') {
|
|
@@ -187,7 +187,6 @@ export interface AuthConfigRetrieveResponse {
|
|
|
187
187
|
auth_scheme?:
|
|
188
188
|
| 'OAUTH2'
|
|
189
189
|
| 'OAUTH1'
|
|
190
|
-
| 'OAUTH1A'
|
|
191
190
|
| 'API_KEY'
|
|
192
191
|
| 'BASIC'
|
|
193
192
|
| 'BILLCOM_AUTH'
|
|
@@ -336,7 +335,6 @@ export namespace AuthConfigListResponse {
|
|
|
336
335
|
auth_scheme?:
|
|
337
336
|
| 'OAUTH2'
|
|
338
337
|
| 'OAUTH1'
|
|
339
|
-
| 'OAUTH1A'
|
|
340
338
|
| 'API_KEY'
|
|
341
339
|
| 'BASIC'
|
|
342
340
|
| 'BILLCOM_AUTH'
|
|
@@ -466,7 +464,6 @@ export namespace AuthConfigCreateParams {
|
|
|
466
464
|
authScheme:
|
|
467
465
|
| 'OAUTH2'
|
|
468
466
|
| 'OAUTH1'
|
|
469
|
-
| 'OAUTH1A'
|
|
470
467
|
| 'API_KEY'
|
|
471
468
|
| 'BASIC'
|
|
472
469
|
| 'BILLCOM_AUTH'
|