@composio/client 0.1.0-alpha.58 → 0.1.0-alpha.59
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 +8 -0
- package/package.json +1 -1
- package/resources/logs/index.d.mts +1 -1
- package/resources/logs/index.d.mts.map +1 -1
- package/resources/logs/index.d.ts +1 -1
- package/resources/logs/index.d.ts.map +1 -1
- package/resources/logs/index.js.map +1 -1
- package/resources/logs/index.mjs +1 -1
- package/resources/logs/index.mjs.map +1 -1
- package/resources/logs/logs.d.mts +2 -2
- package/resources/logs/logs.d.mts.map +1 -1
- package/resources/logs/logs.d.ts +2 -2
- package/resources/logs/logs.d.ts.map +1 -1
- package/resources/logs/logs.js.map +1 -1
- package/resources/logs/logs.mjs.map +1 -1
- package/resources/logs/tools.d.mts +76 -57
- package/resources/logs/tools.d.mts.map +1 -1
- package/resources/logs/tools.d.ts +76 -57
- package/resources/logs/tools.d.ts.map +1 -1
- package/resources/logs/tools.js +5 -6
- package/resources/logs/tools.js.map +1 -1
- package/resources/logs/tools.mjs +5 -6
- package/resources/logs/tools.mjs.map +1 -1
- package/src/resources/logs/index.ts +1 -7
- package/src/resources/logs/logs.ts +1 -2
- package/src/resources/logs/tools.ts +90 -68
- 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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.59 (2026-02-25)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.1.0-alpha.58...v0.1.0-alpha.59](https://github.com/ComposioHQ/composio-base-ts/compare/v0.1.0-alpha.58...v0.1.0-alpha.59)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** fix tool log fetching ([9a5ca29](https://github.com/ComposioHQ/composio-base-ts/commit/9a5ca297ad1f04fd7820c278bfd45c35db8a5b99))
|
|
10
|
+
|
|
3
11
|
## 0.1.0-alpha.58 (2026-02-25)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v0.1.0-alpha.57...v0.1.0-alpha.58](https://github.com/ComposioHQ/composio-base-ts/compare/v0.1.0-alpha.57...v0.1.0-alpha.58)
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { Logs } from "./logs.mjs";
|
|
2
|
-
export { Tools, type ToolRetrieveResponse, type ToolListResponse, type
|
|
2
|
+
export { Tools, type ToolRetrieveResponse, type ToolListResponse, type ToolListParams } from "./tools.mjs";
|
|
3
3
|
export { Triggers, type TriggerListResponse, type TriggerListParams } from "./triggers.mjs";
|
|
4
4
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/logs/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE;OACR,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/logs/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE;OACR,EAAE,KAAK,EAAE,KAAK,oBAAoB,EAAE,KAAK,gBAAgB,EAAE,KAAK,cAAc,EAAE;OAChF,EAAE,QAAQ,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { Logs } from "./logs.js";
|
|
2
|
-
export { Tools, type ToolRetrieveResponse, type ToolListResponse, type
|
|
2
|
+
export { Tools, type ToolRetrieveResponse, type ToolListResponse, type ToolListParams } from "./tools.js";
|
|
3
3
|
export { Triggers, type TriggerListResponse, type TriggerListParams } from "./triggers.js";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/logs/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE;OACR,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/logs/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE;OACR,EAAE,KAAK,EAAE,KAAK,oBAAoB,EAAE,KAAK,gBAAgB,EAAE,KAAK,cAAc,EAAE;OAChF,EAAE,QAAQ,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/logs/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kCAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/logs/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kCAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,oCAAuG;AAA9F,8FAAA,KAAK,OAAA;AACd,0CAAwF;AAA/E,oGAAA,QAAQ,OAAA"}
|
package/resources/logs/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
export { Logs } from "./logs.mjs";
|
|
3
|
-
export { Tools
|
|
3
|
+
export { Tools } from "./tools.mjs";
|
|
4
4
|
export { Triggers } from "./triggers.mjs";
|
|
5
5
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/logs/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,IAAI,EAAE;OACR,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/logs/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,IAAI,EAAE;OACR,EAAE,KAAK,EAAyE;OAChF,EAAE,QAAQ,EAAoD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
2
|
import * as ToolsAPI from "./tools.mjs";
|
|
3
|
-
import { ToolListParams, ToolListResponse,
|
|
3
|
+
import { ToolListParams, ToolListResponse, ToolRetrieveResponse, Tools } from "./tools.mjs";
|
|
4
4
|
import * as TriggersAPI from "./triggers.mjs";
|
|
5
5
|
import { TriggerListParams, TriggerListResponse, Triggers } from "./triggers.mjs";
|
|
6
6
|
export declare class Logs extends APIResource {
|
|
@@ -9,6 +9,6 @@ export declare class Logs extends APIResource {
|
|
|
9
9
|
}
|
|
10
10
|
export declare namespace Logs {
|
|
11
11
|
export { Triggers as Triggers, type TriggerListResponse as TriggerListResponse, type TriggerListParams as TriggerListParams, };
|
|
12
|
-
export { Tools as Tools, type ToolRetrieveResponse as ToolRetrieveResponse, type ToolListResponse as ToolListResponse, type
|
|
12
|
+
export { Tools as Tools, type ToolRetrieveResponse as ToolRetrieveResponse, type ToolListResponse as ToolListResponse, type ToolListParams as ToolListParams, };
|
|
13
13
|
}
|
|
14
14
|
//# sourceMappingURL=logs.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logs.d.mts","sourceRoot":"","sources":["../../src/resources/logs/logs.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,cAAc,EAAE,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"logs.d.mts","sourceRoot":"","sources":["../../src/resources/logs/logs.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,cAAc,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,KAAK,EAAE;OACjE,KAAK,WAAW;OAChB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,QAAQ,EAAE;AAE3D,qBAAa,IAAK,SAAQ,WAAW;IACnC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IACxE,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;CAC1D;AAKD,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;IAEF,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;CACH"}
|
package/resources/logs/logs.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
2
|
import * as ToolsAPI from "./tools.js";
|
|
3
|
-
import { ToolListParams, ToolListResponse,
|
|
3
|
+
import { ToolListParams, ToolListResponse, ToolRetrieveResponse, Tools } from "./tools.js";
|
|
4
4
|
import * as TriggersAPI from "./triggers.js";
|
|
5
5
|
import { TriggerListParams, TriggerListResponse, Triggers } from "./triggers.js";
|
|
6
6
|
export declare class Logs extends APIResource {
|
|
@@ -9,6 +9,6 @@ export declare class Logs extends APIResource {
|
|
|
9
9
|
}
|
|
10
10
|
export declare namespace Logs {
|
|
11
11
|
export { Triggers as Triggers, type TriggerListResponse as TriggerListResponse, type TriggerListParams as TriggerListParams, };
|
|
12
|
-
export { Tools as Tools, type ToolRetrieveResponse as ToolRetrieveResponse, type ToolListResponse as ToolListResponse, type
|
|
12
|
+
export { Tools as Tools, type ToolRetrieveResponse as ToolRetrieveResponse, type ToolListResponse as ToolListResponse, type ToolListParams as ToolListParams, };
|
|
13
13
|
}
|
|
14
14
|
//# sourceMappingURL=logs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logs.d.ts","sourceRoot":"","sources":["../../src/resources/logs/logs.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,cAAc,EAAE,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"logs.d.ts","sourceRoot":"","sources":["../../src/resources/logs/logs.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,cAAc,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,KAAK,EAAE;OACjE,KAAK,WAAW;OAChB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,QAAQ,EAAE;AAE3D,qBAAa,IAAK,SAAQ,WAAW;IACnC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IACxE,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;CAC1D;AAKD,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;IAEF,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logs.js","sourceRoot":"","sources":["../../src/resources/logs/logs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,6DAAoC;AACpC,
|
|
1
|
+
{"version":3,"file":"logs.js","sourceRoot":"","sources":["../../src/resources/logs/logs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,6DAAoC;AACpC,sCAAwF;AACxF,mEAA0C;AAC1C,4CAA8E;AAE9E,MAAa,IAAK,SAAQ,sBAAW;IAArC;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC3D,CAAC;CAAA;AAHD,oBAGC;AAED,IAAI,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AACzB,IAAI,CAAC,KAAK,GAAG,aAAK,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logs.mjs","sourceRoot":"","sources":["../../src/resources/logs/logs.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,
|
|
1
|
+
{"version":3,"file":"logs.mjs","sourceRoot":"","sources":["../../src/resources/logs/logs.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAA0D,KAAK,EAAE;OACjE,KAAK,WAAW;OAChB,EAA0C,QAAQ,EAAE;AAE3D,MAAM,OAAO,IAAK,SAAQ,WAAW;IAArC;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC3D,CAAC;CAAA;AAED,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;AACzB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC"}
|
|
@@ -3,16 +3,14 @@ import { APIPromise } from "../../core/api-promise.mjs";
|
|
|
3
3
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
4
|
export declare class Tools extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Get detailed execution log by ID
|
|
7
7
|
*
|
|
8
8
|
* @example
|
|
9
9
|
* ```ts
|
|
10
|
-
* const tool = await client.logs.tools.retrieve(
|
|
11
|
-
* cursor: 0,
|
|
12
|
-
* });
|
|
10
|
+
* const tool = await client.logs.tools.retrieve('id');
|
|
13
11
|
* ```
|
|
14
12
|
*/
|
|
15
|
-
retrieve(
|
|
13
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<ToolRetrieveResponse>;
|
|
16
14
|
/**
|
|
17
15
|
* Search and retrieve action execution logs
|
|
18
16
|
*
|
|
@@ -24,33 +22,84 @@ export declare class Tools extends APIResource {
|
|
|
24
22
|
list(body: ToolListParams, options?: RequestOptions): APIPromise<ToolListResponse>;
|
|
25
23
|
}
|
|
26
24
|
export interface ToolRetrieveResponse {
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
actionId: string;
|
|
26
|
+
actionLogId: string;
|
|
27
|
+
app: ToolRetrieveResponse.App;
|
|
28
|
+
connection: ToolRetrieveResponse.Connection;
|
|
29
|
+
endTime: number;
|
|
30
|
+
error: {
|
|
31
|
+
[key: string]: unknown;
|
|
32
|
+
};
|
|
33
|
+
executionMetadata: {
|
|
34
|
+
[key: string]: unknown;
|
|
35
|
+
};
|
|
36
|
+
payloadReceived: {
|
|
37
|
+
[key: string]: unknown;
|
|
38
|
+
};
|
|
39
|
+
response: {
|
|
40
|
+
[key: string]: unknown;
|
|
41
|
+
};
|
|
42
|
+
session: {
|
|
43
|
+
[key: string]: unknown;
|
|
44
|
+
};
|
|
45
|
+
startTime: number;
|
|
46
|
+
status: 'success' | 'error' | 'warning' | 'info';
|
|
47
|
+
steps: Array<ToolRetrieveResponse.Step>;
|
|
48
|
+
totalDuration: string;
|
|
49
|
+
version: string;
|
|
29
50
|
}
|
|
30
51
|
export declare namespace ToolRetrieveResponse {
|
|
31
|
-
interface
|
|
52
|
+
interface App {
|
|
53
|
+
icon: string;
|
|
54
|
+
name: string;
|
|
55
|
+
uniqueId: string;
|
|
56
|
+
}
|
|
57
|
+
interface Connection {
|
|
32
58
|
id: string;
|
|
33
|
-
|
|
34
|
-
app: Data.App;
|
|
35
|
-
appKey: string;
|
|
36
|
-
connectedAccountId: string;
|
|
37
|
-
createdAt: number;
|
|
38
|
-
entityId: string;
|
|
39
|
-
executionTime: number;
|
|
40
|
-
/**
|
|
41
|
-
* @deprecated
|
|
42
|
-
*/
|
|
43
|
-
minimalResponse: string;
|
|
44
|
-
status: 'success' | 'failed';
|
|
45
|
-
metadata?: Data.Metadata;
|
|
59
|
+
entity: string;
|
|
46
60
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
61
|
+
interface Step {
|
|
62
|
+
endTime: number;
|
|
63
|
+
message: string;
|
|
64
|
+
startTime: number;
|
|
65
|
+
status: 'success' | 'failure' | 'error';
|
|
66
|
+
totalDuration: number;
|
|
67
|
+
type: 'tool_execution' | 'fetch_connection_details';
|
|
68
|
+
logs?: Array<Step.Log>;
|
|
69
|
+
metadata?: Step.Metadata;
|
|
70
|
+
}
|
|
71
|
+
namespace Step {
|
|
72
|
+
interface Log {
|
|
73
|
+
level: string;
|
|
74
|
+
message: string;
|
|
75
|
+
request: Log.Request;
|
|
76
|
+
requestId: string;
|
|
77
|
+
response: Log.Response;
|
|
78
|
+
time: number;
|
|
79
|
+
type: 'network' | 'system';
|
|
80
|
+
}
|
|
81
|
+
namespace Log {
|
|
82
|
+
interface Request {
|
|
83
|
+
method: string;
|
|
84
|
+
url: string;
|
|
85
|
+
headers?: {
|
|
86
|
+
[key: string]: string;
|
|
87
|
+
};
|
|
88
|
+
json?: {
|
|
89
|
+
[key: string]: unknown;
|
|
90
|
+
};
|
|
91
|
+
params?: {
|
|
92
|
+
[key: string]: unknown;
|
|
93
|
+
};
|
|
94
|
+
timeout?: number;
|
|
95
|
+
}
|
|
96
|
+
interface Response {
|
|
97
|
+
status: number;
|
|
98
|
+
time: string;
|
|
99
|
+
}
|
|
51
100
|
}
|
|
52
101
|
interface Metadata {
|
|
53
|
-
|
|
102
|
+
encryption?: string;
|
|
54
103
|
}
|
|
55
104
|
}
|
|
56
105
|
}
|
|
@@ -85,36 +134,6 @@ export declare namespace ToolListResponse {
|
|
|
85
134
|
}
|
|
86
135
|
}
|
|
87
136
|
}
|
|
88
|
-
export interface ToolRetrieveParams {
|
|
89
|
-
/**
|
|
90
|
-
* cursor_that_can_be_used_to_paginate_through_the_logs
|
|
91
|
-
*/
|
|
92
|
-
cursor: number | null;
|
|
93
|
-
/**
|
|
94
|
-
* whether_the_search_is_case_sensitive_or_not
|
|
95
|
-
*/
|
|
96
|
-
case_sensitive?: boolean | null;
|
|
97
|
-
/**
|
|
98
|
-
* start_time_of_the_logs_in_epoch_time
|
|
99
|
-
*/
|
|
100
|
-
from?: number;
|
|
101
|
-
/**
|
|
102
|
-
* number_of_logs_to_return
|
|
103
|
-
*/
|
|
104
|
-
limit?: number;
|
|
105
|
-
search_params?: Array<ToolRetrieveParams.SearchParam>;
|
|
106
|
-
/**
|
|
107
|
-
* end_time_of_the_logs_in_epoch_time
|
|
108
|
-
*/
|
|
109
|
-
to?: number;
|
|
110
|
-
}
|
|
111
|
-
export declare namespace ToolRetrieveParams {
|
|
112
|
-
interface SearchParam {
|
|
113
|
-
field?: string;
|
|
114
|
-
operation?: string;
|
|
115
|
-
value?: string;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
137
|
export interface ToolListParams {
|
|
119
138
|
/**
|
|
120
139
|
* cursor_that_can_be_used_to_paginate_through_the_logs
|
|
@@ -146,6 +165,6 @@ export declare namespace ToolListParams {
|
|
|
146
165
|
}
|
|
147
166
|
}
|
|
148
167
|
export declare namespace Tools {
|
|
149
|
-
export { type ToolRetrieveResponse as ToolRetrieveResponse, type ToolListResponse as ToolListResponse, type
|
|
168
|
+
export { type ToolRetrieveResponse as ToolRetrieveResponse, type ToolListResponse as ToolListResponse, type ToolListParams as ToolListParams, };
|
|
150
169
|
}
|
|
151
170
|
//# sourceMappingURL=tools.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.mts","sourceRoot":"","sources":["../../src/resources/logs/tools.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,E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AI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,aAAa,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;IAElD;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,yBAAiB,cAAc,CAAC;IAC9B,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,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;CACH"}
|
|
@@ -3,16 +3,14 @@ import { APIPromise } from "../../core/api-promise.js";
|
|
|
3
3
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
4
|
export declare class Tools extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Get detailed execution log by ID
|
|
7
7
|
*
|
|
8
8
|
* @example
|
|
9
9
|
* ```ts
|
|
10
|
-
* const tool = await client.logs.tools.retrieve(
|
|
11
|
-
* cursor: 0,
|
|
12
|
-
* });
|
|
10
|
+
* const tool = await client.logs.tools.retrieve('id');
|
|
13
11
|
* ```
|
|
14
12
|
*/
|
|
15
|
-
retrieve(
|
|
13
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<ToolRetrieveResponse>;
|
|
16
14
|
/**
|
|
17
15
|
* Search and retrieve action execution logs
|
|
18
16
|
*
|
|
@@ -24,33 +22,84 @@ export declare class Tools extends APIResource {
|
|
|
24
22
|
list(body: ToolListParams, options?: RequestOptions): APIPromise<ToolListResponse>;
|
|
25
23
|
}
|
|
26
24
|
export interface ToolRetrieveResponse {
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
actionId: string;
|
|
26
|
+
actionLogId: string;
|
|
27
|
+
app: ToolRetrieveResponse.App;
|
|
28
|
+
connection: ToolRetrieveResponse.Connection;
|
|
29
|
+
endTime: number;
|
|
30
|
+
error: {
|
|
31
|
+
[key: string]: unknown;
|
|
32
|
+
};
|
|
33
|
+
executionMetadata: {
|
|
34
|
+
[key: string]: unknown;
|
|
35
|
+
};
|
|
36
|
+
payloadReceived: {
|
|
37
|
+
[key: string]: unknown;
|
|
38
|
+
};
|
|
39
|
+
response: {
|
|
40
|
+
[key: string]: unknown;
|
|
41
|
+
};
|
|
42
|
+
session: {
|
|
43
|
+
[key: string]: unknown;
|
|
44
|
+
};
|
|
45
|
+
startTime: number;
|
|
46
|
+
status: 'success' | 'error' | 'warning' | 'info';
|
|
47
|
+
steps: Array<ToolRetrieveResponse.Step>;
|
|
48
|
+
totalDuration: string;
|
|
49
|
+
version: string;
|
|
29
50
|
}
|
|
30
51
|
export declare namespace ToolRetrieveResponse {
|
|
31
|
-
interface
|
|
52
|
+
interface App {
|
|
53
|
+
icon: string;
|
|
54
|
+
name: string;
|
|
55
|
+
uniqueId: string;
|
|
56
|
+
}
|
|
57
|
+
interface Connection {
|
|
32
58
|
id: string;
|
|
33
|
-
|
|
34
|
-
app: Data.App;
|
|
35
|
-
appKey: string;
|
|
36
|
-
connectedAccountId: string;
|
|
37
|
-
createdAt: number;
|
|
38
|
-
entityId: string;
|
|
39
|
-
executionTime: number;
|
|
40
|
-
/**
|
|
41
|
-
* @deprecated
|
|
42
|
-
*/
|
|
43
|
-
minimalResponse: string;
|
|
44
|
-
status: 'success' | 'failed';
|
|
45
|
-
metadata?: Data.Metadata;
|
|
59
|
+
entity: string;
|
|
46
60
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
61
|
+
interface Step {
|
|
62
|
+
endTime: number;
|
|
63
|
+
message: string;
|
|
64
|
+
startTime: number;
|
|
65
|
+
status: 'success' | 'failure' | 'error';
|
|
66
|
+
totalDuration: number;
|
|
67
|
+
type: 'tool_execution' | 'fetch_connection_details';
|
|
68
|
+
logs?: Array<Step.Log>;
|
|
69
|
+
metadata?: Step.Metadata;
|
|
70
|
+
}
|
|
71
|
+
namespace Step {
|
|
72
|
+
interface Log {
|
|
73
|
+
level: string;
|
|
74
|
+
message: string;
|
|
75
|
+
request: Log.Request;
|
|
76
|
+
requestId: string;
|
|
77
|
+
response: Log.Response;
|
|
78
|
+
time: number;
|
|
79
|
+
type: 'network' | 'system';
|
|
80
|
+
}
|
|
81
|
+
namespace Log {
|
|
82
|
+
interface Request {
|
|
83
|
+
method: string;
|
|
84
|
+
url: string;
|
|
85
|
+
headers?: {
|
|
86
|
+
[key: string]: string;
|
|
87
|
+
};
|
|
88
|
+
json?: {
|
|
89
|
+
[key: string]: unknown;
|
|
90
|
+
};
|
|
91
|
+
params?: {
|
|
92
|
+
[key: string]: unknown;
|
|
93
|
+
};
|
|
94
|
+
timeout?: number;
|
|
95
|
+
}
|
|
96
|
+
interface Response {
|
|
97
|
+
status: number;
|
|
98
|
+
time: string;
|
|
99
|
+
}
|
|
51
100
|
}
|
|
52
101
|
interface Metadata {
|
|
53
|
-
|
|
102
|
+
encryption?: string;
|
|
54
103
|
}
|
|
55
104
|
}
|
|
56
105
|
}
|
|
@@ -85,36 +134,6 @@ export declare namespace ToolListResponse {
|
|
|
85
134
|
}
|
|
86
135
|
}
|
|
87
136
|
}
|
|
88
|
-
export interface ToolRetrieveParams {
|
|
89
|
-
/**
|
|
90
|
-
* cursor_that_can_be_used_to_paginate_through_the_logs
|
|
91
|
-
*/
|
|
92
|
-
cursor: number | null;
|
|
93
|
-
/**
|
|
94
|
-
* whether_the_search_is_case_sensitive_or_not
|
|
95
|
-
*/
|
|
96
|
-
case_sensitive?: boolean | null;
|
|
97
|
-
/**
|
|
98
|
-
* start_time_of_the_logs_in_epoch_time
|
|
99
|
-
*/
|
|
100
|
-
from?: number;
|
|
101
|
-
/**
|
|
102
|
-
* number_of_logs_to_return
|
|
103
|
-
*/
|
|
104
|
-
limit?: number;
|
|
105
|
-
search_params?: Array<ToolRetrieveParams.SearchParam>;
|
|
106
|
-
/**
|
|
107
|
-
* end_time_of_the_logs_in_epoch_time
|
|
108
|
-
*/
|
|
109
|
-
to?: number;
|
|
110
|
-
}
|
|
111
|
-
export declare namespace ToolRetrieveParams {
|
|
112
|
-
interface SearchParam {
|
|
113
|
-
field?: string;
|
|
114
|
-
operation?: string;
|
|
115
|
-
value?: string;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
137
|
export interface ToolListParams {
|
|
119
138
|
/**
|
|
120
139
|
* cursor_that_can_be_used_to_paginate_through_the_logs
|
|
@@ -146,6 +165,6 @@ export declare namespace ToolListParams {
|
|
|
146
165
|
}
|
|
147
166
|
}
|
|
148
167
|
export declare namespace Tools {
|
|
149
|
-
export { type ToolRetrieveResponse as ToolRetrieveResponse, type ToolListResponse as ToolListResponse, type
|
|
168
|
+
export { type ToolRetrieveResponse as ToolRetrieveResponse, type ToolListResponse as ToolListResponse, type ToolListParams as ToolListParams, };
|
|
150
169
|
}
|
|
151
170
|
//# sourceMappingURL=tools.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/resources/logs/tools.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/resources/logs/tools.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAIhF;;;;;;;OAOG;IACH,IAAI,CAAC,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F;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;CACH"}
|
package/resources/logs/tools.js
CHANGED
|
@@ -3,19 +3,18 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Tools = void 0;
|
|
5
5
|
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
6
7
|
class Tools extends resource_1.APIResource {
|
|
7
8
|
/**
|
|
8
|
-
*
|
|
9
|
+
* Get detailed execution log by ID
|
|
9
10
|
*
|
|
10
11
|
* @example
|
|
11
12
|
* ```ts
|
|
12
|
-
* const tool = await client.logs.tools.retrieve(
|
|
13
|
-
* cursor: 0,
|
|
14
|
-
* });
|
|
13
|
+
* const tool = await client.logs.tools.retrieve('id');
|
|
15
14
|
* ```
|
|
16
15
|
*/
|
|
17
|
-
retrieve(
|
|
18
|
-
return this._client.
|
|
16
|
+
retrieve(id, options) {
|
|
17
|
+
return this._client.get((0, path_1.path) `/api/v3/internal/action_execution/log/${id}`, options);
|
|
19
18
|
}
|
|
20
19
|
/**
|
|
21
20
|
* Search and retrieve action execution logs
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../src/resources/logs/tools.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;
|
|
1
|
+
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../src/resources/logs/tools.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,yCAAyC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACtF,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CAAC,IAAoB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wCAAwC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;CACF;AAxBD,sBAwBC"}
|
package/resources/logs/tools.mjs
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
3
4
|
export class Tools extends APIResource {
|
|
4
5
|
/**
|
|
5
|
-
*
|
|
6
|
+
* Get detailed execution log by ID
|
|
6
7
|
*
|
|
7
8
|
* @example
|
|
8
9
|
* ```ts
|
|
9
|
-
* const tool = await client.logs.tools.retrieve(
|
|
10
|
-
* cursor: 0,
|
|
11
|
-
* });
|
|
10
|
+
* const tool = await client.logs.tools.retrieve('id');
|
|
12
11
|
* ```
|
|
13
12
|
*/
|
|
14
|
-
retrieve(
|
|
15
|
-
return this._client.
|
|
13
|
+
retrieve(id, options) {
|
|
14
|
+
return this._client.get(path `/api/v3/internal/action_execution/log/${id}`, options);
|
|
16
15
|
}
|
|
17
16
|
/**
|
|
18
17
|
* Search and retrieve action execution logs
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.mjs","sourceRoot":"","sources":["../../src/resources/logs/tools.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"tools.mjs","sourceRoot":"","sources":["../../src/resources/logs/tools.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,yCAAyC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACtF,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CAAC,IAAoB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wCAAwC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;CACF"}
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
export { Logs } from './logs';
|
|
4
|
-
export {
|
|
5
|
-
Tools,
|
|
6
|
-
type ToolRetrieveResponse,
|
|
7
|
-
type ToolListResponse,
|
|
8
|
-
type ToolRetrieveParams,
|
|
9
|
-
type ToolListParams,
|
|
10
|
-
} from './tools';
|
|
4
|
+
export { Tools, type ToolRetrieveResponse, type ToolListResponse, type ToolListParams } from './tools';
|
|
11
5
|
export { Triggers, type TriggerListResponse, type TriggerListParams } from './triggers';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as ToolsAPI from './tools';
|
|
5
|
-
import { ToolListParams, ToolListResponse,
|
|
5
|
+
import { ToolListParams, ToolListResponse, ToolRetrieveResponse, Tools } from './tools';
|
|
6
6
|
import * as TriggersAPI from './triggers';
|
|
7
7
|
import { TriggerListParams, TriggerListResponse, Triggers } from './triggers';
|
|
8
8
|
|
|
@@ -25,7 +25,6 @@ export declare namespace Logs {
|
|
|
25
25
|
Tools as Tools,
|
|
26
26
|
type ToolRetrieveResponse as ToolRetrieveResponse,
|
|
27
27
|
type ToolListResponse as ToolListResponse,
|
|
28
|
-
type ToolRetrieveParams as ToolRetrieveParams,
|
|
29
28
|
type ToolListParams as ToolListParams,
|
|
30
29
|
};
|
|
31
30
|
}
|
|
@@ -3,20 +3,19 @@
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import { APIPromise } from '../../core/api-promise';
|
|
5
5
|
import { RequestOptions } from '../../internal/request-options';
|
|
6
|
+
import { path } from '../../internal/utils/path';
|
|
6
7
|
|
|
7
8
|
export class Tools extends APIResource {
|
|
8
9
|
/**
|
|
9
|
-
*
|
|
10
|
+
* Get detailed execution log by ID
|
|
10
11
|
*
|
|
11
12
|
* @example
|
|
12
13
|
* ```ts
|
|
13
|
-
* const tool = await client.logs.tools.retrieve(
|
|
14
|
-
* cursor: 0,
|
|
15
|
-
* });
|
|
14
|
+
* const tool = await client.logs.tools.retrieve('id');
|
|
16
15
|
* ```
|
|
17
16
|
*/
|
|
18
|
-
retrieve(
|
|
19
|
-
return this._client.
|
|
17
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<ToolRetrieveResponse> {
|
|
18
|
+
return this._client.get(path`/api/v3/internal/action_execution/log/${id}`, options);
|
|
20
19
|
}
|
|
21
20
|
|
|
22
21
|
/**
|
|
@@ -33,48 +32,111 @@ export class Tools extends APIResource {
|
|
|
33
32
|
}
|
|
34
33
|
|
|
35
34
|
export interface ToolRetrieveResponse {
|
|
36
|
-
|
|
35
|
+
actionId: string;
|
|
37
36
|
|
|
38
|
-
|
|
37
|
+
actionLogId: string;
|
|
38
|
+
|
|
39
|
+
app: ToolRetrieveResponse.App;
|
|
40
|
+
|
|
41
|
+
connection: ToolRetrieveResponse.Connection;
|
|
42
|
+
|
|
43
|
+
endTime: number;
|
|
44
|
+
|
|
45
|
+
error: { [key: string]: unknown };
|
|
46
|
+
|
|
47
|
+
executionMetadata: { [key: string]: unknown };
|
|
48
|
+
|
|
49
|
+
payloadReceived: { [key: string]: unknown };
|
|
50
|
+
|
|
51
|
+
response: { [key: string]: unknown };
|
|
52
|
+
|
|
53
|
+
session: { [key: string]: unknown };
|
|
54
|
+
|
|
55
|
+
startTime: number;
|
|
56
|
+
|
|
57
|
+
status: 'success' | 'error' | 'warning' | 'info';
|
|
58
|
+
|
|
59
|
+
steps: Array<ToolRetrieveResponse.Step>;
|
|
60
|
+
|
|
61
|
+
totalDuration: string;
|
|
62
|
+
|
|
63
|
+
version: string;
|
|
39
64
|
}
|
|
40
65
|
|
|
41
66
|
export namespace ToolRetrieveResponse {
|
|
42
|
-
export interface
|
|
43
|
-
|
|
67
|
+
export interface App {
|
|
68
|
+
icon: string;
|
|
44
69
|
|
|
45
|
-
|
|
70
|
+
name: string;
|
|
46
71
|
|
|
47
|
-
|
|
72
|
+
uniqueId: string;
|
|
73
|
+
}
|
|
48
74
|
|
|
49
|
-
|
|
75
|
+
export interface Connection {
|
|
76
|
+
id: string;
|
|
50
77
|
|
|
51
|
-
|
|
78
|
+
entity: string;
|
|
79
|
+
}
|
|
52
80
|
|
|
53
|
-
|
|
81
|
+
export interface Step {
|
|
82
|
+
endTime: number;
|
|
54
83
|
|
|
55
|
-
|
|
84
|
+
message: string;
|
|
56
85
|
|
|
57
|
-
|
|
86
|
+
startTime: number;
|
|
58
87
|
|
|
59
|
-
|
|
60
|
-
* @deprecated
|
|
61
|
-
*/
|
|
62
|
-
minimalResponse: string;
|
|
88
|
+
status: 'success' | 'failure' | 'error';
|
|
63
89
|
|
|
64
|
-
|
|
90
|
+
totalDuration: number;
|
|
65
91
|
|
|
66
|
-
|
|
92
|
+
type: 'tool_execution' | 'fetch_connection_details';
|
|
93
|
+
|
|
94
|
+
logs?: Array<Step.Log>;
|
|
95
|
+
|
|
96
|
+
metadata?: Step.Metadata;
|
|
67
97
|
}
|
|
68
98
|
|
|
69
|
-
export namespace
|
|
70
|
-
export interface
|
|
71
|
-
|
|
99
|
+
export namespace Step {
|
|
100
|
+
export interface Log {
|
|
101
|
+
level: string;
|
|
72
102
|
|
|
73
|
-
|
|
103
|
+
message: string;
|
|
104
|
+
|
|
105
|
+
request: Log.Request;
|
|
106
|
+
|
|
107
|
+
requestId: string;
|
|
108
|
+
|
|
109
|
+
response: Log.Response;
|
|
110
|
+
|
|
111
|
+
time: number;
|
|
112
|
+
|
|
113
|
+
type: 'network' | 'system';
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export namespace Log {
|
|
117
|
+
export interface Request {
|
|
118
|
+
method: string;
|
|
119
|
+
|
|
120
|
+
url: string;
|
|
121
|
+
|
|
122
|
+
headers?: { [key: string]: string };
|
|
123
|
+
|
|
124
|
+
json?: { [key: string]: unknown };
|
|
125
|
+
|
|
126
|
+
params?: { [key: string]: unknown };
|
|
127
|
+
|
|
128
|
+
timeout?: number;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export interface Response {
|
|
132
|
+
status: number;
|
|
133
|
+
|
|
134
|
+
time: string;
|
|
135
|
+
}
|
|
74
136
|
}
|
|
75
137
|
|
|
76
138
|
export interface Metadata {
|
|
77
|
-
|
|
139
|
+
encryption?: string;
|
|
78
140
|
}
|
|
79
141
|
}
|
|
80
142
|
}
|
|
@@ -126,45 +188,6 @@ export namespace ToolListResponse {
|
|
|
126
188
|
}
|
|
127
189
|
}
|
|
128
190
|
|
|
129
|
-
export interface ToolRetrieveParams {
|
|
130
|
-
/**
|
|
131
|
-
* cursor_that_can_be_used_to_paginate_through_the_logs
|
|
132
|
-
*/
|
|
133
|
-
cursor: number | null;
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* whether_the_search_is_case_sensitive_or_not
|
|
137
|
-
*/
|
|
138
|
-
case_sensitive?: boolean | null;
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* start_time_of_the_logs_in_epoch_time
|
|
142
|
-
*/
|
|
143
|
-
from?: number;
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* number_of_logs_to_return
|
|
147
|
-
*/
|
|
148
|
-
limit?: number;
|
|
149
|
-
|
|
150
|
-
search_params?: Array<ToolRetrieveParams.SearchParam>;
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* end_time_of_the_logs_in_epoch_time
|
|
154
|
-
*/
|
|
155
|
-
to?: number;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
export namespace ToolRetrieveParams {
|
|
159
|
-
export interface SearchParam {
|
|
160
|
-
field?: string;
|
|
161
|
-
|
|
162
|
-
operation?: string;
|
|
163
|
-
|
|
164
|
-
value?: string;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
|
|
168
191
|
export interface ToolListParams {
|
|
169
192
|
/**
|
|
170
193
|
* cursor_that_can_be_used_to_paginate_through_the_logs
|
|
@@ -208,7 +231,6 @@ export declare namespace Tools {
|
|
|
208
231
|
export {
|
|
209
232
|
type ToolRetrieveResponse as ToolRetrieveResponse,
|
|
210
233
|
type ToolListResponse as ToolListResponse,
|
|
211
|
-
type ToolRetrieveParams as ToolRetrieveParams,
|
|
212
234
|
type ToolListParams as ToolListParams,
|
|
213
235
|
};
|
|
214
236
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.59'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.0-alpha.
|
|
1
|
+
export declare const VERSION = "0.1.0-alpha.59";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.0-alpha.
|
|
1
|
+
export declare const VERSION = "0.1.0-alpha.59";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
|
-
exports.VERSION = '0.1.0-alpha.
|
|
4
|
+
exports.VERSION = '0.1.0-alpha.59'; // x-release-please-version
|
|
5
5
|
//# sourceMappingURL=version.js.map
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.59'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|