@composio/client 0.1.0-alpha.25 → 0.1.0-alpha.26
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 +28 -0
- package/client.d.mts +4 -5
- package/client.d.mts.map +1 -1
- package/client.d.ts +4 -5
- package/client.d.ts.map +1 -1
- package/client.js +0 -3
- package/client.js.map +1 -1
- package/client.mjs +0 -3
- package/client.mjs.map +1 -1
- package/internal/request-options.d.mts +42 -0
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts +42 -0
- package/internal/request-options.d.ts.map +1 -1
- package/internal/request-options.js.map +1 -1
- package/internal/request-options.mjs.map +1 -1
- package/internal/types.d.mts +8 -6
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +8 -6
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.js +1 -1
- package/internal/uploads.js.map +1 -1
- package/internal/uploads.mjs +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/log.js +1 -1
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.d.mts.map +1 -1
- package/internal/utils/path.d.ts.map +1 -1
- package/internal/utils/path.js +26 -5
- package/internal/utils/path.js.map +1 -1
- package/internal/utils/path.mjs +26 -5
- package/internal/utils/path.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/auth-configs.d.mts +22 -4
- package/resources/auth-configs.d.mts.map +1 -1
- package/resources/auth-configs.d.ts +22 -4
- package/resources/auth-configs.d.ts.map +1 -1
- package/resources/connected-accounts.d.mts +2153 -633
- package/resources/connected-accounts.d.mts.map +1 -1
- package/resources/connected-accounts.d.ts +2153 -633
- package/resources/connected-accounts.d.ts.map +1 -1
- package/resources/connected-accounts.js +7 -2
- package/resources/connected-accounts.js.map +1 -1
- package/resources/connected-accounts.mjs +7 -2
- package/resources/connected-accounts.mjs.map +1 -1
- package/resources/files.d.mts +14 -1
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +14 -1
- package/resources/files.d.ts.map +1 -1
- package/resources/index.d.mts +1 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +0 -1
- package/resources/index.mjs.map +1 -1
- package/resources/mcp/mcp.d.mts +5 -9
- package/resources/mcp/mcp.d.mts.map +1 -1
- package/resources/mcp/mcp.d.ts +5 -9
- package/resources/mcp/mcp.d.ts.map +1 -1
- package/resources/mcp/mcp.js +1 -1
- package/resources/mcp/mcp.js.map +1 -1
- package/resources/mcp/mcp.mjs +1 -1
- package/resources/mcp/mcp.mjs.map +1 -1
- package/resources/toolkits.d.mts +17 -2
- package/resources/toolkits.d.mts.map +1 -1
- package/resources/toolkits.d.ts +17 -2
- package/resources/toolkits.d.ts.map +1 -1
- package/resources/tools.d.mts +9 -4
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +9 -4
- package/resources/tools.d.ts.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.mts +12 -3
- package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.ts +12 -3
- package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
- package/resources/trigger-instances/trigger-instances.js.map +1 -1
- package/resources/trigger-instances/trigger-instances.mjs.map +1 -1
- package/resources/triggers-types.d.mts +8 -3
- package/resources/triggers-types.d.mts.map +1 -1
- package/resources/triggers-types.d.ts +8 -3
- package/resources/triggers-types.d.ts.map +1 -1
- package/src/client.ts +4 -5
- package/src/internal/request-options.ts +53 -0
- package/src/internal/types.ts +9 -6
- package/src/internal/uploads.ts +1 -1
- package/src/internal/utils/log.ts +1 -1
- package/src/internal/utils/path.ts +32 -7
- package/src/resources/auth-configs.ts +27 -4
- package/src/resources/connected-accounts.ts +4045 -1211
- package/src/resources/files.ts +18 -1
- package/src/resources/index.ts +1 -1
- package/src/resources/mcp/mcp.ts +6 -11
- package/src/resources/toolkits.ts +23 -2
- package/src/resources/tools.ts +11 -4
- package/src/resources/trigger-instances/trigger-instances.ts +15 -3
- package/src/resources/triggers-types.ts +10 -3
- 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/v3/auth/auth.d.mts +0 -10
- package/resources/v3/auth/auth.d.mts.map +0 -1
- package/resources/v3/auth/auth.d.ts +0 -10
- package/resources/v3/auth/auth.d.ts.map +0 -1
- package/resources/v3/auth/auth.js +0 -17
- package/resources/v3/auth/auth.js.map +0 -1
- package/resources/v3/auth/auth.mjs +0 -12
- package/resources/v3/auth/auth.mjs.map +0 -1
- package/resources/v3/auth/index.d.mts +0 -3
- package/resources/v3/auth/index.d.mts.map +0 -1
- package/resources/v3/auth/index.d.ts +0 -3
- package/resources/v3/auth/index.d.ts.map +0 -1
- package/resources/v3/auth/index.js +0 -9
- package/resources/v3/auth/index.js.map +0 -1
- package/resources/v3/auth/index.mjs +0 -4
- package/resources/v3/auth/index.mjs.map +0 -1
- package/resources/v3/auth/session.d.mts +0 -246
- package/resources/v3/auth/session.d.mts.map +0 -1
- package/resources/v3/auth/session.d.ts +0 -246
- package/resources/v3/auth/session.d.ts.map +0 -1
- package/resources/v3/auth/session.js +0 -25
- package/resources/v3/auth/session.js.map +0 -1
- package/resources/v3/auth/session.mjs +0 -21
- package/resources/v3/auth/session.mjs.map +0 -1
- package/resources/v3/auth.d.mts +0 -2
- package/resources/v3/auth.d.mts.map +0 -1
- package/resources/v3/auth.d.ts +0 -2
- package/resources/v3/auth.d.ts.map +0 -1
- package/resources/v3/auth.js +0 -6
- package/resources/v3/auth.js.map +0 -1
- package/resources/v3/auth.mjs +0 -3
- package/resources/v3/auth.mjs.map +0 -1
- package/resources/v3/cli.d.mts +0 -167
- package/resources/v3/cli.d.mts.map +0 -1
- package/resources/v3/cli.d.ts +0 -167
- package/resources/v3/cli.d.ts.map +0 -1
- package/resources/v3/cli.js +0 -55
- package/resources/v3/cli.js.map +0 -1
- package/resources/v3/cli.mjs +0 -51
- package/resources/v3/cli.mjs.map +0 -1
- package/resources/v3/index.d.mts +0 -5
- package/resources/v3/index.d.mts.map +0 -1
- package/resources/v3/index.d.ts +0 -5
- package/resources/v3/index.d.ts.map +0 -1
- package/resources/v3/index.js +0 -13
- package/resources/v3/index.js.map +0 -1
- package/resources/v3/index.mjs +0 -6
- package/resources/v3/index.mjs.map +0 -1
- package/resources/v3/internal/action-execution.d.mts +0 -169
- package/resources/v3/internal/action-execution.d.mts.map +0 -1
- package/resources/v3/internal/action-execution.d.ts +0 -169
- package/resources/v3/internal/action-execution.d.ts.map +0 -1
- package/resources/v3/internal/action-execution.js +0 -38
- package/resources/v3/internal/action-execution.js.map +0 -1
- package/resources/v3/internal/action-execution.mjs +0 -34
- package/resources/v3/internal/action-execution.mjs.map +0 -1
- package/resources/v3/internal/index.d.mts +0 -4
- package/resources/v3/internal/index.d.mts.map +0 -1
- package/resources/v3/internal/index.d.ts +0 -4
- package/resources/v3/internal/index.d.ts.map +0 -1
- package/resources/v3/internal/index.js +0 -11
- package/resources/v3/internal/index.js.map +0 -1
- package/resources/v3/internal/index.mjs +0 -5
- package/resources/v3/internal/index.mjs.map +0 -1
- package/resources/v3/internal/internal.d.mts +0 -14
- package/resources/v3/internal/internal.d.mts.map +0 -1
- package/resources/v3/internal/internal.d.ts +0 -14
- package/resources/v3/internal/internal.d.ts.map +0 -1
- package/resources/v3/internal/internal.js +0 -21
- package/resources/v3/internal/internal.js.map +0 -1
- package/resources/v3/internal/internal.mjs +0 -16
- package/resources/v3/internal/internal.mjs.map +0 -1
- package/resources/v3/internal/trigger.d.mts +0 -84
- package/resources/v3/internal/trigger.d.mts.map +0 -1
- package/resources/v3/internal/trigger.d.ts +0 -84
- package/resources/v3/internal/trigger.d.ts.map +0 -1
- package/resources/v3/internal/trigger.js +0 -23
- package/resources/v3/internal/trigger.js.map +0 -1
- package/resources/v3/internal/trigger.mjs +0 -19
- package/resources/v3/internal/trigger.mjs.map +0 -1
- package/resources/v3/internal.d.mts +0 -2
- package/resources/v3/internal.d.mts.map +0 -1
- package/resources/v3/internal.d.ts +0 -2
- package/resources/v3/internal.d.ts.map +0 -1
- package/resources/v3/internal.js +0 -6
- package/resources/v3/internal.js.map +0 -1
- package/resources/v3/internal.mjs +0 -3
- package/resources/v3/internal.mjs.map +0 -1
- package/resources/v3/v3.d.mts +0 -18
- package/resources/v3/v3.d.mts.map +0 -1
- package/resources/v3/v3.d.ts +0 -18
- package/resources/v3/v3.d.ts.map +0 -1
- package/resources/v3/v3.js +0 -25
- package/resources/v3/v3.js.map +0 -1
- package/resources/v3/v3.mjs +0 -20
- package/resources/v3/v3.mjs.map +0 -1
- package/resources/v3.d.mts +0 -2
- package/resources/v3.d.mts.map +0 -1
- package/resources/v3.d.ts +0 -2
- package/resources/v3.d.ts.map +0 -1
- package/resources/v3.js +0 -6
- package/resources/v3.js.map +0 -1
- package/resources/v3.mjs +0 -3
- package/resources/v3.mjs.map +0 -1
- package/src/resources/v3/auth/auth.ts +0 -15
- package/src/resources/v3/auth/index.ts +0 -4
- package/src/resources/v3/auth/session.ts +0 -298
- package/src/resources/v3/auth.ts +0 -3
- package/src/resources/v3/cli.ts +0 -209
- package/src/resources/v3/index.ts +0 -13
- package/src/resources/v3/internal/action-execution.ts +0 -236
- package/src/resources/v3/internal/index.ts +0 -10
- package/src/resources/v3/internal/internal.ts +0 -35
- package/src/resources/v3/internal/trigger.ts +0 -122
- package/src/resources/v3/internal.ts +0 -3
- package/src/resources/v3/v3.ts +0 -41
- package/src/resources/v3.ts +0 -3
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../src/resources/v3/cli.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,E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H,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,MAAM,EAAE,SAAS,GAAG,QAAQ,CAAC;CAC9B;AAED,yBAAiB,0BAA0B,CAAC;IAC1C;;;OAGG;IACH,UAAiB,OAAO;QACtB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;KACd;CACF;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IAC3B,OAAO,EACL,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;CACH"}
|
package/resources/v3/cli.js
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
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.Cli = void 0;
|
|
5
|
-
const resource_1 = require("../../core/resource.js");
|
|
6
|
-
class Cli extends resource_1.APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* Generates a new CLI session with a random 6-character code. This endpoint is the
|
|
9
|
-
* first step in the CLI authentication flow, creating a session that can later be
|
|
10
|
-
* linked to a user account. The generated code is displayed to the user in the CLI
|
|
11
|
-
* and should be entered in the web interface to complete authentication.
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```ts
|
|
15
|
-
* const response = await client.v3.cli.createSession();
|
|
16
|
-
* ```
|
|
17
|
-
*/
|
|
18
|
-
createSession(options) {
|
|
19
|
-
return this._client.post('/api/v3/cli/create-session', options);
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Links a pending CLI session to the currently authenticated user. This is the
|
|
23
|
-
* final step in the CLI authentication flow, where the user enters the code in the
|
|
24
|
-
* web interface and their account is associated with the CLI session, allowing the
|
|
25
|
-
* CLI to act on their behalf.
|
|
26
|
-
*
|
|
27
|
-
* @example
|
|
28
|
-
* ```ts
|
|
29
|
-
* const response = await client.v3.cli.linkSession({
|
|
30
|
-
* id: 'ABC123',
|
|
31
|
-
* });
|
|
32
|
-
* ```
|
|
33
|
-
*/
|
|
34
|
-
linkSession(body, options) {
|
|
35
|
-
return this._client.put('/api/v3/cli/link-session', { body, ...options });
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Retrieves the current state of a CLI session using either the session ID (UUID)
|
|
39
|
-
* or the 6-character code. This endpoint is used by both the CLI client to check
|
|
40
|
-
* if the session has been linked, and by the web interface to display session
|
|
41
|
-
* details before linking.
|
|
42
|
-
*
|
|
43
|
-
* @example
|
|
44
|
-
* ```ts
|
|
45
|
-
* const response = await client.v3.cli.retrieveSession({
|
|
46
|
-
* id: 'ABC123',
|
|
47
|
-
* });
|
|
48
|
-
* ```
|
|
49
|
-
*/
|
|
50
|
-
retrieveSession(query, options) {
|
|
51
|
-
return this._client.get('/api/v3/cli/get-session', { query, ...options });
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
exports.Cli = Cli;
|
|
55
|
-
//# sourceMappingURL=cli.js.map
|
package/resources/v3/cli.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/resources/v3/cli.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,MAAa,GAAI,SAAQ,sBAAW;IAClC;;;;;;;;;;OAUG;IACH,aAAa,CAAC,OAAwB;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,WAAW,CAAC,IAA0B,EAAE,OAAwB;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,eAAe,CACb,KAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF;AApDD,kBAoDC"}
|
package/resources/v3/cli.mjs
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
-
export class Cli extends APIResource {
|
|
4
|
-
/**
|
|
5
|
-
* Generates a new CLI session with a random 6-character code. This endpoint is the
|
|
6
|
-
* first step in the CLI authentication flow, creating a session that can later be
|
|
7
|
-
* linked to a user account. The generated code is displayed to the user in the CLI
|
|
8
|
-
* and should be entered in the web interface to complete authentication.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```ts
|
|
12
|
-
* const response = await client.v3.cli.createSession();
|
|
13
|
-
* ```
|
|
14
|
-
*/
|
|
15
|
-
createSession(options) {
|
|
16
|
-
return this._client.post('/api/v3/cli/create-session', options);
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Links a pending CLI session to the currently authenticated user. This is the
|
|
20
|
-
* final step in the CLI authentication flow, where the user enters the code in the
|
|
21
|
-
* web interface and their account is associated with the CLI session, allowing the
|
|
22
|
-
* CLI to act on their behalf.
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```ts
|
|
26
|
-
* const response = await client.v3.cli.linkSession({
|
|
27
|
-
* id: 'ABC123',
|
|
28
|
-
* });
|
|
29
|
-
* ```
|
|
30
|
-
*/
|
|
31
|
-
linkSession(body, options) {
|
|
32
|
-
return this._client.put('/api/v3/cli/link-session', { body, ...options });
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Retrieves the current state of a CLI session using either the session ID (UUID)
|
|
36
|
-
* or the 6-character code. This endpoint is used by both the CLI client to check
|
|
37
|
-
* if the session has been linked, and by the web interface to display session
|
|
38
|
-
* details before linking.
|
|
39
|
-
*
|
|
40
|
-
* @example
|
|
41
|
-
* ```ts
|
|
42
|
-
* const response = await client.v3.cli.retrieveSession({
|
|
43
|
-
* id: 'ABC123',
|
|
44
|
-
* });
|
|
45
|
-
* ```
|
|
46
|
-
*/
|
|
47
|
-
retrieveSession(query, options) {
|
|
48
|
-
return this._client.get('/api/v3/cli/get-session', { query, ...options });
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
//# sourceMappingURL=cli.mjs.map
|
package/resources/v3/cli.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cli.mjs","sourceRoot":"","sources":["../../src/resources/v3/cli.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,GAAI,SAAQ,WAAW;IAClC;;;;;;;;;;OAUG;IACH,aAAa,CAAC,OAAwB;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,WAAW,CAAC,IAA0B,EAAE,OAAwB;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,eAAe,CACb,KAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF"}
|
package/resources/v3/index.d.mts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { Auth } from "./auth/index.mjs";
|
|
2
|
-
export { Cli, type CliCreateSessionResponse, type CliLinkSessionResponse, type CliRetrieveSessionResponse, type CliLinkSessionParams, type CliRetrieveSessionParams, } from "./cli.mjs";
|
|
3
|
-
export { Internal } from "./internal/index.mjs";
|
|
4
|
-
export { V3 } from "./v3.mjs";
|
|
5
|
-
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/v3/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE;OACR,EACL,GAAG,EACH,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,GAC9B;OACM,EAAE,QAAQ,EAAE;OACZ,EAAE,EAAE,EAAE"}
|
package/resources/v3/index.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { Auth } from "./auth/index.js";
|
|
2
|
-
export { Cli, type CliCreateSessionResponse, type CliLinkSessionResponse, type CliRetrieveSessionResponse, type CliLinkSessionParams, type CliRetrieveSessionParams, } from "./cli.js";
|
|
3
|
-
export { Internal } from "./internal/index.js";
|
|
4
|
-
export { V3 } from "./v3.js";
|
|
5
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/v3/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE;OACR,EACL,GAAG,EACH,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,GAC9B;OACM,EAAE,QAAQ,EAAE;OACZ,EAAE,EAAE,EAAE"}
|
package/resources/v3/index.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
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 = exports.Internal = exports.Cli = exports.Auth = void 0;
|
|
5
|
-
var index_1 = require("./auth/index.js");
|
|
6
|
-
Object.defineProperty(exports, "Auth", { enumerable: true, get: function () { return index_1.Auth; } });
|
|
7
|
-
var cli_1 = require("./cli.js");
|
|
8
|
-
Object.defineProperty(exports, "Cli", { enumerable: true, get: function () { return cli_1.Cli; } });
|
|
9
|
-
var index_2 = require("./internal/index.js");
|
|
10
|
-
Object.defineProperty(exports, "Internal", { enumerable: true, get: function () { return index_2.Internal; } });
|
|
11
|
-
var v3_1 = require("./v3.js");
|
|
12
|
-
Object.defineProperty(exports, "V3", { enumerable: true, get: function () { return v3_1.V3; } });
|
|
13
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/v3/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,yCAAoC;AAA3B,6FAAA,IAAI,OAAA;AACb,gCAOe;AANb,0FAAA,GAAG,OAAA;AAOL,6CAA4C;AAAnC,iGAAA,QAAQ,OAAA;AACjB,8BAA0B;AAAjB,wFAAA,EAAE,OAAA"}
|
package/resources/v3/index.mjs
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
export { Auth } from "./auth/index.mjs";
|
|
3
|
-
export { Cli, } from "./cli.mjs";
|
|
4
|
-
export { Internal } from "./internal/index.mjs";
|
|
5
|
-
export { V3 } from "./v3.mjs";
|
|
6
|
-
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/v3/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,IAAI,EAAE;OACR,EACL,GAAG,GAMJ;OACM,EAAE,QAAQ,EAAE;OACZ,EAAE,EAAE,EAAE"}
|
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
-
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
3
|
-
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
4
|
-
export declare class ActionExecution extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Get detailed execution log by ID
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```ts
|
|
10
|
-
* const response =
|
|
11
|
-
* await client.v3.internal.actionExecution.retrieveLog(
|
|
12
|
-
* 'id',
|
|
13
|
-
* );
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
|
-
retrieveLog(id: string, options?: RequestOptions): APIPromise<ActionExecutionRetrieveLogResponse>;
|
|
17
|
-
/**
|
|
18
|
-
* Search and retrieve action execution logs
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* ```ts
|
|
22
|
-
* const response =
|
|
23
|
-
* await client.v3.internal.actionExecution.searchLogs({
|
|
24
|
-
* cursor: 0,
|
|
25
|
-
* });
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
searchLogs(body: ActionExecutionSearchLogsParams, options?: RequestOptions): APIPromise<ActionExecutionSearchLogsResponse>;
|
|
29
|
-
}
|
|
30
|
-
export interface ActionExecutionRetrieveLogResponse {
|
|
31
|
-
actionId: string;
|
|
32
|
-
actionLogId: string;
|
|
33
|
-
app: ActionExecutionRetrieveLogResponse.App;
|
|
34
|
-
connection: ActionExecutionRetrieveLogResponse.Connection;
|
|
35
|
-
endTime: number;
|
|
36
|
-
error: {
|
|
37
|
-
[key: string]: unknown;
|
|
38
|
-
};
|
|
39
|
-
executionMetadata: {
|
|
40
|
-
[key: string]: unknown;
|
|
41
|
-
};
|
|
42
|
-
payloadReceived: {
|
|
43
|
-
[key: string]: unknown;
|
|
44
|
-
};
|
|
45
|
-
response: {
|
|
46
|
-
[key: string]: unknown;
|
|
47
|
-
};
|
|
48
|
-
session: {
|
|
49
|
-
[key: string]: unknown;
|
|
50
|
-
};
|
|
51
|
-
startTime: number;
|
|
52
|
-
status: 'success' | 'error' | 'warning' | 'info';
|
|
53
|
-
steps: Array<ActionExecutionRetrieveLogResponse.Step>;
|
|
54
|
-
totalDuration: string;
|
|
55
|
-
version: string;
|
|
56
|
-
}
|
|
57
|
-
export declare namespace ActionExecutionRetrieveLogResponse {
|
|
58
|
-
interface App {
|
|
59
|
-
icon: string;
|
|
60
|
-
name: string;
|
|
61
|
-
uniqueId: string;
|
|
62
|
-
}
|
|
63
|
-
interface Connection {
|
|
64
|
-
id: string;
|
|
65
|
-
entity: string;
|
|
66
|
-
}
|
|
67
|
-
interface Step {
|
|
68
|
-
endTime: number;
|
|
69
|
-
message: string;
|
|
70
|
-
startTime: number;
|
|
71
|
-
status: 'success' | 'failure' | 'error';
|
|
72
|
-
totalDuration: number;
|
|
73
|
-
type: 'tool_execution' | 'fetch_connection_details';
|
|
74
|
-
logs?: Array<Step.Log>;
|
|
75
|
-
metadata?: Step.Metadata;
|
|
76
|
-
}
|
|
77
|
-
namespace Step {
|
|
78
|
-
interface Log {
|
|
79
|
-
level: string;
|
|
80
|
-
message: string;
|
|
81
|
-
request: Log.Request;
|
|
82
|
-
requestId: string;
|
|
83
|
-
response: Log.Response;
|
|
84
|
-
time: number;
|
|
85
|
-
type: 'network' | 'system';
|
|
86
|
-
}
|
|
87
|
-
namespace Log {
|
|
88
|
-
interface Request {
|
|
89
|
-
method: string;
|
|
90
|
-
url: string;
|
|
91
|
-
headers?: {
|
|
92
|
-
[key: string]: string;
|
|
93
|
-
};
|
|
94
|
-
json?: {
|
|
95
|
-
[key: string]: unknown;
|
|
96
|
-
};
|
|
97
|
-
params?: {
|
|
98
|
-
[key: string]: unknown;
|
|
99
|
-
};
|
|
100
|
-
timeout?: number;
|
|
101
|
-
}
|
|
102
|
-
interface Response {
|
|
103
|
-
status: number;
|
|
104
|
-
time: string;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
interface Metadata {
|
|
108
|
-
encryption?: string;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
export interface ActionExecutionSearchLogsResponse {
|
|
113
|
-
data: Array<ActionExecutionSearchLogsResponse.Data>;
|
|
114
|
-
nextCursor: number | null;
|
|
115
|
-
}
|
|
116
|
-
export declare namespace ActionExecutionSearchLogsResponse {
|
|
117
|
-
interface Data {
|
|
118
|
-
id: string;
|
|
119
|
-
actionKey: string;
|
|
120
|
-
app: Data.App;
|
|
121
|
-
appKey: string;
|
|
122
|
-
connectedAccountId: string;
|
|
123
|
-
createdAt: number;
|
|
124
|
-
entityId: string;
|
|
125
|
-
executionTime: number;
|
|
126
|
-
minimalResponse: string;
|
|
127
|
-
status: 'success' | 'failed';
|
|
128
|
-
}
|
|
129
|
-
namespace Data {
|
|
130
|
-
interface App {
|
|
131
|
-
icon: string;
|
|
132
|
-
name: string;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
export interface ActionExecutionSearchLogsParams {
|
|
137
|
-
/**
|
|
138
|
-
* cursor_that_can_be_used_to_paginate_through_the_logs
|
|
139
|
-
*/
|
|
140
|
-
cursor: number | null;
|
|
141
|
-
/**
|
|
142
|
-
* whether_the_search_is_case_sensitive_or_not
|
|
143
|
-
*/
|
|
144
|
-
case_sensitive?: boolean;
|
|
145
|
-
/**
|
|
146
|
-
* start_time_of_the_logs_in_epoch_time
|
|
147
|
-
*/
|
|
148
|
-
from?: number;
|
|
149
|
-
/**
|
|
150
|
-
* number_of_logs_to_return
|
|
151
|
-
*/
|
|
152
|
-
limit?: number;
|
|
153
|
-
search_params?: Array<ActionExecutionSearchLogsParams.SearchParam>;
|
|
154
|
-
/**
|
|
155
|
-
* end_time_of_the_logs_in_epoch_time
|
|
156
|
-
*/
|
|
157
|
-
to?: number;
|
|
158
|
-
}
|
|
159
|
-
export declare namespace ActionExecutionSearchLogsParams {
|
|
160
|
-
interface SearchParam {
|
|
161
|
-
field?: string;
|
|
162
|
-
operation?: string;
|
|
163
|
-
value?: string;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
export declare namespace ActionExecution {
|
|
167
|
-
export { type ActionExecutionRetrieveLogResponse as ActionExecutionRetrieveLogResponse, type ActionExecutionSearchLogsResponse as ActionExecutionSearchLogsResponse, type ActionExecutionSearchLogsParams as ActionExecutionSearchLogsParams, };
|
|
168
|
-
}
|
|
169
|
-
//# sourceMappingURL=action-execution.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"action-execution.d.mts","sourceRoot":"","sources":["../../../src/resources/v3/internal/action-execution.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;OAUG;IACH,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kCAAkC,CAAC;IAIjG;;;;;;;;;;OAUG;IACH,UAAU,CACR,IAAI,EAAE,+BAA+B,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iCAAiC,CAAC;CAGjD;AAED,MAAM,WAAW,kCAAkC;IACjD,QAAQ,EAAE,MAAM,CAAC;IAEjB,WAAW,EAAE,MAAM,CAAC;IAEpB,GAAG,EAAE,kCAAkC,CAAC,GAAG,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C,GAAG,CAAC;QAEd,MAAM,EAAE,MAAM,CAAC;QAEf,kBAAkB,EAAE,MAAM,CAAC;QAE3B,SAAS,EAAE,MAAM,CAAC;QAElB,QAAQ,EAAE,MAAM,CAAC;QAEjB,aAAa,EAAE,MAAM,CAAC;QAEtB,eAAe,EAAE,MAAM,CAAC;QAExB,MAAM,EAAE,SAAS,GAAG,QAAQ,CAAC;KAC9B;IAED,UAAiB,IAAI,CAAC;QACpB,UAAiB,GAAG;YAClB,IAAI,EAAE,MAAM,CAAC;YAEb,IAAI,EAAE,MAAM,CAAC;SACd;KACF;CACF;AAED,MAAM,WAAW,+BAA+B;IAC9C;;OAEG;IACH,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,aAAa,CAAC,EAAE,KAAK,CAAC,+BAA+B,CAAC,WAAW,CAAC,CAAC;IAEnE;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,yBAAiB,+BAA+B,CAAC;IAC/C,UAAiB,WAAW;QAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf,SAAS,CAAC,EAAE,MAAM,CAAC;QAEnB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC;IACvC,OAAO,EACL,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;CACH"}
|
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../../core/resource.js";
|
|
2
|
-
import { APIPromise } from "../../../core/api-promise.js";
|
|
3
|
-
import { RequestOptions } from "../../../internal/request-options.js";
|
|
4
|
-
export declare class ActionExecution extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Get detailed execution log by ID
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```ts
|
|
10
|
-
* const response =
|
|
11
|
-
* await client.v3.internal.actionExecution.retrieveLog(
|
|
12
|
-
* 'id',
|
|
13
|
-
* );
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
|
-
retrieveLog(id: string, options?: RequestOptions): APIPromise<ActionExecutionRetrieveLogResponse>;
|
|
17
|
-
/**
|
|
18
|
-
* Search and retrieve action execution logs
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* ```ts
|
|
22
|
-
* const response =
|
|
23
|
-
* await client.v3.internal.actionExecution.searchLogs({
|
|
24
|
-
* cursor: 0,
|
|
25
|
-
* });
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
searchLogs(body: ActionExecutionSearchLogsParams, options?: RequestOptions): APIPromise<ActionExecutionSearchLogsResponse>;
|
|
29
|
-
}
|
|
30
|
-
export interface ActionExecutionRetrieveLogResponse {
|
|
31
|
-
actionId: string;
|
|
32
|
-
actionLogId: string;
|
|
33
|
-
app: ActionExecutionRetrieveLogResponse.App;
|
|
34
|
-
connection: ActionExecutionRetrieveLogResponse.Connection;
|
|
35
|
-
endTime: number;
|
|
36
|
-
error: {
|
|
37
|
-
[key: string]: unknown;
|
|
38
|
-
};
|
|
39
|
-
executionMetadata: {
|
|
40
|
-
[key: string]: unknown;
|
|
41
|
-
};
|
|
42
|
-
payloadReceived: {
|
|
43
|
-
[key: string]: unknown;
|
|
44
|
-
};
|
|
45
|
-
response: {
|
|
46
|
-
[key: string]: unknown;
|
|
47
|
-
};
|
|
48
|
-
session: {
|
|
49
|
-
[key: string]: unknown;
|
|
50
|
-
};
|
|
51
|
-
startTime: number;
|
|
52
|
-
status: 'success' | 'error' | 'warning' | 'info';
|
|
53
|
-
steps: Array<ActionExecutionRetrieveLogResponse.Step>;
|
|
54
|
-
totalDuration: string;
|
|
55
|
-
version: string;
|
|
56
|
-
}
|
|
57
|
-
export declare namespace ActionExecutionRetrieveLogResponse {
|
|
58
|
-
interface App {
|
|
59
|
-
icon: string;
|
|
60
|
-
name: string;
|
|
61
|
-
uniqueId: string;
|
|
62
|
-
}
|
|
63
|
-
interface Connection {
|
|
64
|
-
id: string;
|
|
65
|
-
entity: string;
|
|
66
|
-
}
|
|
67
|
-
interface Step {
|
|
68
|
-
endTime: number;
|
|
69
|
-
message: string;
|
|
70
|
-
startTime: number;
|
|
71
|
-
status: 'success' | 'failure' | 'error';
|
|
72
|
-
totalDuration: number;
|
|
73
|
-
type: 'tool_execution' | 'fetch_connection_details';
|
|
74
|
-
logs?: Array<Step.Log>;
|
|
75
|
-
metadata?: Step.Metadata;
|
|
76
|
-
}
|
|
77
|
-
namespace Step {
|
|
78
|
-
interface Log {
|
|
79
|
-
level: string;
|
|
80
|
-
message: string;
|
|
81
|
-
request: Log.Request;
|
|
82
|
-
requestId: string;
|
|
83
|
-
response: Log.Response;
|
|
84
|
-
time: number;
|
|
85
|
-
type: 'network' | 'system';
|
|
86
|
-
}
|
|
87
|
-
namespace Log {
|
|
88
|
-
interface Request {
|
|
89
|
-
method: string;
|
|
90
|
-
url: string;
|
|
91
|
-
headers?: {
|
|
92
|
-
[key: string]: string;
|
|
93
|
-
};
|
|
94
|
-
json?: {
|
|
95
|
-
[key: string]: unknown;
|
|
96
|
-
};
|
|
97
|
-
params?: {
|
|
98
|
-
[key: string]: unknown;
|
|
99
|
-
};
|
|
100
|
-
timeout?: number;
|
|
101
|
-
}
|
|
102
|
-
interface Response {
|
|
103
|
-
status: number;
|
|
104
|
-
time: string;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
interface Metadata {
|
|
108
|
-
encryption?: string;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
export interface ActionExecutionSearchLogsResponse {
|
|
113
|
-
data: Array<ActionExecutionSearchLogsResponse.Data>;
|
|
114
|
-
nextCursor: number | null;
|
|
115
|
-
}
|
|
116
|
-
export declare namespace ActionExecutionSearchLogsResponse {
|
|
117
|
-
interface Data {
|
|
118
|
-
id: string;
|
|
119
|
-
actionKey: string;
|
|
120
|
-
app: Data.App;
|
|
121
|
-
appKey: string;
|
|
122
|
-
connectedAccountId: string;
|
|
123
|
-
createdAt: number;
|
|
124
|
-
entityId: string;
|
|
125
|
-
executionTime: number;
|
|
126
|
-
minimalResponse: string;
|
|
127
|
-
status: 'success' | 'failed';
|
|
128
|
-
}
|
|
129
|
-
namespace Data {
|
|
130
|
-
interface App {
|
|
131
|
-
icon: string;
|
|
132
|
-
name: string;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
export interface ActionExecutionSearchLogsParams {
|
|
137
|
-
/**
|
|
138
|
-
* cursor_that_can_be_used_to_paginate_through_the_logs
|
|
139
|
-
*/
|
|
140
|
-
cursor: number | null;
|
|
141
|
-
/**
|
|
142
|
-
* whether_the_search_is_case_sensitive_or_not
|
|
143
|
-
*/
|
|
144
|
-
case_sensitive?: boolean;
|
|
145
|
-
/**
|
|
146
|
-
* start_time_of_the_logs_in_epoch_time
|
|
147
|
-
*/
|
|
148
|
-
from?: number;
|
|
149
|
-
/**
|
|
150
|
-
* number_of_logs_to_return
|
|
151
|
-
*/
|
|
152
|
-
limit?: number;
|
|
153
|
-
search_params?: Array<ActionExecutionSearchLogsParams.SearchParam>;
|
|
154
|
-
/**
|
|
155
|
-
* end_time_of_the_logs_in_epoch_time
|
|
156
|
-
*/
|
|
157
|
-
to?: number;
|
|
158
|
-
}
|
|
159
|
-
export declare namespace ActionExecutionSearchLogsParams {
|
|
160
|
-
interface SearchParam {
|
|
161
|
-
field?: string;
|
|
162
|
-
operation?: string;
|
|
163
|
-
value?: string;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
export declare namespace ActionExecution {
|
|
167
|
-
export { type ActionExecutionRetrieveLogResponse as ActionExecutionRetrieveLogResponse, type ActionExecutionSearchLogsResponse as ActionExecutionSearchLogsResponse, type ActionExecutionSearchLogsParams as ActionExecutionSearchLogsParams, };
|
|
168
|
-
}
|
|
169
|
-
//# sourceMappingURL=action-execution.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"action-execution.d.ts","sourceRoot":"","sources":["../../../src/resources/v3/internal/action-execution.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;OAUG;IACH,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kCAAkC,CAAC;IAIjG;;;;;;;;;;OAUG;IACH,UAAU,CACR,IAAI,EAAE,+BAA+B,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iCAAiC,CAAC;CAGjD;AAED,MAAM,WAAW,kCAAkC;IACjD,QAAQ,EAAE,MAAM,CAAC;IAEjB,WAAW,EAAE,MAAM,CAAC;IAEpB,GAAG,EAAE,kCAAkC,CAAC,GAAG,CAAC;IAE5C,UAAU,EAAE,kCAAkC,CAAC,UAAU,CAAC;IAE1D,OAAO,EAAE,MAAM,CAAC;IAEhB,KAAK,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAElC,iBAAiB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAE9C,eAAe,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAE5C,QAAQ,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAErC,OAAO,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAEpC,SA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AO,CAAC;IAEzB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,aAAa,CAAC,EAAE,KAAK,CAAC,+BAA+B,CAAC,WAAW,CAAC,CAAC;IAEnE;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,yBAAiB,+BAA+B,CAAC;IAC/C,UAAiB,WAAW;QAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf,SAAS,CAAC,EAAE,MAAM,CAAC;QAEnB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC;IACvC,OAAO,EACL,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;CACH"}
|
|
@@ -1,38 +0,0 @@
|
|
|
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.ActionExecution = void 0;
|
|
5
|
-
const resource_1 = require("../../../core/resource.js");
|
|
6
|
-
const path_1 = require("../../../internal/utils/path.js");
|
|
7
|
-
class ActionExecution extends resource_1.APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Get detailed execution log by ID
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```ts
|
|
13
|
-
* const response =
|
|
14
|
-
* await client.v3.internal.actionExecution.retrieveLog(
|
|
15
|
-
* 'id',
|
|
16
|
-
* );
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
retrieveLog(id, options) {
|
|
20
|
-
return this._client.get((0, path_1.path) `/api/v3/internal/action_execution/log/${id}`, options);
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Search and retrieve action execution logs
|
|
24
|
-
*
|
|
25
|
-
* @example
|
|
26
|
-
* ```ts
|
|
27
|
-
* const response =
|
|
28
|
-
* await client.v3.internal.actionExecution.searchLogs({
|
|
29
|
-
* cursor: 0,
|
|
30
|
-
* });
|
|
31
|
-
* ```
|
|
32
|
-
*/
|
|
33
|
-
searchLogs(body, options) {
|
|
34
|
-
return this._client.post('/api/v3/internal/action_execution/logs', { body, ...options });
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
exports.ActionExecution = ActionExecution;
|
|
38
|
-
//# sourceMappingURL=action-execution.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"action-execution.js","sourceRoot":"","sources":["../../../src/resources/v3/internal/action-execution.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAoD;AAEpD,MAAa,eAAgB,SAAQ,sBAAW;IAC9C;;;;;;;;;;OAUG;IACH,WAAW,CAAC,EAAU,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,yCAAyC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACtF,CAAC;IAED;;;;;;;;;;OAUG;IACH,UAAU,CACR,IAAqC,EACrC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wCAAwC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;CACF;AAjCD,0CAiCC"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
-
import { path } from "../../../internal/utils/path.mjs";
|
|
4
|
-
export class ActionExecution extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Get detailed execution log by ID
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```ts
|
|
10
|
-
* const response =
|
|
11
|
-
* await client.v3.internal.actionExecution.retrieveLog(
|
|
12
|
-
* 'id',
|
|
13
|
-
* );
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
|
-
retrieveLog(id, options) {
|
|
17
|
-
return this._client.get(path `/api/v3/internal/action_execution/log/${id}`, options);
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Search and retrieve action execution logs
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* ```ts
|
|
24
|
-
* const response =
|
|
25
|
-
* await client.v3.internal.actionExecution.searchLogs({
|
|
26
|
-
* cursor: 0,
|
|
27
|
-
* });
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
searchLogs(body, options) {
|
|
31
|
-
return this._client.post('/api/v3/internal/action_execution/logs', { body, ...options });
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
//# sourceMappingURL=action-execution.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"action-execution.mjs","sourceRoot":"","sources":["../../../src/resources/v3/internal/action-execution.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;OAUG;IACH,WAAW,CAAC,EAAU,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,yCAAyC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACtF,CAAC;IAED;;;;;;;;;;OAUG;IACH,UAAU,CACR,IAAqC,EACrC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wCAAwC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;CACF"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { ActionExecution, type ActionExecutionRetrieveLogResponse, type ActionExecutionSearchLogsResponse, type ActionExecutionSearchLogsParams, } from "./action-execution.mjs";
|
|
2
|
-
export { Internal } from "./internal.mjs";
|
|
3
|
-
export { Trigger, type TriggerSearchLogsResponse, type TriggerSearchLogsParams } from "./trigger.mjs";
|
|
4
|
-
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v3/internal/index.ts"],"names":[],"mappings":"OAEO,EACL,eAAe,EACf,KAAK,kCAAkC,EACvC,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,GACrC;OACM,EAAE,QAAQ,EAAE;OACZ,EAAE,OAAO,EAAE,KAAK,yBAAyB,EAAE,KAAK,uBAAuB,EAAE"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { ActionExecution, type ActionExecutionRetrieveLogResponse, type ActionExecutionSearchLogsResponse, type ActionExecutionSearchLogsParams, } from "./action-execution.js";
|
|
2
|
-
export { Internal } from "./internal.js";
|
|
3
|
-
export { Trigger, type TriggerSearchLogsResponse, type TriggerSearchLogsParams } from "./trigger.js";
|
|
4
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v3/internal/index.ts"],"names":[],"mappings":"OAEO,EACL,eAAe,EACf,KAAK,kCAAkC,EACvC,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,GACrC;OACM,EAAE,QAAQ,EAAE;OACZ,EAAE,OAAO,EAAE,KAAK,yBAAyB,EAAE,KAAK,uBAAuB,EAAE"}
|
|
@@ -1,11 +0,0 @@
|
|
|
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.Trigger = exports.Internal = exports.ActionExecution = void 0;
|
|
5
|
-
var action_execution_1 = require("./action-execution.js");
|
|
6
|
-
Object.defineProperty(exports, "ActionExecution", { enumerable: true, get: function () { return action_execution_1.ActionExecution; } });
|
|
7
|
-
var internal_1 = require("./internal.js");
|
|
8
|
-
Object.defineProperty(exports, "Internal", { enumerable: true, get: function () { return internal_1.Internal; } });
|
|
9
|
-
var trigger_1 = require("./trigger.js");
|
|
10
|
-
Object.defineProperty(exports, "Trigger", { enumerable: true, get: function () { return trigger_1.Trigger; } });
|
|
11
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v3/internal/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0DAK4B;AAJ1B,mHAAA,eAAe,OAAA;AAKjB,0CAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,wCAAkG;AAAzF,kGAAA,OAAO,OAAA"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
export { ActionExecution, } from "./action-execution.mjs";
|
|
3
|
-
export { Internal } from "./internal.mjs";
|
|
4
|
-
export { Trigger } from "./trigger.mjs";
|
|
5
|
-
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v3/internal/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,eAAe,GAIhB;OACM,EAAE,QAAQ,EAAE;OACZ,EAAE,OAAO,EAAgE"}
|