@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,236 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { APIResource } from '../../../core/resource';
|
|
4
|
-
import { APIPromise } from '../../../core/api-promise';
|
|
5
|
-
import { RequestOptions } from '../../../internal/request-options';
|
|
6
|
-
import { path } from '../../../internal/utils/path';
|
|
7
|
-
|
|
8
|
-
export class ActionExecution extends APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* Get detailed execution log by ID
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```ts
|
|
14
|
-
* const response =
|
|
15
|
-
* await client.v3.internal.actionExecution.retrieveLog(
|
|
16
|
-
* 'id',
|
|
17
|
-
* );
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
retrieveLog(id: string, options?: RequestOptions): APIPromise<ActionExecutionRetrieveLogResponse> {
|
|
21
|
-
return this._client.get(path`/api/v3/internal/action_execution/log/${id}`, options);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Search and retrieve action execution logs
|
|
26
|
-
*
|
|
27
|
-
* @example
|
|
28
|
-
* ```ts
|
|
29
|
-
* const response =
|
|
30
|
-
* await client.v3.internal.actionExecution.searchLogs({
|
|
31
|
-
* cursor: 0,
|
|
32
|
-
* });
|
|
33
|
-
* ```
|
|
34
|
-
*/
|
|
35
|
-
searchLogs(
|
|
36
|
-
body: ActionExecutionSearchLogsParams,
|
|
37
|
-
options?: RequestOptions,
|
|
38
|
-
): APIPromise<ActionExecutionSearchLogsResponse> {
|
|
39
|
-
return this._client.post('/api/v3/internal/action_execution/logs', { body, ...options });
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export interface ActionExecutionRetrieveLogResponse {
|
|
44
|
-
actionId: string;
|
|
45
|
-
|
|
46
|
-
actionLogId: string;
|
|
47
|
-
|
|
48
|
-
app: ActionExecutionRetrieveLogResponse.App;
|
|
49
|
-
|
|
50
|
-
connection: ActionExecutionRetrieveLogResponse.Connection;
|
|
51
|
-
|
|
52
|
-
endTime: number;
|
|
53
|
-
|
|
54
|
-
error: { [key: string]: unknown };
|
|
55
|
-
|
|
56
|
-
executionMetadata: { [key: string]: unknown };
|
|
57
|
-
|
|
58
|
-
payloadReceived: { [key: string]: unknown };
|
|
59
|
-
|
|
60
|
-
response: { [key: string]: unknown };
|
|
61
|
-
|
|
62
|
-
session: { [key: string]: unknown };
|
|
63
|
-
|
|
64
|
-
startTime: number;
|
|
65
|
-
|
|
66
|
-
status: 'success' | 'error' | 'warning' | 'info';
|
|
67
|
-
|
|
68
|
-
steps: Array<ActionExecutionRetrieveLogResponse.Step>;
|
|
69
|
-
|
|
70
|
-
totalDuration: string;
|
|
71
|
-
|
|
72
|
-
version: string;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export namespace ActionExecutionRetrieveLogResponse {
|
|
76
|
-
export interface App {
|
|
77
|
-
icon: string;
|
|
78
|
-
|
|
79
|
-
name: string;
|
|
80
|
-
|
|
81
|
-
uniqueId: string;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export interface Connection {
|
|
85
|
-
id: string;
|
|
86
|
-
|
|
87
|
-
entity: string;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
export interface Step {
|
|
91
|
-
endTime: number;
|
|
92
|
-
|
|
93
|
-
message: string;
|
|
94
|
-
|
|
95
|
-
startTime: number;
|
|
96
|
-
|
|
97
|
-
status: 'success' | 'failure' | 'error';
|
|
98
|
-
|
|
99
|
-
totalDuration: number;
|
|
100
|
-
|
|
101
|
-
type: 'tool_execution' | 'fetch_connection_details';
|
|
102
|
-
|
|
103
|
-
logs?: Array<Step.Log>;
|
|
104
|
-
|
|
105
|
-
metadata?: Step.Metadata;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
export namespace Step {
|
|
109
|
-
export interface Log {
|
|
110
|
-
level: string;
|
|
111
|
-
|
|
112
|
-
message: string;
|
|
113
|
-
|
|
114
|
-
request: Log.Request;
|
|
115
|
-
|
|
116
|
-
requestId: string;
|
|
117
|
-
|
|
118
|
-
response: Log.Response;
|
|
119
|
-
|
|
120
|
-
time: number;
|
|
121
|
-
|
|
122
|
-
type: 'network' | 'system';
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
export namespace Log {
|
|
126
|
-
export interface Request {
|
|
127
|
-
method: string;
|
|
128
|
-
|
|
129
|
-
url: string;
|
|
130
|
-
|
|
131
|
-
headers?: { [key: string]: string };
|
|
132
|
-
|
|
133
|
-
json?: { [key: string]: unknown };
|
|
134
|
-
|
|
135
|
-
params?: { [key: string]: unknown };
|
|
136
|
-
|
|
137
|
-
timeout?: number;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
export interface Response {
|
|
141
|
-
status: number;
|
|
142
|
-
|
|
143
|
-
time: string;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
export interface Metadata {
|
|
148
|
-
encryption?: string;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
export interface ActionExecutionSearchLogsResponse {
|
|
154
|
-
data: Array<ActionExecutionSearchLogsResponse.Data>;
|
|
155
|
-
|
|
156
|
-
nextCursor: number | null;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
export namespace ActionExecutionSearchLogsResponse {
|
|
160
|
-
export interface Data {
|
|
161
|
-
id: string;
|
|
162
|
-
|
|
163
|
-
actionKey: string;
|
|
164
|
-
|
|
165
|
-
app: Data.App;
|
|
166
|
-
|
|
167
|
-
appKey: string;
|
|
168
|
-
|
|
169
|
-
connectedAccountId: string;
|
|
170
|
-
|
|
171
|
-
createdAt: number;
|
|
172
|
-
|
|
173
|
-
entityId: string;
|
|
174
|
-
|
|
175
|
-
executionTime: number;
|
|
176
|
-
|
|
177
|
-
minimalResponse: string;
|
|
178
|
-
|
|
179
|
-
status: 'success' | 'failed';
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
export namespace Data {
|
|
183
|
-
export interface App {
|
|
184
|
-
icon: string;
|
|
185
|
-
|
|
186
|
-
name: string;
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
export interface ActionExecutionSearchLogsParams {
|
|
192
|
-
/**
|
|
193
|
-
* cursor_that_can_be_used_to_paginate_through_the_logs
|
|
194
|
-
*/
|
|
195
|
-
cursor: number | null;
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
* whether_the_search_is_case_sensitive_or_not
|
|
199
|
-
*/
|
|
200
|
-
case_sensitive?: boolean;
|
|
201
|
-
|
|
202
|
-
/**
|
|
203
|
-
* start_time_of_the_logs_in_epoch_time
|
|
204
|
-
*/
|
|
205
|
-
from?: number;
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* number_of_logs_to_return
|
|
209
|
-
*/
|
|
210
|
-
limit?: number;
|
|
211
|
-
|
|
212
|
-
search_params?: Array<ActionExecutionSearchLogsParams.SearchParam>;
|
|
213
|
-
|
|
214
|
-
/**
|
|
215
|
-
* end_time_of_the_logs_in_epoch_time
|
|
216
|
-
*/
|
|
217
|
-
to?: number;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
export namespace ActionExecutionSearchLogsParams {
|
|
221
|
-
export interface SearchParam {
|
|
222
|
-
field?: string;
|
|
223
|
-
|
|
224
|
-
operation?: string;
|
|
225
|
-
|
|
226
|
-
value?: string;
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
export declare namespace ActionExecution {
|
|
231
|
-
export {
|
|
232
|
-
type ActionExecutionRetrieveLogResponse as ActionExecutionRetrieveLogResponse,
|
|
233
|
-
type ActionExecutionSearchLogsResponse as ActionExecutionSearchLogsResponse,
|
|
234
|
-
type ActionExecutionSearchLogsParams as ActionExecutionSearchLogsParams,
|
|
235
|
-
};
|
|
236
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
export {
|
|
4
|
-
ActionExecution,
|
|
5
|
-
type ActionExecutionRetrieveLogResponse,
|
|
6
|
-
type ActionExecutionSearchLogsResponse,
|
|
7
|
-
type ActionExecutionSearchLogsParams,
|
|
8
|
-
} from './action-execution';
|
|
9
|
-
export { Internal } from './internal';
|
|
10
|
-
export { Trigger, type TriggerSearchLogsResponse, type TriggerSearchLogsParams } from './trigger';
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { APIResource } from '../../../core/resource';
|
|
4
|
-
import * as ActionExecutionAPI from './action-execution';
|
|
5
|
-
import {
|
|
6
|
-
ActionExecution,
|
|
7
|
-
ActionExecutionRetrieveLogResponse,
|
|
8
|
-
ActionExecutionSearchLogsParams,
|
|
9
|
-
ActionExecutionSearchLogsResponse,
|
|
10
|
-
} from './action-execution';
|
|
11
|
-
import * as TriggerAPI from './trigger';
|
|
12
|
-
import { Trigger, TriggerSearchLogsParams, TriggerSearchLogsResponse } from './trigger';
|
|
13
|
-
|
|
14
|
-
export class Internal extends APIResource {
|
|
15
|
-
trigger: TriggerAPI.Trigger = new TriggerAPI.Trigger(this._client);
|
|
16
|
-
actionExecution: ActionExecutionAPI.ActionExecution = new ActionExecutionAPI.ActionExecution(this._client);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
Internal.Trigger = Trigger;
|
|
20
|
-
Internal.ActionExecution = ActionExecution;
|
|
21
|
-
|
|
22
|
-
export declare namespace Internal {
|
|
23
|
-
export {
|
|
24
|
-
Trigger as Trigger,
|
|
25
|
-
type TriggerSearchLogsResponse as TriggerSearchLogsResponse,
|
|
26
|
-
type TriggerSearchLogsParams as TriggerSearchLogsParams,
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
export {
|
|
30
|
-
ActionExecution as ActionExecution,
|
|
31
|
-
type ActionExecutionRetrieveLogResponse as ActionExecutionRetrieveLogResponse,
|
|
32
|
-
type ActionExecutionSearchLogsResponse as ActionExecutionSearchLogsResponse,
|
|
33
|
-
type ActionExecutionSearchLogsParams as ActionExecutionSearchLogsParams,
|
|
34
|
-
};
|
|
35
|
-
}
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { APIResource } from '../../../core/resource';
|
|
4
|
-
import { APIPromise } from '../../../core/api-promise';
|
|
5
|
-
import { RequestOptions } from '../../../internal/request-options';
|
|
6
|
-
|
|
7
|
-
export class Trigger extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Search and retrieve trigger event logs
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```ts
|
|
13
|
-
* const response =
|
|
14
|
-
* await client.v3.internal.trigger.searchLogs({
|
|
15
|
-
* cursor: 'cursor',
|
|
16
|
-
* });
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
searchLogs(body: TriggerSearchLogsParams, options?: RequestOptions): APIPromise<TriggerSearchLogsResponse> {
|
|
20
|
-
return this._client.post('/api/v3/internal/trigger/logs', { body, ...options });
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export interface TriggerSearchLogsResponse {
|
|
25
|
-
nextCursor: string | null;
|
|
26
|
-
|
|
27
|
-
data?: Array<TriggerSearchLogsResponse.Data>;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export namespace TriggerSearchLogsResponse {
|
|
31
|
-
export interface Data {
|
|
32
|
-
id: string;
|
|
33
|
-
|
|
34
|
-
appName: string;
|
|
35
|
-
|
|
36
|
-
clientId: string;
|
|
37
|
-
|
|
38
|
-
connectionId: string;
|
|
39
|
-
|
|
40
|
-
createdAt: string;
|
|
41
|
-
|
|
42
|
-
entityId: string;
|
|
43
|
-
|
|
44
|
-
meta: Data.Meta;
|
|
45
|
-
|
|
46
|
-
status: string;
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Log entity type (trigger or action)
|
|
50
|
-
*/
|
|
51
|
-
type: 'trigger' | 'action';
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export namespace Data {
|
|
55
|
-
export interface Meta {
|
|
56
|
-
id: string;
|
|
57
|
-
|
|
58
|
-
clientId: string;
|
|
59
|
-
|
|
60
|
-
connectionId: string;
|
|
61
|
-
|
|
62
|
-
createdAt: string;
|
|
63
|
-
|
|
64
|
-
provider: string;
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* Log entity type (trigger or action)
|
|
68
|
-
*/
|
|
69
|
-
type: 'trigger' | 'action';
|
|
70
|
-
|
|
71
|
-
updatedAt: string;
|
|
72
|
-
|
|
73
|
-
triggerClientError?: string;
|
|
74
|
-
|
|
75
|
-
triggerClientPayload?: string;
|
|
76
|
-
|
|
77
|
-
triggerClientResponse?: string;
|
|
78
|
-
|
|
79
|
-
triggerName?: string;
|
|
80
|
-
|
|
81
|
-
triggerProviderPayload?: string;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export interface TriggerSearchLogsParams {
|
|
87
|
-
/**
|
|
88
|
-
* cursor that can be used to paginate through the logs
|
|
89
|
-
*/
|
|
90
|
-
cursor: string | null;
|
|
91
|
-
|
|
92
|
-
entityId?: string;
|
|
93
|
-
|
|
94
|
-
integrationId?: string;
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* number of logs to return
|
|
98
|
-
*/
|
|
99
|
-
limit?: number;
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* Search term to filter logs
|
|
103
|
-
*/
|
|
104
|
-
search?: string;
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* Filter logs by their status level
|
|
108
|
-
*/
|
|
109
|
-
status?: 'all' | 'success' | 'error';
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* Return logs from the last N time units
|
|
113
|
-
*/
|
|
114
|
-
time?: '5m' | '30m' | '6h' | '1d' | '1w' | '1month' | '1y';
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
export declare namespace Trigger {
|
|
118
|
-
export {
|
|
119
|
-
type TriggerSearchLogsResponse as TriggerSearchLogsResponse,
|
|
120
|
-
type TriggerSearchLogsParams as TriggerSearchLogsParams,
|
|
121
|
-
};
|
|
122
|
-
}
|
package/src/resources/v3/v3.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { APIResource } from '../../core/resource';
|
|
4
|
-
import * as CliAPI from './cli';
|
|
5
|
-
import {
|
|
6
|
-
Cli,
|
|
7
|
-
CliCreateSessionResponse,
|
|
8
|
-
CliLinkSessionParams,
|
|
9
|
-
CliLinkSessionResponse,
|
|
10
|
-
CliRetrieveSessionParams,
|
|
11
|
-
CliRetrieveSessionResponse,
|
|
12
|
-
} from './cli';
|
|
13
|
-
import * as AuthAPI from './auth/auth';
|
|
14
|
-
import { Auth } from './auth/auth';
|
|
15
|
-
import * as InternalAPI from './internal/internal';
|
|
16
|
-
import { Internal } from './internal/internal';
|
|
17
|
-
|
|
18
|
-
export class V3 extends APIResource {
|
|
19
|
-
auth: AuthAPI.Auth = new AuthAPI.Auth(this._client);
|
|
20
|
-
cli: CliAPI.Cli = new CliAPI.Cli(this._client);
|
|
21
|
-
internal: InternalAPI.Internal = new InternalAPI.Internal(this._client);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
V3.Auth = Auth;
|
|
25
|
-
V3.Cli = Cli;
|
|
26
|
-
V3.Internal = Internal;
|
|
27
|
-
|
|
28
|
-
export declare namespace V3 {
|
|
29
|
-
export { Auth as Auth };
|
|
30
|
-
|
|
31
|
-
export {
|
|
32
|
-
Cli as Cli,
|
|
33
|
-
type CliCreateSessionResponse as CliCreateSessionResponse,
|
|
34
|
-
type CliLinkSessionResponse as CliLinkSessionResponse,
|
|
35
|
-
type CliRetrieveSessionResponse as CliRetrieveSessionResponse,
|
|
36
|
-
type CliLinkSessionParams as CliLinkSessionParams,
|
|
37
|
-
type CliRetrieveSessionParams as CliRetrieveSessionParams,
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
export { Internal as Internal };
|
|
41
|
-
}
|
package/src/resources/v3.ts
DELETED