terse-sdk 0.2.2 → 0.2.4
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/dist/__typetest.d.ts +2 -0
- package/dist/__typetest.d.ts.map +1 -0
- package/dist/__typetest.js +25 -0
- package/dist/__typetest.js.map +1 -0
- package/package.json +2 -2
- package/dist/__state_typetest.d.ts +0 -2
- package/dist/__state_typetest.d.ts.map +0 -1
- package/dist/__state_typetest.js +0 -32
- package/dist/__state_typetest.js.map +0 -1
- package/dist/memoryfs/file.d.ts +0 -16
- package/dist/memoryfs/file.d.ts.map +0 -1
- package/dist/memoryfs/file.js +0 -40
- package/dist/memoryfs/file.js.map +0 -1
- package/dist/memoryfs/index.d.ts +0 -25
- package/dist/memoryfs/index.d.ts.map +0 -1
- package/dist/memoryfs/index.js +0 -60
- package/dist/memoryfs/index.js.map +0 -1
- package/dist/memoryfs/memory.d.ts +0 -21
- package/dist/memoryfs/memory.d.ts.map +0 -1
- package/dist/memoryfs/memory.js +0 -196
- package/dist/memoryfs/memory.js.map +0 -1
- package/dist/memoryfs/paths.d.ts +0 -7
- package/dist/memoryfs/paths.d.ts.map +0 -1
- package/dist/memoryfs/paths.js +0 -39
- package/dist/memoryfs/paths.js.map +0 -1
- package/dist/memoryfs/store.d.ts +0 -18
- package/dist/memoryfs/store.d.ts.map +0 -1
- package/dist/memoryfs/store.js +0 -89
- package/dist/memoryfs/store.js.map +0 -1
- package/dist/perf.d.ts +0 -9
- package/dist/perf.d.ts.map +0 -1
- package/dist/perf.js +0 -57
- package/dist/perf.js.map +0 -1
- package/dist/shared/ApiRoutes.d.ts +0 -348
- package/dist/shared/ApiRoutes.d.ts.map +0 -1
- package/dist/shared/ApiRoutes.js +0 -325
- package/dist/shared/ApiRoutes.js.map +0 -1
- package/dist/shared/Configs.d.ts +0 -488
- package/dist/shared/Configs.d.ts.map +0 -1
- package/dist/shared/Configs.js +0 -785
- package/dist/shared/Configs.js.map +0 -1
- package/dist/shared/Entities.d.ts +0 -8
- package/dist/shared/Entities.d.ts.map +0 -1
- package/dist/shared/Entities.js +0 -9
- package/dist/shared/Entities.js.map +0 -1
- package/dist/shared/Integrations.d.ts +0 -235
- package/dist/shared/Integrations.d.ts.map +0 -1
- package/dist/shared/Integrations.js +0 -143
- package/dist/shared/Integrations.js.map +0 -1
- package/dist/shared/ModelEvents.d.ts +0 -176
- package/dist/shared/ModelEvents.d.ts.map +0 -1
- package/dist/shared/ModelEvents.js +0 -29
- package/dist/shared/ModelEvents.js.map +0 -1
- package/dist/shared/RunHistoryTypes.d.ts +0 -95
- package/dist/shared/RunHistoryTypes.d.ts.map +0 -1
- package/dist/shared/RunHistoryTypes.js +0 -11
- package/dist/shared/RunHistoryTypes.js.map +0 -1
- package/dist/shared/Survey.d.ts +0 -10
- package/dist/shared/Survey.d.ts.map +0 -1
- package/dist/shared/Survey.js +0 -2
- package/dist/shared/Survey.js.map +0 -1
- package/dist/shared/TicketSystem.d.ts +0 -154
- package/dist/shared/TicketSystem.d.ts.map +0 -1
- package/dist/shared/TicketSystem.js +0 -21
- package/dist/shared/TicketSystem.js.map +0 -1
- package/dist/shared/types.d.ts +0 -1732
- package/dist/shared/types.d.ts.map +0 -1
- package/dist/shared/types.js +0 -17
- package/dist/shared/types.js.map +0 -1
package/dist/shared/types.d.ts
DELETED
|
@@ -1,1732 +0,0 @@
|
|
|
1
|
-
import { ConfigInstance, ConfigType } from "./Configs.js";
|
|
2
|
-
import { IntegrationType } from "./Integrations.js";
|
|
3
|
-
import { RunHistoryAction, RunHistoryActionType, RunHistoryRecordWithAgent } from "./RunHistoryTypes.js";
|
|
4
|
-
import { Project, Ticket } from "./TicketSystem.js";
|
|
5
|
-
export type Role = "admin" | "user";
|
|
6
|
-
export type User = {
|
|
7
|
-
id: string;
|
|
8
|
-
workosId: string;
|
|
9
|
-
organizationId: string;
|
|
10
|
-
organizationName: string;
|
|
11
|
-
email: string;
|
|
12
|
-
displayName: string;
|
|
13
|
-
firstName: string | null;
|
|
14
|
-
lastName: string | null;
|
|
15
|
-
displayPhotoUrl: string;
|
|
16
|
-
roles: Role[];
|
|
17
|
-
};
|
|
18
|
-
export type UserNoOrganization = Omit<User, "organizationId" | "organizationName" | "roles">;
|
|
19
|
-
export type SubActivity = {
|
|
20
|
-
summary: string;
|
|
21
|
-
commits: CommitAssociation[];
|
|
22
|
-
};
|
|
23
|
-
export type CommitAssociation = {
|
|
24
|
-
sha: string;
|
|
25
|
-
message: string;
|
|
26
|
-
url: string;
|
|
27
|
-
};
|
|
28
|
-
export type ActivityEvent = {
|
|
29
|
-
event_type: string;
|
|
30
|
-
title: string;
|
|
31
|
-
github_repository_owner_id: string;
|
|
32
|
-
github_repository_name: string;
|
|
33
|
-
created_at: Date;
|
|
34
|
-
sub_activities: SubActivity[];
|
|
35
|
-
};
|
|
36
|
-
export type TicketActivityEvent = {
|
|
37
|
-
ticket: Ticket;
|
|
38
|
-
event_type: string;
|
|
39
|
-
title: string;
|
|
40
|
-
};
|
|
41
|
-
export type ProjectActivityEvent = {
|
|
42
|
-
project: Project;
|
|
43
|
-
event_type: string;
|
|
44
|
-
title: string;
|
|
45
|
-
};
|
|
46
|
-
export type LinearTeam = {
|
|
47
|
-
id: string;
|
|
48
|
-
name: string;
|
|
49
|
-
key: string;
|
|
50
|
-
};
|
|
51
|
-
export type AttioObject = {
|
|
52
|
-
api_slug: string;
|
|
53
|
-
singular_noun: string;
|
|
54
|
-
plural_noun: string;
|
|
55
|
-
};
|
|
56
|
-
export type AttioAttribute = {
|
|
57
|
-
api_slug?: string;
|
|
58
|
-
title?: string;
|
|
59
|
-
type?: string;
|
|
60
|
-
is_required?: boolean;
|
|
61
|
-
is_unique?: boolean;
|
|
62
|
-
[key: string]: unknown;
|
|
63
|
-
};
|
|
64
|
-
export type AttioObjectWithAttributes = AttioObject & {
|
|
65
|
-
attributes?: AttioAttribute[];
|
|
66
|
-
};
|
|
67
|
-
export type AttioRecordIdentifier = {
|
|
68
|
-
workspace_id?: string;
|
|
69
|
-
object_id?: string;
|
|
70
|
-
record_id?: string;
|
|
71
|
-
[key: string]: unknown;
|
|
72
|
-
};
|
|
73
|
-
export type AttioRecord = {
|
|
74
|
-
id?: AttioRecordIdentifier;
|
|
75
|
-
values?: Record<string, unknown>;
|
|
76
|
-
web_url?: string;
|
|
77
|
-
created_at?: string;
|
|
78
|
-
[key: string]: unknown;
|
|
79
|
-
};
|
|
80
|
-
export type LinearWorkspace = {
|
|
81
|
-
id: string;
|
|
82
|
-
name: string;
|
|
83
|
-
};
|
|
84
|
-
export type JiraProject = {
|
|
85
|
-
id: string;
|
|
86
|
-
key: string;
|
|
87
|
-
name: string;
|
|
88
|
-
};
|
|
89
|
-
export type JiraCredentialsValidationResponse = {
|
|
90
|
-
valid: boolean;
|
|
91
|
-
projects?: JiraProject[];
|
|
92
|
-
error?: string;
|
|
93
|
-
};
|
|
94
|
-
export type NotionResourceType = "database" | "page";
|
|
95
|
-
export type NotionResource = {
|
|
96
|
-
id: string;
|
|
97
|
-
title: string;
|
|
98
|
-
url: string;
|
|
99
|
-
type: NotionResourceType;
|
|
100
|
-
};
|
|
101
|
-
export type NotionResourcesResponse = {
|
|
102
|
-
resources: NotionResource[];
|
|
103
|
-
};
|
|
104
|
-
export type PosthogProject = {
|
|
105
|
-
id: string;
|
|
106
|
-
name: string;
|
|
107
|
-
organization_id?: string;
|
|
108
|
-
};
|
|
109
|
-
export type PosthogProjectsResponse = {
|
|
110
|
-
projects: PosthogProject[];
|
|
111
|
-
};
|
|
112
|
-
export type LaunchDarklyProject = {
|
|
113
|
-
key: string;
|
|
114
|
-
name: string;
|
|
115
|
-
};
|
|
116
|
-
export type LaunchDarklyProjectsResponse = {
|
|
117
|
-
projects: LaunchDarklyProject[];
|
|
118
|
-
};
|
|
119
|
-
export type LaunchDarklyEnvironment = {
|
|
120
|
-
key: string;
|
|
121
|
-
name: string;
|
|
122
|
-
};
|
|
123
|
-
export type LaunchDarklyEnvironmentsResponse = {
|
|
124
|
-
environments: LaunchDarklyEnvironment[];
|
|
125
|
-
};
|
|
126
|
-
export type DatadogIndex = {
|
|
127
|
-
id: string;
|
|
128
|
-
name: string;
|
|
129
|
-
isEnabled: boolean;
|
|
130
|
-
dailyLimit?: number;
|
|
131
|
-
retentionDays?: number;
|
|
132
|
-
};
|
|
133
|
-
export type DatadogIndexesResponse = {
|
|
134
|
-
indexes: DatadogIndex[];
|
|
135
|
-
};
|
|
136
|
-
export type SlackChannel = {
|
|
137
|
-
id: string;
|
|
138
|
-
name: string;
|
|
139
|
-
isPrivate: boolean;
|
|
140
|
-
isArchived: boolean;
|
|
141
|
-
isMPIM: boolean;
|
|
142
|
-
};
|
|
143
|
-
export type SlackChannelsResponse = {
|
|
144
|
-
channels: SlackChannel[];
|
|
145
|
-
selectedChannelId: string | null;
|
|
146
|
-
};
|
|
147
|
-
export type SlackUserResponse = {
|
|
148
|
-
id: string;
|
|
149
|
-
name: string;
|
|
150
|
-
};
|
|
151
|
-
export type SlackUsersResponse = {
|
|
152
|
-
users: SlackUserResponse[];
|
|
153
|
-
};
|
|
154
|
-
export declare const TERSE_AGENT_MESSAGE_EVENT_TYPE: "terse_agent_message";
|
|
155
|
-
export type TerseAgentMessageMetadata = {
|
|
156
|
-
event_type: typeof TERSE_AGENT_MESSAGE_EVENT_TYPE;
|
|
157
|
-
event_payload: {
|
|
158
|
-
run_id: string;
|
|
159
|
-
automation_id: string;
|
|
160
|
-
organization_id: string;
|
|
161
|
-
};
|
|
162
|
-
};
|
|
163
|
-
/**
|
|
164
|
-
* Slack channel type enum
|
|
165
|
-
*/
|
|
166
|
-
export declare enum SlackChannelType {
|
|
167
|
-
CHANNEL = "channel",
|
|
168
|
-
GROUP = "group",
|
|
169
|
-
MPIM = "mpim",
|
|
170
|
-
IM = "im"
|
|
171
|
-
}
|
|
172
|
-
export type ConfluencePage = {
|
|
173
|
-
id: string;
|
|
174
|
-
title: string;
|
|
175
|
-
spaceId: string;
|
|
176
|
-
spaceName: string;
|
|
177
|
-
url: string;
|
|
178
|
-
status: string;
|
|
179
|
-
version: number;
|
|
180
|
-
};
|
|
181
|
-
export type ConfluencePagesQuery = {
|
|
182
|
-
integrationId: string;
|
|
183
|
-
spaceId?: string;
|
|
184
|
-
spaceKey?: string;
|
|
185
|
-
};
|
|
186
|
-
export type ConfluencePagesResponse = {
|
|
187
|
-
pages: ConfluencePage[];
|
|
188
|
-
spaceId: string;
|
|
189
|
-
total: number;
|
|
190
|
-
};
|
|
191
|
-
export type ConfluenceResourcesResponse = {
|
|
192
|
-
resources: ConfluencePage[];
|
|
193
|
-
spaceId: string;
|
|
194
|
-
total: number;
|
|
195
|
-
};
|
|
196
|
-
export type JiraResourcesResponse = {
|
|
197
|
-
success: boolean;
|
|
198
|
-
resources: {
|
|
199
|
-
projects: Array<{
|
|
200
|
-
id: string;
|
|
201
|
-
key: string;
|
|
202
|
-
name: string;
|
|
203
|
-
projectTypeKey: string;
|
|
204
|
-
}>;
|
|
205
|
-
baseUrl: string;
|
|
206
|
-
cloudId: string;
|
|
207
|
-
};
|
|
208
|
-
};
|
|
209
|
-
export type UseConfluenceResourcesReturn<MutateType = any> = {
|
|
210
|
-
resources: ConfluencePage[];
|
|
211
|
-
response: ConfluenceResourcesResponse | undefined;
|
|
212
|
-
isLoading: boolean;
|
|
213
|
-
isError: boolean;
|
|
214
|
-
error: unknown;
|
|
215
|
-
isValidating: boolean;
|
|
216
|
-
mutate: MutateType;
|
|
217
|
-
};
|
|
218
|
-
export declare enum FigmaEventTypes {
|
|
219
|
-
FILE_COMMENT = "FILE_COMMENT"
|
|
220
|
-
}
|
|
221
|
-
/**
|
|
222
|
-
* Figma webhook event user object
|
|
223
|
-
*/
|
|
224
|
-
export interface FigmaWebhookUser {
|
|
225
|
-
id: string;
|
|
226
|
-
handle: string;
|
|
227
|
-
email: string;
|
|
228
|
-
img_url: string;
|
|
229
|
-
}
|
|
230
|
-
/**
|
|
231
|
-
* Figma webhook comment object (from webhook payload)
|
|
232
|
-
*/
|
|
233
|
-
export interface FigmaWebhookComment {
|
|
234
|
-
id: string;
|
|
235
|
-
message: string;
|
|
236
|
-
client_meta: FigmaClientMeta;
|
|
237
|
-
user: FigmaWebhookUser;
|
|
238
|
-
created_at: string;
|
|
239
|
-
resolved_at: string | null;
|
|
240
|
-
}
|
|
241
|
-
/**
|
|
242
|
-
* Figma comment image URLs
|
|
243
|
-
* Extracted images for visual context of comments
|
|
244
|
-
*/
|
|
245
|
-
export interface FigmaCommentImageUrls {
|
|
246
|
-
nodeImage?: string;
|
|
247
|
-
fullFrame?: string;
|
|
248
|
-
}
|
|
249
|
-
/**
|
|
250
|
-
* Figma positioning data structures
|
|
251
|
-
* Represents the position and type of a comment in a Figma file
|
|
252
|
-
*/
|
|
253
|
-
export type FigmaVectorData = {
|
|
254
|
-
x: number;
|
|
255
|
-
y: number;
|
|
256
|
-
};
|
|
257
|
-
export type FigmaFrameOffsetData = {
|
|
258
|
-
node_id: string;
|
|
259
|
-
node_offset: {
|
|
260
|
-
x: number;
|
|
261
|
-
y: number;
|
|
262
|
-
};
|
|
263
|
-
};
|
|
264
|
-
export type FigmaRegionData = {
|
|
265
|
-
x: number;
|
|
266
|
-
y: number;
|
|
267
|
-
width: number;
|
|
268
|
-
height: number;
|
|
269
|
-
};
|
|
270
|
-
export type FigmaFrameOffsetRegionData = {
|
|
271
|
-
node_id: string;
|
|
272
|
-
node_offset: {
|
|
273
|
-
x: number;
|
|
274
|
-
y: number;
|
|
275
|
-
};
|
|
276
|
-
x: number;
|
|
277
|
-
y: number;
|
|
278
|
-
width: number;
|
|
279
|
-
height: number;
|
|
280
|
-
};
|
|
281
|
-
export type FigmaPositioningData = {
|
|
282
|
-
type: "Vector";
|
|
283
|
-
data: FigmaVectorData;
|
|
284
|
-
} | {
|
|
285
|
-
type: "FrameOffset";
|
|
286
|
-
data: FigmaFrameOffsetData;
|
|
287
|
-
} | {
|
|
288
|
-
type: "Region";
|
|
289
|
-
data: FigmaRegionData;
|
|
290
|
-
} | {
|
|
291
|
-
type: "FrameOffsetRegion";
|
|
292
|
-
data: FigmaFrameOffsetRegionData;
|
|
293
|
-
};
|
|
294
|
-
/**
|
|
295
|
-
* Figma client_meta structure
|
|
296
|
-
* Represents the raw positioning metadata from Figma comment client_meta
|
|
297
|
-
* Can be one of several positioning formats
|
|
298
|
-
*/
|
|
299
|
-
export type FigmaClientMeta = {
|
|
300
|
-
x: number;
|
|
301
|
-
y: number;
|
|
302
|
-
width: number;
|
|
303
|
-
height: number;
|
|
304
|
-
node_id: string;
|
|
305
|
-
node_offset: {
|
|
306
|
-
x: number;
|
|
307
|
-
y: number;
|
|
308
|
-
};
|
|
309
|
-
};
|
|
310
|
-
/**
|
|
311
|
-
* Figma API comment response structure
|
|
312
|
-
*/
|
|
313
|
-
export interface FigmaApiComment {
|
|
314
|
-
id: string;
|
|
315
|
-
message: string;
|
|
316
|
-
client_meta: FigmaClientMeta | null;
|
|
317
|
-
user: FigmaWebhookUser;
|
|
318
|
-
created_at: string;
|
|
319
|
-
resolved_at: string | null;
|
|
320
|
-
parent_id?: string | null;
|
|
321
|
-
order_id?: string;
|
|
322
|
-
mentions?: unknown[];
|
|
323
|
-
reactions?: unknown[];
|
|
324
|
-
}
|
|
325
|
-
export interface FigmaCommentThreadEntry {
|
|
326
|
-
id: string;
|
|
327
|
-
message: string;
|
|
328
|
-
author: FigmaWebhookUser;
|
|
329
|
-
createdAt: string;
|
|
330
|
-
resolvedAt: string | null;
|
|
331
|
-
parentId: string | null;
|
|
332
|
-
orderId?: string;
|
|
333
|
-
isRoot?: boolean;
|
|
334
|
-
}
|
|
335
|
-
/**
|
|
336
|
-
* Figma comment event data
|
|
337
|
-
* Processed/enriched comment data used for automation events
|
|
338
|
-
* This combines data from webhook, API, and enriched context
|
|
339
|
-
*/
|
|
340
|
-
export interface FigmaCommentEventData {
|
|
341
|
-
integrationId: string;
|
|
342
|
-
commentId: string;
|
|
343
|
-
fileKey: string;
|
|
344
|
-
fileUrl: string;
|
|
345
|
-
nodeId?: string;
|
|
346
|
-
message: string;
|
|
347
|
-
author: FigmaWebhookUser;
|
|
348
|
-
createdAt: string;
|
|
349
|
-
resolved?: boolean;
|
|
350
|
-
thread?: FigmaCommentThreadEntry[];
|
|
351
|
-
fileMetadata?: any;
|
|
352
|
-
positioningData?: FigmaPositioningData;
|
|
353
|
-
matchedNodeIds?: string[];
|
|
354
|
-
imageUrls?: FigmaCommentImageUrls;
|
|
355
|
-
}
|
|
356
|
-
export type ApiToken = {
|
|
357
|
-
id: string;
|
|
358
|
-
name: string;
|
|
359
|
-
tokenPrefix: string;
|
|
360
|
-
createdAt: string;
|
|
361
|
-
lastUsedAt: string | null;
|
|
362
|
-
};
|
|
363
|
-
export type ApiTokenCreateResponse = {
|
|
364
|
-
token: ApiToken;
|
|
365
|
-
rawToken: string;
|
|
366
|
-
};
|
|
367
|
-
export type DeviceTokenExchangeResponse = {
|
|
368
|
-
apiKey: string;
|
|
369
|
-
user: {
|
|
370
|
-
email: string;
|
|
371
|
-
firstName: string | null;
|
|
372
|
-
displayName: string | null;
|
|
373
|
-
};
|
|
374
|
-
};
|
|
375
|
-
export type AgentTrigger = {
|
|
376
|
-
id: string;
|
|
377
|
-
config: ConfigInstance;
|
|
378
|
-
};
|
|
379
|
-
export type AgentOutput = {
|
|
380
|
-
id: string;
|
|
381
|
-
config: ConfigInstance;
|
|
382
|
-
};
|
|
383
|
-
export type AgentPrompt = {
|
|
384
|
-
text: string;
|
|
385
|
-
};
|
|
386
|
-
export type TransientAgentTrigger = {
|
|
387
|
-
id: string;
|
|
388
|
-
config?: ConfigInstance;
|
|
389
|
-
configType: ConfigType;
|
|
390
|
-
};
|
|
391
|
-
export type TransientAgentOutput = {
|
|
392
|
-
id: string;
|
|
393
|
-
config?: ConfigInstance;
|
|
394
|
-
configType: ConfigType;
|
|
395
|
-
};
|
|
396
|
-
export type TemplateConfigRef = {
|
|
397
|
-
configType: ConfigType;
|
|
398
|
-
integrationType: IntegrationType;
|
|
399
|
-
};
|
|
400
|
-
export type TemplateTrigger = {
|
|
401
|
-
config: TemplateConfigRef;
|
|
402
|
-
};
|
|
403
|
-
export type TemplateOutput = {
|
|
404
|
-
config: TemplateConfigRef;
|
|
405
|
-
};
|
|
406
|
-
export type TemplateCategory = "ship" | "users" | "sync" | "track";
|
|
407
|
-
export type AgentTemplate = {
|
|
408
|
-
id: string;
|
|
409
|
-
category: TemplateCategory;
|
|
410
|
-
name: string;
|
|
411
|
-
description: string;
|
|
412
|
-
chatPrompt: string;
|
|
413
|
-
prompt: AgentPrompt;
|
|
414
|
-
triggers: TemplateTrigger[];
|
|
415
|
-
outputs: TemplateOutput[];
|
|
416
|
-
requireApproval: boolean;
|
|
417
|
-
isActive: boolean;
|
|
418
|
-
};
|
|
419
|
-
export type Agent = {
|
|
420
|
-
id: string;
|
|
421
|
-
name: string;
|
|
422
|
-
isActive: boolean;
|
|
423
|
-
requireApproval: boolean;
|
|
424
|
-
prompt: AgentPrompt;
|
|
425
|
-
triggers: AgentTrigger[];
|
|
426
|
-
outputs: AgentOutput[];
|
|
427
|
-
createdByUserId: string;
|
|
428
|
-
notificationSettings?: AgentNotificationSettings;
|
|
429
|
-
toolApprovals?: string[];
|
|
430
|
-
updatedAt?: string;
|
|
431
|
-
source?: "WEB_UI" | "SDK";
|
|
432
|
-
};
|
|
433
|
-
export type AgentNotificationSettings = {
|
|
434
|
-
enabled: boolean;
|
|
435
|
-
actionTypes: RunHistoryActionType[];
|
|
436
|
-
};
|
|
437
|
-
export type AgentUpdate = {
|
|
438
|
-
name?: string;
|
|
439
|
-
triggers?: AgentTrigger[];
|
|
440
|
-
outputs?: AgentOutput[];
|
|
441
|
-
prompt?: AgentPrompt;
|
|
442
|
-
isActive?: boolean;
|
|
443
|
-
requireApproval?: boolean;
|
|
444
|
-
notificationSettings?: AgentNotificationSettings;
|
|
445
|
-
toolApprovals?: string[];
|
|
446
|
-
};
|
|
447
|
-
export type AgentsResponse = {
|
|
448
|
-
agents: Agent[];
|
|
449
|
-
pagination: {
|
|
450
|
-
page: number;
|
|
451
|
-
limit: number;
|
|
452
|
-
total: number;
|
|
453
|
-
totalPages: number;
|
|
454
|
-
};
|
|
455
|
-
};
|
|
456
|
-
export type RecentAgent = Agent & {
|
|
457
|
-
updatedAt: string;
|
|
458
|
-
lastEventProcessedAt: string | null;
|
|
459
|
-
};
|
|
460
|
-
export type AgentImprovementStatus = "PENDING" | "APPLIED" | "DISMISSED";
|
|
461
|
-
export type AgentImprovementTargetArea = "prompt" | "trigger_config" | "output_config" | "general" | "code";
|
|
462
|
-
export type AgentReview = {
|
|
463
|
-
id: string;
|
|
464
|
-
automationId: string;
|
|
465
|
-
title: string;
|
|
466
|
-
summary: string;
|
|
467
|
-
runsAnalyzed: number;
|
|
468
|
-
reviewPeriodStart: string;
|
|
469
|
-
reviewPeriodEnd: string;
|
|
470
|
-
createdAt: string;
|
|
471
|
-
};
|
|
472
|
-
export type AgentImprovement = {
|
|
473
|
-
id: string;
|
|
474
|
-
reviewId: string;
|
|
475
|
-
automationId: string;
|
|
476
|
-
title: string;
|
|
477
|
-
description: string;
|
|
478
|
-
targetArea: AgentImprovementTargetArea;
|
|
479
|
-
confidence: number;
|
|
480
|
-
status: AgentImprovementStatus;
|
|
481
|
-
suggestedPatch?: string;
|
|
482
|
-
appliedPrompt?: string;
|
|
483
|
-
appliedAt?: string;
|
|
484
|
-
dismissedAt?: string;
|
|
485
|
-
createdAt: string;
|
|
486
|
-
updatedAt: string;
|
|
487
|
-
};
|
|
488
|
-
export type GetAgentImprovementsResponse = {
|
|
489
|
-
review: AgentReview | null;
|
|
490
|
-
improvements: AgentImprovement[];
|
|
491
|
-
improvementsEnabled: boolean;
|
|
492
|
-
};
|
|
493
|
-
export type ApplyImprovementResponse = {
|
|
494
|
-
success: boolean;
|
|
495
|
-
appliedPrompt: string;
|
|
496
|
-
};
|
|
497
|
-
export type DismissImprovementResponse = {
|
|
498
|
-
success: boolean;
|
|
499
|
-
};
|
|
500
|
-
export type ToggleImprovementsEnabledResponse = {
|
|
501
|
-
success: boolean;
|
|
502
|
-
improvementsEnabled: boolean;
|
|
503
|
-
};
|
|
504
|
-
export type GithubAppInstallationCallbackRequest = {
|
|
505
|
-
name: string;
|
|
506
|
-
email: string;
|
|
507
|
-
username: string;
|
|
508
|
-
installationId: number;
|
|
509
|
-
accountName: string | null;
|
|
510
|
-
repositories: Repository[];
|
|
511
|
-
};
|
|
512
|
-
export type Repository = {
|
|
513
|
-
name: string;
|
|
514
|
-
owner: string;
|
|
515
|
-
id: number;
|
|
516
|
-
};
|
|
517
|
-
export type GetGithubRepositoriesForIntegrationRequest = {};
|
|
518
|
-
export type GetGithubRepositoriesForIntegrationResponse = {
|
|
519
|
-
repositories: Repository[];
|
|
520
|
-
};
|
|
521
|
-
export type OAuthInstallationDetails = {
|
|
522
|
-
oauthUrl: string;
|
|
523
|
-
};
|
|
524
|
-
export type FormFieldType = "text" | "password" | "textarea";
|
|
525
|
-
export interface FormFieldDefinition {
|
|
526
|
-
name: string;
|
|
527
|
-
type: FormFieldType;
|
|
528
|
-
label: string;
|
|
529
|
-
placeholder?: string;
|
|
530
|
-
required?: boolean;
|
|
531
|
-
hint?: string;
|
|
532
|
-
}
|
|
533
|
-
export type ConfigurationFieldType = "radio" | "select";
|
|
534
|
-
export interface ConfigurationOption {
|
|
535
|
-
label: string;
|
|
536
|
-
value: string;
|
|
537
|
-
}
|
|
538
|
-
export interface ConfigurationFieldDefinition {
|
|
539
|
-
name: string;
|
|
540
|
-
type: ConfigurationFieldType;
|
|
541
|
-
label: string;
|
|
542
|
-
options: ConfigurationOption[];
|
|
543
|
-
required?: boolean;
|
|
544
|
-
hint?: string;
|
|
545
|
-
}
|
|
546
|
-
export interface IntegrationFieldsResponse {
|
|
547
|
-
installationType: "form" | "oauth";
|
|
548
|
-
fields: FormFieldDefinition[] | ConfigurationFieldDefinition[];
|
|
549
|
-
}
|
|
550
|
-
export type StatsInterval = "1h" | "24h" | "7d" | "1mo" | "3mo" | "1y";
|
|
551
|
-
export interface DailyEventCount {
|
|
552
|
-
date: string;
|
|
553
|
-
events: number;
|
|
554
|
-
}
|
|
555
|
-
export interface RecentAction {
|
|
556
|
-
action: string;
|
|
557
|
-
integration: IntegrationType;
|
|
558
|
-
target: string;
|
|
559
|
-
details: string;
|
|
560
|
-
url?: string;
|
|
561
|
-
timestamp: string;
|
|
562
|
-
agentName: string;
|
|
563
|
-
type: RunHistoryActionType;
|
|
564
|
-
}
|
|
565
|
-
export interface AgentActivityItem {
|
|
566
|
-
agentId: string;
|
|
567
|
-
agentName: string;
|
|
568
|
-
runCount: number;
|
|
569
|
-
}
|
|
570
|
-
export interface CountByString {
|
|
571
|
-
label: string;
|
|
572
|
-
count: number;
|
|
573
|
-
}
|
|
574
|
-
export interface StatsResponse {
|
|
575
|
-
totalEventsProcessed: number;
|
|
576
|
-
totalEventsProcessedChange: string;
|
|
577
|
-
actionsTaken: number;
|
|
578
|
-
actionsTakenChange: string;
|
|
579
|
-
numberOfAgents: number;
|
|
580
|
-
numberOfAgentsChange: string;
|
|
581
|
-
dailyEvents: DailyEventCount[];
|
|
582
|
-
recentActions: RecentAction[];
|
|
583
|
-
recentRuns: RunHistoryRecordWithAgent[];
|
|
584
|
-
timezone: string;
|
|
585
|
-
agentActivity: AgentActivityItem[];
|
|
586
|
-
statusBreakdown: CountByString[];
|
|
587
|
-
triggerIntegrations: CountByString[];
|
|
588
|
-
actionIntegrations: CountByString[];
|
|
589
|
-
actionTypes: CountByString[];
|
|
590
|
-
}
|
|
591
|
-
export interface TriggerPayload {
|
|
592
|
-
integrationId: string;
|
|
593
|
-
integrationType: IntegrationType;
|
|
594
|
-
config: Record<string, unknown>;
|
|
595
|
-
}
|
|
596
|
-
export interface SerializedEvent {
|
|
597
|
-
integrationType: IntegrationType;
|
|
598
|
-
eventType?: string;
|
|
599
|
-
formattedContent: string;
|
|
600
|
-
debugLog: string;
|
|
601
|
-
metadata?: Record<string, unknown>;
|
|
602
|
-
}
|
|
603
|
-
export type SdkAgentRunEventPayload = {
|
|
604
|
-
integrationType: IntegrationType;
|
|
605
|
-
formattedContent: string;
|
|
606
|
-
debugLog: string;
|
|
607
|
-
};
|
|
608
|
-
export type SdkAgentSkillPayload = {
|
|
609
|
-
configType: ConfigType;
|
|
610
|
-
config: Record<string, unknown>;
|
|
611
|
-
};
|
|
612
|
-
export type SdkAgentRunOptionsPayload = {
|
|
613
|
-
maxTurns?: number;
|
|
614
|
-
requireApproval?: boolean;
|
|
615
|
-
};
|
|
616
|
-
export type SdkAgentRunRequestBody = {
|
|
617
|
-
prompt?: string;
|
|
618
|
-
event?: Partial<SdkAgentRunEventPayload>;
|
|
619
|
-
skills?: SdkAgentSkillPayload[];
|
|
620
|
-
options?: SdkAgentRunOptionsPayload;
|
|
621
|
-
toolApprovals?: string[];
|
|
622
|
-
};
|
|
623
|
-
export type SdkAgentRunResponseBody = {
|
|
624
|
-
success: boolean;
|
|
625
|
-
error?: string;
|
|
626
|
-
details?: string[];
|
|
627
|
-
contract?: {
|
|
628
|
-
responseMode: "streaming";
|
|
629
|
-
supportsInterruptions: boolean;
|
|
630
|
-
};
|
|
631
|
-
normalizedRequest?: {
|
|
632
|
-
prompt: string;
|
|
633
|
-
event: SdkAgentRunEventPayload;
|
|
634
|
-
skills: SdkAgentSkillPayload[];
|
|
635
|
-
toolApprovals: string[];
|
|
636
|
-
options: {
|
|
637
|
-
maxTurns: number;
|
|
638
|
-
requireApproval: boolean;
|
|
639
|
-
};
|
|
640
|
-
};
|
|
641
|
-
};
|
|
642
|
-
export type SdkAgentStreamEvent = {
|
|
643
|
-
type: "run_started";
|
|
644
|
-
runId: string;
|
|
645
|
-
} | {
|
|
646
|
-
type: "text";
|
|
647
|
-
text: string;
|
|
648
|
-
} | {
|
|
649
|
-
type: "final_output";
|
|
650
|
-
finalOutput: string;
|
|
651
|
-
} | {
|
|
652
|
-
type: "tool_call_params";
|
|
653
|
-
toolCallParams: string;
|
|
654
|
-
} | {
|
|
655
|
-
type: "tool_call_started";
|
|
656
|
-
toolCallStarted: string;
|
|
657
|
-
} | {
|
|
658
|
-
type: "tool_call_completed";
|
|
659
|
-
toolCallCompleted: string;
|
|
660
|
-
} | {
|
|
661
|
-
type: "tool_approval_requested";
|
|
662
|
-
toolApprovalRequested: {
|
|
663
|
-
stepId: string;
|
|
664
|
-
toolName: string;
|
|
665
|
-
arguments: string;
|
|
666
|
-
};
|
|
667
|
-
} | {
|
|
668
|
-
type: "action";
|
|
669
|
-
action: RunHistoryAction;
|
|
670
|
-
} | {
|
|
671
|
-
type: "error";
|
|
672
|
-
message: string;
|
|
673
|
-
} | {
|
|
674
|
-
type: "done";
|
|
675
|
-
};
|
|
676
|
-
export type SdkApprovalDecisionRequestBody = {
|
|
677
|
-
runId: string;
|
|
678
|
-
stepId: string;
|
|
679
|
-
approved: boolean;
|
|
680
|
-
};
|
|
681
|
-
export type SdkDeployJob = {
|
|
682
|
-
jobName: string;
|
|
683
|
-
triggers: AgentTrigger[];
|
|
684
|
-
outputs: AgentOutput[];
|
|
685
|
-
toolApprovals: string[];
|
|
686
|
-
webhookURL?: string;
|
|
687
|
-
};
|
|
688
|
-
export type SdkDeployRequestBody = {
|
|
689
|
-
jobs: SdkDeployJob[];
|
|
690
|
-
sourceZipBase64: string;
|
|
691
|
-
};
|
|
692
|
-
export type SdkDeployResponseBody = {
|
|
693
|
-
success: boolean;
|
|
694
|
-
results: {
|
|
695
|
-
jobName: string;
|
|
696
|
-
automationId: string;
|
|
697
|
-
isUpdate: boolean;
|
|
698
|
-
}[];
|
|
699
|
-
removed: {
|
|
700
|
-
id: string;
|
|
701
|
-
name: string;
|
|
702
|
-
}[];
|
|
703
|
-
error?: string;
|
|
704
|
-
details?: string;
|
|
705
|
-
};
|
|
706
|
-
export type ToolOutputBase = {
|
|
707
|
-
success: boolean;
|
|
708
|
-
actions?: RunHistoryAction[];
|
|
709
|
-
};
|
|
710
|
-
export type ToolOutputSuccessBase = Omit<ToolOutputBase, "success"> & {
|
|
711
|
-
success: true;
|
|
712
|
-
};
|
|
713
|
-
export type ToolOutputFailureBase = Omit<ToolOutputBase, "success"> & {
|
|
714
|
-
success: false;
|
|
715
|
-
};
|
|
716
|
-
export type AttioUpsertError = {
|
|
717
|
-
index: number;
|
|
718
|
-
message: string;
|
|
719
|
-
};
|
|
720
|
-
export type SlackChannelListItem = {
|
|
721
|
-
id?: string;
|
|
722
|
-
name: string;
|
|
723
|
-
isPrivate: boolean;
|
|
724
|
-
isIm: boolean;
|
|
725
|
-
isMpim: boolean;
|
|
726
|
-
};
|
|
727
|
-
export type SlackConversationMessage = {
|
|
728
|
-
userId?: string;
|
|
729
|
-
userName?: string;
|
|
730
|
-
text: string;
|
|
731
|
-
timestamp?: string;
|
|
732
|
-
threadTs?: string;
|
|
733
|
-
};
|
|
734
|
-
export type GitHubPagination = {
|
|
735
|
-
page: number;
|
|
736
|
-
perPage: number;
|
|
737
|
-
hasMore: boolean;
|
|
738
|
-
};
|
|
739
|
-
export type GitHubCodeSearchResult = {
|
|
740
|
-
index: number;
|
|
741
|
-
repository: string;
|
|
742
|
-
path: string;
|
|
743
|
-
url: string;
|
|
744
|
-
snippets: string;
|
|
745
|
-
};
|
|
746
|
-
export type GitHubCodeGrepResult = {
|
|
747
|
-
index: number;
|
|
748
|
-
repository: string;
|
|
749
|
-
file: string;
|
|
750
|
-
url: string;
|
|
751
|
-
matches: string;
|
|
752
|
-
};
|
|
753
|
-
export type GitHubPullRequestSummary = {
|
|
754
|
-
number: number;
|
|
755
|
-
title: string;
|
|
756
|
-
description: string;
|
|
757
|
-
author: string;
|
|
758
|
-
state: string;
|
|
759
|
-
merged: boolean;
|
|
760
|
-
mergedAt?: string;
|
|
761
|
-
createdAt: string;
|
|
762
|
-
closedAt?: string;
|
|
763
|
-
labels: string[];
|
|
764
|
-
baseBranch: string;
|
|
765
|
-
headBranch: string;
|
|
766
|
-
url: string;
|
|
767
|
-
};
|
|
768
|
-
export type GitHubDirectoryEntry = {
|
|
769
|
-
name?: string;
|
|
770
|
-
path?: string;
|
|
771
|
-
type?: "directory";
|
|
772
|
-
};
|
|
773
|
-
export type GitHubFileEntry = {
|
|
774
|
-
name?: string;
|
|
775
|
-
path: string;
|
|
776
|
-
type?: "file";
|
|
777
|
-
size?: number;
|
|
778
|
-
};
|
|
779
|
-
export type GitHubOtherEntry = {
|
|
780
|
-
name: string;
|
|
781
|
-
type: string;
|
|
782
|
-
};
|
|
783
|
-
export type GitHubCommitSummary = {
|
|
784
|
-
sha: string;
|
|
785
|
-
fullSha: string;
|
|
786
|
-
message: string;
|
|
787
|
-
fullMessage: string;
|
|
788
|
-
author: string;
|
|
789
|
-
date: string;
|
|
790
|
-
url: string;
|
|
791
|
-
};
|
|
792
|
-
export type GitHubPullRequestRef = {
|
|
793
|
-
number: number;
|
|
794
|
-
title: string;
|
|
795
|
-
state: string;
|
|
796
|
-
merged: boolean;
|
|
797
|
-
baseBranch: string;
|
|
798
|
-
headBranch: string;
|
|
799
|
-
url: string;
|
|
800
|
-
};
|
|
801
|
-
export type SnowflakeQueryRow = Record<string, unknown>;
|
|
802
|
-
export type LinearIssueAssignee = {
|
|
803
|
-
id: string;
|
|
804
|
-
name: string;
|
|
805
|
-
email?: string;
|
|
806
|
-
};
|
|
807
|
-
export type LinearIssueTeam = {
|
|
808
|
-
id: string;
|
|
809
|
-
name: string;
|
|
810
|
-
key: string;
|
|
811
|
-
};
|
|
812
|
-
export type LinearIssueProject = {
|
|
813
|
-
id: string;
|
|
814
|
-
name: string;
|
|
815
|
-
};
|
|
816
|
-
export type LinearIssueSummary = {
|
|
817
|
-
id: string;
|
|
818
|
-
identifier: string;
|
|
819
|
-
title: string;
|
|
820
|
-
description?: string | null;
|
|
821
|
-
state: string;
|
|
822
|
-
priority?: number | null;
|
|
823
|
-
assignee: LinearIssueAssignee | null;
|
|
824
|
-
url: string;
|
|
825
|
-
createdAt: string | Date;
|
|
826
|
-
updatedAt: string | Date;
|
|
827
|
-
};
|
|
828
|
-
export type LinearIssueDetail = LinearIssueSummary & {
|
|
829
|
-
team: LinearIssueTeam | null;
|
|
830
|
-
project: LinearIssueProject | null;
|
|
831
|
-
dueDate?: string | Date;
|
|
832
|
-
estimate?: number | null;
|
|
833
|
-
};
|
|
834
|
-
export type LinearIssueHandle = {
|
|
835
|
-
id: string;
|
|
836
|
-
identifier: string;
|
|
837
|
-
title: string;
|
|
838
|
-
description?: string | null;
|
|
839
|
-
url: string;
|
|
840
|
-
createdAt?: string | Date;
|
|
841
|
-
updatedAt?: string | Date;
|
|
842
|
-
};
|
|
843
|
-
export type LinearCommentHandle = {
|
|
844
|
-
id: string;
|
|
845
|
-
body?: string;
|
|
846
|
-
createdAt?: string | Date;
|
|
847
|
-
updatedAt?: string | Date;
|
|
848
|
-
};
|
|
849
|
-
export type LinearStateSummary = {
|
|
850
|
-
id: string;
|
|
851
|
-
name: string;
|
|
852
|
-
type: string;
|
|
853
|
-
color: string;
|
|
854
|
-
teamId: string;
|
|
855
|
-
};
|
|
856
|
-
export type LinearLabelSummary = {
|
|
857
|
-
id: string;
|
|
858
|
-
name: string;
|
|
859
|
-
color: string;
|
|
860
|
-
teamId: string;
|
|
861
|
-
};
|
|
862
|
-
export type LinearProjectSummary = {
|
|
863
|
-
id: string;
|
|
864
|
-
name: string;
|
|
865
|
-
description?: string;
|
|
866
|
-
teamId: string;
|
|
867
|
-
};
|
|
868
|
-
export type LinearUserSummary = {
|
|
869
|
-
id: string;
|
|
870
|
-
name: string;
|
|
871
|
-
email: string;
|
|
872
|
-
avatarUrl?: string;
|
|
873
|
-
};
|
|
874
|
-
export type LinearSearchPagination = {
|
|
875
|
-
hasNextPage: boolean;
|
|
876
|
-
endCursor: string | null;
|
|
877
|
-
limit: number | null;
|
|
878
|
-
};
|
|
879
|
-
export type JiraIssueState = {
|
|
880
|
-
id: string;
|
|
881
|
-
name: string;
|
|
882
|
-
};
|
|
883
|
-
export type JiraIssueAssignee = {
|
|
884
|
-
id: string;
|
|
885
|
-
name: string;
|
|
886
|
-
email?: string;
|
|
887
|
-
};
|
|
888
|
-
export type JiraIssueProjectRef = {
|
|
889
|
-
id: string;
|
|
890
|
-
name: string;
|
|
891
|
-
key: string;
|
|
892
|
-
};
|
|
893
|
-
export type JiraIssueTypeRef = {
|
|
894
|
-
id: string;
|
|
895
|
-
name: string;
|
|
896
|
-
};
|
|
897
|
-
export type JiraRichDescription = string | Record<string, unknown>;
|
|
898
|
-
export type JiraIssueSummary = {
|
|
899
|
-
id?: string;
|
|
900
|
-
key: string;
|
|
901
|
-
identifier: string;
|
|
902
|
-
title?: string;
|
|
903
|
-
description?: JiraRichDescription;
|
|
904
|
-
state?: JiraIssueState;
|
|
905
|
-
priority?: number;
|
|
906
|
-
assignee?: JiraIssueAssignee | null;
|
|
907
|
-
labels?: string[];
|
|
908
|
-
dueDate?: string;
|
|
909
|
-
project?: JiraIssueProjectRef;
|
|
910
|
-
issueType?: JiraIssueTypeRef;
|
|
911
|
-
url?: string;
|
|
912
|
-
createdAt?: string;
|
|
913
|
-
updatedAt?: string;
|
|
914
|
-
};
|
|
915
|
-
export type GmailSendSummary = {
|
|
916
|
-
message_id: string;
|
|
917
|
-
thread_id: string;
|
|
918
|
-
to: string;
|
|
919
|
-
subject: string;
|
|
920
|
-
summary: string;
|
|
921
|
-
is_reply: boolean;
|
|
922
|
-
};
|
|
923
|
-
export type GmailDraftSummary = {
|
|
924
|
-
draft_id: string;
|
|
925
|
-
message_id: string;
|
|
926
|
-
thread_id: string;
|
|
927
|
-
draft_url: string;
|
|
928
|
-
to: string;
|
|
929
|
-
subject: string;
|
|
930
|
-
summary: string;
|
|
931
|
-
is_reply: boolean;
|
|
932
|
-
};
|
|
933
|
-
export type NotionUserReference = {
|
|
934
|
-
id: string;
|
|
935
|
-
name?: string;
|
|
936
|
-
object?: string;
|
|
937
|
-
};
|
|
938
|
-
export type NotionFileReference = {
|
|
939
|
-
name: string;
|
|
940
|
-
type: string;
|
|
941
|
-
file?: string;
|
|
942
|
-
external?: string;
|
|
943
|
-
};
|
|
944
|
-
export type NotionDateReference = {
|
|
945
|
-
start?: string;
|
|
946
|
-
end?: string | null;
|
|
947
|
-
time_zone?: string | null;
|
|
948
|
-
};
|
|
949
|
-
export type NotionReadablePropertyValue = string | number | boolean | null | string[] | NotionDateReference | NotionUserReference | NotionUserReference[] | NotionFileReference[] | Record<string, unknown>;
|
|
950
|
-
export type NotionPageBlock = {
|
|
951
|
-
id: string;
|
|
952
|
-
type: string;
|
|
953
|
-
object: string;
|
|
954
|
-
created_time?: string;
|
|
955
|
-
last_edited_time?: string;
|
|
956
|
-
created_by?: NotionUserReference;
|
|
957
|
-
last_edited_by?: NotionUserReference;
|
|
958
|
-
has_children?: boolean;
|
|
959
|
-
archived?: boolean;
|
|
960
|
-
content?: string;
|
|
961
|
-
rich_text?: Record<string, unknown>[];
|
|
962
|
-
checked?: boolean;
|
|
963
|
-
language?: string;
|
|
964
|
-
icon?: Record<string, unknown>;
|
|
965
|
-
table_width?: number;
|
|
966
|
-
has_column_header?: boolean;
|
|
967
|
-
has_row_header?: boolean;
|
|
968
|
-
caption?: string;
|
|
969
|
-
file?: string;
|
|
970
|
-
external?: string;
|
|
971
|
-
url?: string;
|
|
972
|
-
page_id?: string;
|
|
973
|
-
database_id?: string;
|
|
974
|
-
children?: NotionPageBlock[];
|
|
975
|
-
};
|
|
976
|
-
export type NotionPageParent = Record<string, unknown>;
|
|
977
|
-
export type NotionPageQueryMetadata = {
|
|
978
|
-
page_id: string;
|
|
979
|
-
object: string;
|
|
980
|
-
url?: string;
|
|
981
|
-
public_url?: string | null;
|
|
982
|
-
created_time?: string;
|
|
983
|
-
last_edited_time?: string;
|
|
984
|
-
archived?: boolean;
|
|
985
|
-
icon?: Record<string, unknown> | null;
|
|
986
|
-
cover?: Record<string, unknown> | null;
|
|
987
|
-
parent?: NotionPageParent;
|
|
988
|
-
created_by?: NotionUserReference;
|
|
989
|
-
last_edited_by?: NotionUserReference;
|
|
990
|
-
in_trash?: boolean;
|
|
991
|
-
};
|
|
992
|
-
export type NotionDatabaseRowMutationResult = ToolOutputSuccessBase & {
|
|
993
|
-
action: "created" | "updated";
|
|
994
|
-
page_id: string;
|
|
995
|
-
url?: string;
|
|
996
|
-
};
|
|
997
|
-
export type NotionSchemaProperty = {
|
|
998
|
-
type: string;
|
|
999
|
-
id: string;
|
|
1000
|
-
options?: string[];
|
|
1001
|
-
format_example?: string;
|
|
1002
|
-
};
|
|
1003
|
-
export type NotionDatabaseQueryPage = {
|
|
1004
|
-
page_id: string;
|
|
1005
|
-
properties: Record<string, NotionReadablePropertyValue>;
|
|
1006
|
-
url?: string;
|
|
1007
|
-
created_time?: string;
|
|
1008
|
-
last_edited_time?: string;
|
|
1009
|
-
};
|
|
1010
|
-
export type NotionQueryDatabaseFailure = ToolOutputFailureBase & {
|
|
1011
|
-
pages: [];
|
|
1012
|
-
total_returned: 0;
|
|
1013
|
-
has_more: false;
|
|
1014
|
-
next_cursor: null;
|
|
1015
|
-
error: string;
|
|
1016
|
-
hint: string;
|
|
1017
|
-
};
|
|
1018
|
-
export type NotionQueryDatabaseSuccess = ToolOutputSuccessBase & {
|
|
1019
|
-
pages: NotionDatabaseQueryPage[];
|
|
1020
|
-
total_returned: number;
|
|
1021
|
-
has_more: boolean;
|
|
1022
|
-
next_cursor: string | null;
|
|
1023
|
-
};
|
|
1024
|
-
export type NotionModifyBlocksAppendResult = {
|
|
1025
|
-
operation: "append";
|
|
1026
|
-
actions: RunHistoryAction[];
|
|
1027
|
-
block_ids: string[];
|
|
1028
|
-
blocks_count: number;
|
|
1029
|
-
};
|
|
1030
|
-
export type NotionModifyBlocksUpdateResult = {
|
|
1031
|
-
operation: "update";
|
|
1032
|
-
actions: RunHistoryAction[];
|
|
1033
|
-
block_id: string;
|
|
1034
|
-
};
|
|
1035
|
-
export type NotionModifyBlocksDeleteResult = {
|
|
1036
|
-
operation: "delete";
|
|
1037
|
-
actions: RunHistoryAction[];
|
|
1038
|
-
block_id: string;
|
|
1039
|
-
};
|
|
1040
|
-
export type NotionModifyBlocksOperationResult = NotionModifyBlocksAppendResult | NotionModifyBlocksUpdateResult | NotionModifyBlocksDeleteResult;
|
|
1041
|
-
export type NotionModifyBlocksSuccess = (ToolOutputSuccessBase & {
|
|
1042
|
-
operation: "append";
|
|
1043
|
-
block_ids: string[];
|
|
1044
|
-
blocks_count: number;
|
|
1045
|
-
}) | (ToolOutputSuccessBase & {
|
|
1046
|
-
operation: "update" | "delete";
|
|
1047
|
-
block_id: string;
|
|
1048
|
-
}) | (ToolOutputSuccessBase & {
|
|
1049
|
-
operations: NotionModifyBlocksOperationResult[];
|
|
1050
|
-
block_ids: string[];
|
|
1051
|
-
total_operations: number;
|
|
1052
|
-
});
|
|
1053
|
-
export type NotionModifyBlocksFailure = ToolOutputFailureBase & {
|
|
1054
|
-
error: string;
|
|
1055
|
-
block_ids: string[];
|
|
1056
|
-
operations?: NotionModifyBlocksOperationResult[];
|
|
1057
|
-
failed_at_index?: number;
|
|
1058
|
-
total_operations?: number;
|
|
1059
|
-
hint?: string;
|
|
1060
|
-
retry_instructions?: string;
|
|
1061
|
-
};
|
|
1062
|
-
export type NotionWorkspaceUser = {
|
|
1063
|
-
id: string;
|
|
1064
|
-
name: string;
|
|
1065
|
-
email?: string;
|
|
1066
|
-
};
|
|
1067
|
-
export type ConfluencePageSpace = {
|
|
1068
|
-
id: string | number;
|
|
1069
|
-
key: string;
|
|
1070
|
-
name: string;
|
|
1071
|
-
type: string;
|
|
1072
|
-
};
|
|
1073
|
-
export type ConfluencePageVersionAuthor = {
|
|
1074
|
-
type: string;
|
|
1075
|
-
username?: string;
|
|
1076
|
-
userKey?: string;
|
|
1077
|
-
accountId?: string;
|
|
1078
|
-
displayName?: string;
|
|
1079
|
-
};
|
|
1080
|
-
export type ConfluencePageVersion = {
|
|
1081
|
-
number: number;
|
|
1082
|
-
when: string;
|
|
1083
|
-
message?: string;
|
|
1084
|
-
by?: ConfluencePageVersionAuthor;
|
|
1085
|
-
};
|
|
1086
|
-
export type ConfluenceBodyRepresentation = {
|
|
1087
|
-
value: string;
|
|
1088
|
-
representation: string;
|
|
1089
|
-
};
|
|
1090
|
-
export type ConfluenceBodyContent = {
|
|
1091
|
-
storage?: ConfluenceBodyRepresentation;
|
|
1092
|
-
view?: ConfluenceBodyRepresentation;
|
|
1093
|
-
export_view?: ConfluenceBodyRepresentation;
|
|
1094
|
-
};
|
|
1095
|
-
export type ConfluencePageRelation = {
|
|
1096
|
-
id: string;
|
|
1097
|
-
title: string;
|
|
1098
|
-
type: string;
|
|
1099
|
-
};
|
|
1100
|
-
export type ConfluencePageQueryResult = {
|
|
1101
|
-
page_id: string;
|
|
1102
|
-
title: string;
|
|
1103
|
-
type: string;
|
|
1104
|
-
status: string;
|
|
1105
|
-
space?: ConfluencePageSpace;
|
|
1106
|
-
version?: ConfluencePageVersion;
|
|
1107
|
-
created_date?: string;
|
|
1108
|
-
last_modified?: string;
|
|
1109
|
-
url?: string;
|
|
1110
|
-
body: ConfluenceBodyContent;
|
|
1111
|
-
body_text: string;
|
|
1112
|
-
ancestors: ConfluencePageRelation[];
|
|
1113
|
-
descendants: ConfluencePageRelation[];
|
|
1114
|
-
ancestors_count: number;
|
|
1115
|
-
descendants_count: number;
|
|
1116
|
-
};
|
|
1117
|
-
export type ConfluenceCommentPosition = {
|
|
1118
|
-
start: number;
|
|
1119
|
-
end: number;
|
|
1120
|
-
};
|
|
1121
|
-
export type PosthogSessionSummary = {
|
|
1122
|
-
id: string;
|
|
1123
|
-
startTime?: string;
|
|
1124
|
-
endTime?: string;
|
|
1125
|
-
duration?: number;
|
|
1126
|
-
eventsCount: number;
|
|
1127
|
-
sessionUrl: string;
|
|
1128
|
-
personId: string;
|
|
1129
|
-
distinctId: string;
|
|
1130
|
-
};
|
|
1131
|
-
export type PosthogSearchSessionsPagination = {
|
|
1132
|
-
limit: number;
|
|
1133
|
-
offset: number;
|
|
1134
|
-
hasNext: boolean;
|
|
1135
|
-
hasPrevious: boolean;
|
|
1136
|
-
nextOffset: number | null;
|
|
1137
|
-
previousOffset: number | null;
|
|
1138
|
-
};
|
|
1139
|
-
export type PosthogSearchSessionsFound = ToolOutputBase & {
|
|
1140
|
-
userEmail: string;
|
|
1141
|
-
projectId: string;
|
|
1142
|
-
personFound: true;
|
|
1143
|
-
personId: string;
|
|
1144
|
-
distinctId: string;
|
|
1145
|
-
totalSessions: number;
|
|
1146
|
-
sessions: PosthogSessionSummary[];
|
|
1147
|
-
sessionsLink: string;
|
|
1148
|
-
pagination: PosthogSearchSessionsPagination;
|
|
1149
|
-
message: string;
|
|
1150
|
-
};
|
|
1151
|
-
export type PosthogSearchSessionsNotFound = ToolOutputBase & {
|
|
1152
|
-
userEmail: string;
|
|
1153
|
-
projectId: string;
|
|
1154
|
-
personFound: false;
|
|
1155
|
-
sessions: [];
|
|
1156
|
-
totalSessions: 0;
|
|
1157
|
-
message: string;
|
|
1158
|
-
};
|
|
1159
|
-
export type PosthogLogEntry = {
|
|
1160
|
-
id: string;
|
|
1161
|
-
timestamp?: string;
|
|
1162
|
-
level: string;
|
|
1163
|
-
message: string;
|
|
1164
|
-
service: string;
|
|
1165
|
-
attributes: Record<string, unknown>;
|
|
1166
|
-
};
|
|
1167
|
-
export type PosthogOffsetPagination = {
|
|
1168
|
-
limit: number;
|
|
1169
|
-
offset: number;
|
|
1170
|
-
hasMore: boolean;
|
|
1171
|
-
nextOffset: number | null;
|
|
1172
|
-
showing: string;
|
|
1173
|
-
};
|
|
1174
|
-
export type PosthogEventCount = {
|
|
1175
|
-
eventName: string;
|
|
1176
|
-
count: number;
|
|
1177
|
-
};
|
|
1178
|
-
export type PosthogEventSummary = {
|
|
1179
|
-
id: string;
|
|
1180
|
-
event: string;
|
|
1181
|
-
timestamp?: string;
|
|
1182
|
-
distinctId?: string;
|
|
1183
|
-
url?: string;
|
|
1184
|
-
};
|
|
1185
|
-
export type PosthogSessionEvent = {
|
|
1186
|
-
type: "click" | "input" | "scroll" | "console" | "network_error" | "navigation" | "custom" | "page_load" | "viewport_resize";
|
|
1187
|
-
timestamp: number;
|
|
1188
|
-
relativeTime: number;
|
|
1189
|
-
data: Record<string, unknown>;
|
|
1190
|
-
};
|
|
1191
|
-
export type PosthogSessionConsoleLog = {
|
|
1192
|
-
timestamp: string;
|
|
1193
|
-
level: string;
|
|
1194
|
-
message: string;
|
|
1195
|
-
};
|
|
1196
|
-
export type PosthogSessionEventsSummary = {
|
|
1197
|
-
totalRawEvents: number;
|
|
1198
|
-
meaningfulEventsReturned: number;
|
|
1199
|
-
consoleLogsReturned: number;
|
|
1200
|
-
};
|
|
1201
|
-
export type LaunchDarklyFlagSummary = {
|
|
1202
|
-
key: string;
|
|
1203
|
-
name: string;
|
|
1204
|
-
description: string;
|
|
1205
|
-
environments: Record<string, boolean>;
|
|
1206
|
-
url: string;
|
|
1207
|
-
environmentUrls: Record<string, string>;
|
|
1208
|
-
};
|
|
1209
|
-
export type LaunchDarklyFlagMetadata = {
|
|
1210
|
-
key: string;
|
|
1211
|
-
name: string;
|
|
1212
|
-
description: string;
|
|
1213
|
-
kind: string;
|
|
1214
|
-
variations: Record<string, unknown>[];
|
|
1215
|
-
tags: string[];
|
|
1216
|
-
maintainerId: string | null;
|
|
1217
|
-
};
|
|
1218
|
-
export type LaunchDarklyEnvironmentConfig = {
|
|
1219
|
-
on: boolean;
|
|
1220
|
-
targets: Record<string, unknown>[];
|
|
1221
|
-
contextTargets: Record<string, unknown>[];
|
|
1222
|
-
rules: Record<string, unknown>[];
|
|
1223
|
-
fallthrough: Record<string, unknown> | null;
|
|
1224
|
-
offVariation: number | null;
|
|
1225
|
-
prerequisites: Record<string, unknown>[];
|
|
1226
|
-
};
|
|
1227
|
-
export type LaunchDarklyHistoryEntry = {
|
|
1228
|
-
id: string;
|
|
1229
|
-
timestamp: string;
|
|
1230
|
-
kind: string;
|
|
1231
|
-
key: string;
|
|
1232
|
-
name: string;
|
|
1233
|
-
description: string;
|
|
1234
|
-
member: Record<string, unknown> | null;
|
|
1235
|
-
changes: Record<string, unknown>[];
|
|
1236
|
-
};
|
|
1237
|
-
export type LaunchDarklyHistoryResult = {
|
|
1238
|
-
entries: LaunchDarklyHistoryEntry[];
|
|
1239
|
-
totalEntries: number;
|
|
1240
|
-
url: string;
|
|
1241
|
-
};
|
|
1242
|
-
export type DatadogLogEntry = {
|
|
1243
|
-
id: string;
|
|
1244
|
-
timestamp?: string;
|
|
1245
|
-
message?: string;
|
|
1246
|
-
host?: string;
|
|
1247
|
-
service?: string;
|
|
1248
|
-
status?: string;
|
|
1249
|
-
tags: string[];
|
|
1250
|
-
customAttributes: Record<string, unknown>;
|
|
1251
|
-
};
|
|
1252
|
-
export type DatadogCursorPagination = {
|
|
1253
|
-
limit: number;
|
|
1254
|
-
cursor?: string | null;
|
|
1255
|
-
nextCursor: string | null;
|
|
1256
|
-
hasMore: boolean;
|
|
1257
|
-
showing: string;
|
|
1258
|
-
};
|
|
1259
|
-
export type DatadogRumSessionDetails = {
|
|
1260
|
-
id?: string;
|
|
1261
|
-
type?: string;
|
|
1262
|
-
hasReplay?: boolean;
|
|
1263
|
-
duration?: number;
|
|
1264
|
-
};
|
|
1265
|
-
export type DatadogRumViewDetails = {
|
|
1266
|
-
id?: string;
|
|
1267
|
-
name?: string;
|
|
1268
|
-
url?: string;
|
|
1269
|
-
loadTime?: number;
|
|
1270
|
-
timeSpent?: number;
|
|
1271
|
-
};
|
|
1272
|
-
export type DatadogRumActionDetails = {
|
|
1273
|
-
id?: string;
|
|
1274
|
-
type?: string;
|
|
1275
|
-
target?: string;
|
|
1276
|
-
loadingTime?: number;
|
|
1277
|
-
};
|
|
1278
|
-
export type DatadogRumErrorDetails = {
|
|
1279
|
-
id?: string;
|
|
1280
|
-
message?: string;
|
|
1281
|
-
source?: string;
|
|
1282
|
-
stack?: string;
|
|
1283
|
-
type?: string;
|
|
1284
|
-
};
|
|
1285
|
-
export type DatadogRumResourceDetails = {
|
|
1286
|
-
id?: string;
|
|
1287
|
-
type?: string;
|
|
1288
|
-
url?: string;
|
|
1289
|
-
method?: string;
|
|
1290
|
-
statusCode?: number;
|
|
1291
|
-
duration?: number;
|
|
1292
|
-
};
|
|
1293
|
-
export type DatadogRumLongTaskDetails = {
|
|
1294
|
-
id?: string;
|
|
1295
|
-
duration?: number;
|
|
1296
|
-
};
|
|
1297
|
-
export type DatadogRumEvent = {
|
|
1298
|
-
id: string;
|
|
1299
|
-
type: string;
|
|
1300
|
-
timestamp?: string;
|
|
1301
|
-
session?: DatadogRumSessionDetails;
|
|
1302
|
-
view?: DatadogRumViewDetails | Record<string, unknown>;
|
|
1303
|
-
action?: DatadogRumActionDetails;
|
|
1304
|
-
error?: DatadogRumErrorDetails;
|
|
1305
|
-
resource?: DatadogRumResourceDetails;
|
|
1306
|
-
longTask?: DatadogRumLongTaskDetails;
|
|
1307
|
-
service?: string;
|
|
1308
|
-
version?: string;
|
|
1309
|
-
environment?: string;
|
|
1310
|
-
device?: Record<string, unknown>;
|
|
1311
|
-
os?: Record<string, unknown>;
|
|
1312
|
-
browser?: Record<string, unknown>;
|
|
1313
|
-
user?: Record<string, unknown>;
|
|
1314
|
-
tags: string[];
|
|
1315
|
-
customAttributes: Record<string, unknown>;
|
|
1316
|
-
};
|
|
1317
|
-
export type DatadogAggregationBucketCompute = {
|
|
1318
|
-
value: unknown;
|
|
1319
|
-
aggregation: string;
|
|
1320
|
-
metric: string;
|
|
1321
|
-
};
|
|
1322
|
-
export type DatadogAggregationBucket = {
|
|
1323
|
-
by: Record<string, unknown>;
|
|
1324
|
-
computes: Record<string, DatadogAggregationBucketCompute>;
|
|
1325
|
-
};
|
|
1326
|
-
export type DatadogAggregationMeta = {
|
|
1327
|
-
elapsed?: number;
|
|
1328
|
-
requestId?: string;
|
|
1329
|
-
status?: unknown;
|
|
1330
|
-
};
|
|
1331
|
-
export type WorkOSUserSummary = {
|
|
1332
|
-
id: string;
|
|
1333
|
-
email: string;
|
|
1334
|
-
emailVerified: boolean;
|
|
1335
|
-
firstName?: string | null;
|
|
1336
|
-
lastName?: string | null;
|
|
1337
|
-
profilePictureUrl?: string | null;
|
|
1338
|
-
createdAt: string;
|
|
1339
|
-
updatedAt: string;
|
|
1340
|
-
};
|
|
1341
|
-
export type WorkOSOrganizationSummary = {
|
|
1342
|
-
id: string;
|
|
1343
|
-
name: string;
|
|
1344
|
-
externalId?: string | null;
|
|
1345
|
-
domains: string[];
|
|
1346
|
-
createdAt: string;
|
|
1347
|
-
updatedAt: string;
|
|
1348
|
-
};
|
|
1349
|
-
export type WorkOSPagination = {
|
|
1350
|
-
hasMore: boolean;
|
|
1351
|
-
after?: string | null;
|
|
1352
|
-
};
|
|
1353
|
-
export type WebSearchResultItem = {
|
|
1354
|
-
title: string;
|
|
1355
|
-
url: string;
|
|
1356
|
-
content: string;
|
|
1357
|
-
score: number;
|
|
1358
|
-
};
|
|
1359
|
-
export type WebSearchOutput = {
|
|
1360
|
-
query: string;
|
|
1361
|
-
answer: string | undefined;
|
|
1362
|
-
results: WebSearchResultItem[];
|
|
1363
|
-
};
|
|
1364
|
-
export type WebExtractResultItem = {
|
|
1365
|
-
url: string;
|
|
1366
|
-
raw_content: string;
|
|
1367
|
-
};
|
|
1368
|
-
export type WebExtractOutput = {
|
|
1369
|
-
results: WebExtractResultItem[];
|
|
1370
|
-
failed_results: unknown;
|
|
1371
|
-
};
|
|
1372
|
-
export type WebResearchSource = {
|
|
1373
|
-
title: string;
|
|
1374
|
-
url: string;
|
|
1375
|
-
};
|
|
1376
|
-
export type WebResearchOutput = ToolOutputBase & {
|
|
1377
|
-
status: "completed";
|
|
1378
|
-
request_id: string;
|
|
1379
|
-
content: string | undefined;
|
|
1380
|
-
sources: WebResearchSource[] | undefined;
|
|
1381
|
-
};
|
|
1382
|
-
export type ImageEditSnippet = {
|
|
1383
|
-
type: "image";
|
|
1384
|
-
url: string;
|
|
1385
|
-
};
|
|
1386
|
-
export type ImageEditOutput = ToolOutputBase & {
|
|
1387
|
-
url: string;
|
|
1388
|
-
image_url: string;
|
|
1389
|
-
summary: string;
|
|
1390
|
-
snippets: ImageEditSnippet[];
|
|
1391
|
-
};
|
|
1392
|
-
export type ToolOutputByName = {
|
|
1393
|
-
attio_list_objects: ToolOutputBase & {
|
|
1394
|
-
objects: AttioObjectWithAttributes[];
|
|
1395
|
-
count: number;
|
|
1396
|
-
};
|
|
1397
|
-
attio_query_records: ToolOutputBase & {
|
|
1398
|
-
records: AttioRecord[];
|
|
1399
|
-
count: number;
|
|
1400
|
-
};
|
|
1401
|
-
attio_upsert_record: ToolOutputBase & {
|
|
1402
|
-
records?: AttioRecord[];
|
|
1403
|
-
count?: number;
|
|
1404
|
-
requestedCount?: number;
|
|
1405
|
-
successCount?: number;
|
|
1406
|
-
failureCount?: number;
|
|
1407
|
-
partial?: boolean;
|
|
1408
|
-
errors?: AttioUpsertError[];
|
|
1409
|
-
};
|
|
1410
|
-
slack_send_message: ToolOutputBase & {
|
|
1411
|
-
message_ts: string | undefined;
|
|
1412
|
-
channel: string;
|
|
1413
|
-
thread_ts: string | undefined;
|
|
1414
|
-
summary: string;
|
|
1415
|
-
has_blocks: boolean;
|
|
1416
|
-
};
|
|
1417
|
-
slack_list_channels: ToolOutputBase & {
|
|
1418
|
-
channels: SlackChannelListItem[];
|
|
1419
|
-
count: number;
|
|
1420
|
-
nextCursor: string | null;
|
|
1421
|
-
hasMore: boolean;
|
|
1422
|
-
};
|
|
1423
|
-
slack_list_users: ToolOutputBase & {
|
|
1424
|
-
users: SlackUserResponse[];
|
|
1425
|
-
count: number;
|
|
1426
|
-
};
|
|
1427
|
-
slack_read_conversation: ToolOutputBase & {
|
|
1428
|
-
channelId: string;
|
|
1429
|
-
channelName?: string;
|
|
1430
|
-
messages: SlackConversationMessage[];
|
|
1431
|
-
count: number;
|
|
1432
|
-
hasMore: boolean;
|
|
1433
|
-
nextCursor: string | null;
|
|
1434
|
-
};
|
|
1435
|
-
searchGitHubCode: ToolOutputBase & {
|
|
1436
|
-
totalCount: number;
|
|
1437
|
-
resultsReturned: number;
|
|
1438
|
-
query: string;
|
|
1439
|
-
repositories: string[];
|
|
1440
|
-
pagination: GitHubPagination;
|
|
1441
|
-
results: GitHubCodeSearchResult[];
|
|
1442
|
-
message: string;
|
|
1443
|
-
tip: string;
|
|
1444
|
-
};
|
|
1445
|
-
readGitHubFile: ToolOutputBase & {
|
|
1446
|
-
repository: string;
|
|
1447
|
-
path: string;
|
|
1448
|
-
url: string;
|
|
1449
|
-
totalLines: number;
|
|
1450
|
-
displayedLines: string;
|
|
1451
|
-
size: number;
|
|
1452
|
-
content: string;
|
|
1453
|
-
warning?: string;
|
|
1454
|
-
};
|
|
1455
|
-
listGitHubPullRequests: ToolOutputBase & {
|
|
1456
|
-
repository: string;
|
|
1457
|
-
timeWindow: string;
|
|
1458
|
-
summary: {
|
|
1459
|
-
total: number;
|
|
1460
|
-
merged: number;
|
|
1461
|
-
open: number;
|
|
1462
|
-
closed: number;
|
|
1463
|
-
};
|
|
1464
|
-
pagination: GitHubPagination;
|
|
1465
|
-
pullRequests: GitHubPullRequestSummary[];
|
|
1466
|
-
message: string;
|
|
1467
|
-
};
|
|
1468
|
-
listGitHubDirectory: ToolOutputBase & {
|
|
1469
|
-
repository: string;
|
|
1470
|
-
path: string;
|
|
1471
|
-
recursive: boolean;
|
|
1472
|
-
totalItems: number;
|
|
1473
|
-
directories: Array<GitHubDirectoryEntry | string>;
|
|
1474
|
-
files: GitHubFileEntry[];
|
|
1475
|
-
warning?: string;
|
|
1476
|
-
tip?: string;
|
|
1477
|
-
truncated?: boolean;
|
|
1478
|
-
other?: GitHubOtherEntry[];
|
|
1479
|
-
};
|
|
1480
|
-
listGitHubCommits: ToolOutputBase & {
|
|
1481
|
-
repository: string;
|
|
1482
|
-
timeWindow: string;
|
|
1483
|
-
filters: string;
|
|
1484
|
-
summary: {
|
|
1485
|
-
total: number;
|
|
1486
|
-
byAuthor: Record<string, number>;
|
|
1487
|
-
};
|
|
1488
|
-
commits: GitHubCommitSummary[];
|
|
1489
|
-
message: string;
|
|
1490
|
-
tip: string;
|
|
1491
|
-
};
|
|
1492
|
-
grepGitHubCode: ToolOutputBase & {
|
|
1493
|
-
totalCount: number;
|
|
1494
|
-
resultsReturned: number;
|
|
1495
|
-
pattern: string;
|
|
1496
|
-
query: string;
|
|
1497
|
-
repositories: string[];
|
|
1498
|
-
pagination: GitHubPagination;
|
|
1499
|
-
results: GitHubCodeGrepResult[];
|
|
1500
|
-
message: string;
|
|
1501
|
-
tip: string;
|
|
1502
|
-
};
|
|
1503
|
-
summarizeGitHubPullRequestDiff: ToolOutputBase & {
|
|
1504
|
-
repository: string;
|
|
1505
|
-
pullRequest: GitHubPullRequestRef;
|
|
1506
|
-
summary: Record<string, unknown>;
|
|
1507
|
-
pagination: GitHubPagination;
|
|
1508
|
-
analysis: string;
|
|
1509
|
-
message: string;
|
|
1510
|
-
};
|
|
1511
|
-
snowflakeExecuteQuery: ToolOutputBase & {
|
|
1512
|
-
rows: SnowflakeQueryRow[];
|
|
1513
|
-
columns: string[];
|
|
1514
|
-
rowCount: number;
|
|
1515
|
-
};
|
|
1516
|
-
snowflakeExplainQuery: ToolOutputBase & {
|
|
1517
|
-
explainPlan: SnowflakeQueryRow[];
|
|
1518
|
-
columns: string[];
|
|
1519
|
-
rowCount: number;
|
|
1520
|
-
};
|
|
1521
|
-
linear_create_ticket: ToolOutputBase & {
|
|
1522
|
-
issue: LinearIssueHandle;
|
|
1523
|
-
};
|
|
1524
|
-
linear_update_ticket: ToolOutputBase & {
|
|
1525
|
-
issue: LinearIssueHandle;
|
|
1526
|
-
};
|
|
1527
|
-
linear_add_comment: ToolOutputBase & {
|
|
1528
|
-
comment: LinearCommentHandle;
|
|
1529
|
-
};
|
|
1530
|
-
linear_search_ticket: ToolOutputBase & {
|
|
1531
|
-
issues: LinearIssueSummary[];
|
|
1532
|
-
count: number;
|
|
1533
|
-
query: string;
|
|
1534
|
-
pagination: LinearSearchPagination;
|
|
1535
|
-
};
|
|
1536
|
-
linear_read_ticket: ToolOutputBase & {
|
|
1537
|
-
issue: LinearIssueDetail;
|
|
1538
|
-
comments?: Array<{
|
|
1539
|
-
id: string;
|
|
1540
|
-
body: string;
|
|
1541
|
-
authorId: string;
|
|
1542
|
-
createdAt: string;
|
|
1543
|
-
}>;
|
|
1544
|
-
};
|
|
1545
|
-
linear_get_states: ToolOutputBase & {
|
|
1546
|
-
states: LinearStateSummary[];
|
|
1547
|
-
};
|
|
1548
|
-
linear_get_labels: ToolOutputBase & {
|
|
1549
|
-
labels: LinearLabelSummary[];
|
|
1550
|
-
};
|
|
1551
|
-
linear_get_projects: ToolOutputBase & {
|
|
1552
|
-
projects: LinearProjectSummary[];
|
|
1553
|
-
};
|
|
1554
|
-
linear_get_teams: ToolOutputBase & {
|
|
1555
|
-
teams: LinearTeam[];
|
|
1556
|
-
};
|
|
1557
|
-
linear_get_users: ToolOutputBase & {
|
|
1558
|
-
users: LinearUserSummary[];
|
|
1559
|
-
};
|
|
1560
|
-
jira_create_ticket: ToolOutputBase & {
|
|
1561
|
-
issue: JiraIssueSummary;
|
|
1562
|
-
};
|
|
1563
|
-
jira_update_ticket: ToolOutputBase & {
|
|
1564
|
-
issue: JiraIssueSummary;
|
|
1565
|
-
updatedFields: string[];
|
|
1566
|
-
};
|
|
1567
|
-
jira_search_ticket: ToolOutputBase & {
|
|
1568
|
-
issues: JiraIssueSummary[];
|
|
1569
|
-
count: number;
|
|
1570
|
-
total: number;
|
|
1571
|
-
maxResults: number;
|
|
1572
|
-
isLast: boolean;
|
|
1573
|
-
nextPageToken?: string;
|
|
1574
|
-
jql: string;
|
|
1575
|
-
};
|
|
1576
|
-
notion_create_or_update_page: NotionDatabaseRowMutationResult;
|
|
1577
|
-
notion_create_or_update_database_row: NotionDatabaseRowMutationResult;
|
|
1578
|
-
notion_modify_blocks: NotionModifyBlocksSuccess | NotionModifyBlocksFailure;
|
|
1579
|
-
notion_query_page: ToolOutputBase & NotionPageQueryMetadata & {
|
|
1580
|
-
properties: Record<string, NotionReadablePropertyValue>;
|
|
1581
|
-
properties_raw?: Record<string, unknown>;
|
|
1582
|
-
blocks: NotionPageBlock[];
|
|
1583
|
-
blocks_count: number;
|
|
1584
|
-
};
|
|
1585
|
-
notion_query_database: NotionQueryDatabaseSuccess | NotionQueryDatabaseFailure;
|
|
1586
|
-
notion_get_schema: ToolOutputBase & {
|
|
1587
|
-
data_source_id: string;
|
|
1588
|
-
database_name: string;
|
|
1589
|
-
schema: Record<string, NotionSchemaProperty>;
|
|
1590
|
-
property_count: number;
|
|
1591
|
-
};
|
|
1592
|
-
notion_fetch_related_events: ToolOutputBase & {
|
|
1593
|
-
events_count: number;
|
|
1594
|
-
events?: string;
|
|
1595
|
-
message: string;
|
|
1596
|
-
};
|
|
1597
|
-
notion_list_users: ToolOutputBase & {
|
|
1598
|
-
users: NotionWorkspaceUser[];
|
|
1599
|
-
count: number;
|
|
1600
|
-
};
|
|
1601
|
-
gmail_send_email: ToolOutputBase & GmailSendSummary;
|
|
1602
|
-
gmail_create_draft: ToolOutputBase & GmailDraftSummary;
|
|
1603
|
-
confluence_query_page: ToolOutputBase & ConfluencePageQueryResult;
|
|
1604
|
-
confluence_add_comment: ToolOutputBase & {
|
|
1605
|
-
comment_id: string;
|
|
1606
|
-
comment_text: string;
|
|
1607
|
-
position: ConfluenceCommentPosition;
|
|
1608
|
-
text_commented_on?: string;
|
|
1609
|
-
message: string;
|
|
1610
|
-
};
|
|
1611
|
-
searchPosthogSessions: PosthogSearchSessionsFound | PosthogSearchSessionsNotFound;
|
|
1612
|
-
searchPosthogLogs: ToolOutputBase & {
|
|
1613
|
-
userEmail: string | null;
|
|
1614
|
-
severityLevels: Array<"error" | "warn" | "info" | "debug"> | null;
|
|
1615
|
-
messageSearch: string | null;
|
|
1616
|
-
projectId: string;
|
|
1617
|
-
totalLogs: number;
|
|
1618
|
-
logs: PosthogLogEntry[];
|
|
1619
|
-
logsLink: string;
|
|
1620
|
-
pagination: PosthogOffsetPagination;
|
|
1621
|
-
message: string;
|
|
1622
|
-
};
|
|
1623
|
-
getPosthogSessionEvents: ToolOutputBase & {
|
|
1624
|
-
sessionId: string;
|
|
1625
|
-
sessionUrl: string;
|
|
1626
|
-
startTime: string;
|
|
1627
|
-
duration?: number;
|
|
1628
|
-
timeWindow: {
|
|
1629
|
-
startSeconds: number;
|
|
1630
|
-
endSeconds: number | null;
|
|
1631
|
-
};
|
|
1632
|
-
summary: PosthogSessionEventsSummary;
|
|
1633
|
-
events: PosthogSessionEvent[];
|
|
1634
|
-
consoleLogs: PosthogSessionConsoleLog[];
|
|
1635
|
-
message: string;
|
|
1636
|
-
};
|
|
1637
|
-
searchPosthogEvents: (ToolOutputBase & {
|
|
1638
|
-
countByEventNameOnly: true;
|
|
1639
|
-
customEventsOnly: boolean;
|
|
1640
|
-
eventCounts: PosthogEventCount[];
|
|
1641
|
-
totalEventTypes: number;
|
|
1642
|
-
eventsLink: string;
|
|
1643
|
-
message: string;
|
|
1644
|
-
}) | (ToolOutputBase & {
|
|
1645
|
-
userEmail: string | null;
|
|
1646
|
-
eventName: string | null;
|
|
1647
|
-
projectId: string;
|
|
1648
|
-
totalEvents: number;
|
|
1649
|
-
events: PosthogEventSummary[];
|
|
1650
|
-
eventsLink: string;
|
|
1651
|
-
pagination: PosthogOffsetPagination;
|
|
1652
|
-
message: string;
|
|
1653
|
-
});
|
|
1654
|
-
listLaunchDarklyFlags: ToolOutputBase & {
|
|
1655
|
-
projectKey: string;
|
|
1656
|
-
totalFlags: number;
|
|
1657
|
-
flags: LaunchDarklyFlagSummary[];
|
|
1658
|
-
flagsLink: string;
|
|
1659
|
-
message: string;
|
|
1660
|
-
};
|
|
1661
|
-
getLaunchDarklyFlagDetails: ToolOutputBase & {
|
|
1662
|
-
projectKey: string;
|
|
1663
|
-
flag: LaunchDarklyFlagMetadata;
|
|
1664
|
-
environments: Record<string, LaunchDarklyEnvironmentConfig>;
|
|
1665
|
-
url: string;
|
|
1666
|
-
history?: LaunchDarklyHistoryResult;
|
|
1667
|
-
message: string;
|
|
1668
|
-
};
|
|
1669
|
-
searchDatadogLogs: ToolOutputBase & {
|
|
1670
|
-
query: string | null;
|
|
1671
|
-
indexes: string[];
|
|
1672
|
-
totalLogs: number;
|
|
1673
|
-
logs: DatadogLogEntry[];
|
|
1674
|
-
logsLink: string;
|
|
1675
|
-
pagination: DatadogCursorPagination;
|
|
1676
|
-
warnings: string | null;
|
|
1677
|
-
message: string;
|
|
1678
|
-
};
|
|
1679
|
-
searchRumEvents: ToolOutputBase & {
|
|
1680
|
-
query: string | null;
|
|
1681
|
-
totalEvents: number;
|
|
1682
|
-
events: DatadogRumEvent[];
|
|
1683
|
-
eventsByType: Record<string, number>;
|
|
1684
|
-
rumLink: string;
|
|
1685
|
-
pagination: DatadogCursorPagination;
|
|
1686
|
-
warnings: string | null;
|
|
1687
|
-
message: string;
|
|
1688
|
-
};
|
|
1689
|
-
listRumEvents: ToolOutputBase & {
|
|
1690
|
-
query: string | null;
|
|
1691
|
-
totalEvents: number;
|
|
1692
|
-
events: DatadogRumEvent[];
|
|
1693
|
-
eventsByType: Record<string, number>;
|
|
1694
|
-
rumLink: string;
|
|
1695
|
-
pagination: DatadogCursorPagination;
|
|
1696
|
-
warnings: string | null;
|
|
1697
|
-
message: string;
|
|
1698
|
-
};
|
|
1699
|
-
aggregateRumEvents: ToolOutputBase & {
|
|
1700
|
-
query: string | null;
|
|
1701
|
-
from: string;
|
|
1702
|
-
to: string | null;
|
|
1703
|
-
compute: string;
|
|
1704
|
-
groupBy: string;
|
|
1705
|
-
totalBuckets: number;
|
|
1706
|
-
buckets: DatadogAggregationBucket[];
|
|
1707
|
-
rumLink: string;
|
|
1708
|
-
pagination: Omit<DatadogCursorPagination, "cursor">;
|
|
1709
|
-
warnings: string | null;
|
|
1710
|
-
meta: DatadogAggregationMeta;
|
|
1711
|
-
message: string;
|
|
1712
|
-
};
|
|
1713
|
-
listWorkOSUsers: ToolOutputBase & {
|
|
1714
|
-
users: WorkOSUserSummary[];
|
|
1715
|
-
pagination: WorkOSPagination;
|
|
1716
|
-
message: string;
|
|
1717
|
-
};
|
|
1718
|
-
listWorkOSOrganizations: ToolOutputBase & {
|
|
1719
|
-
organizations: WorkOSOrganizationSummary[];
|
|
1720
|
-
pagination: WorkOSPagination;
|
|
1721
|
-
message: string;
|
|
1722
|
-
};
|
|
1723
|
-
getWorkOSUser: ToolOutputBase & {
|
|
1724
|
-
user: WorkOSUserSummary;
|
|
1725
|
-
message: string;
|
|
1726
|
-
};
|
|
1727
|
-
web_search: WebSearchOutput;
|
|
1728
|
-
web_extract: WebExtractOutput;
|
|
1729
|
-
web_research: WebResearchOutput;
|
|
1730
|
-
image_edit: ImageEditOutput;
|
|
1731
|
-
};
|
|
1732
|
-
//# sourceMappingURL=types.d.ts.map
|