terse-cli 0.3.7 → 0.4.0

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.
Files changed (183) hide show
  1. package/dist/commands/auth.js +3 -3
  2. package/dist/commands/auth.js.map +1 -1
  3. package/dist/commands/authOrg.js +3 -3
  4. package/dist/commands/authOrg.js.map +1 -1
  5. package/dist/commands/authStatus.d.ts.map +1 -1
  6. package/dist/commands/authStatus.js +2 -3
  7. package/dist/commands/authStatus.js.map +1 -1
  8. package/dist/commands/deploy.js +1 -2
  9. package/dist/commands/deploy.js.map +1 -1
  10. package/dist/commands/install.d.ts.map +1 -1
  11. package/dist/commands/install.js +2 -2
  12. package/dist/commands/install.js.map +1 -1
  13. package/dist/providers/typescript/TypeScriptProvider.js +1 -1
  14. package/dist/providers/typescript/TypeScriptProvider.js.map +1 -1
  15. package/package.json +3 -3
  16. package/dist/attach.d.ts +0 -3
  17. package/dist/attach.d.ts.map +0 -1
  18. package/dist/attach.js +0 -61
  19. package/dist/attach.js.map +0 -1
  20. package/dist/auth.d.ts +0 -15
  21. package/dist/auth.d.ts.map +0 -1
  22. package/dist/auth.js +0 -169
  23. package/dist/auth.js.map +0 -1
  24. package/dist/codegen.d.ts +0 -120
  25. package/dist/codegen.d.ts.map +0 -1
  26. package/dist/codegen.js +0 -811
  27. package/dist/codegen.js.map +0 -1
  28. package/dist/deploy.d.ts +0 -2
  29. package/dist/deploy.d.ts.map +0 -1
  30. package/dist/deploy.js +0 -101
  31. package/dist/deploy.js.map +0 -1
  32. package/dist/generate.d.ts +0 -2
  33. package/dist/generate.d.ts.map +0 -1
  34. package/dist/generate.js +0 -284
  35. package/dist/generate.js.map +0 -1
  36. package/dist/init.d.ts +0 -2
  37. package/dist/init.d.ts.map +0 -1
  38. package/dist/init.js +0 -149
  39. package/dist/init.js.map +0 -1
  40. package/dist/integrate.d.ts +0 -2
  41. package/dist/integrate.d.ts.map +0 -1
  42. package/dist/integrate.js +0 -34
  43. package/dist/integrate.js.map +0 -1
  44. package/dist/jsonOutput.d.ts +0 -19
  45. package/dist/jsonOutput.d.ts.map +0 -1
  46. package/dist/jsonOutput.js +0 -25
  47. package/dist/jsonOutput.js.map +0 -1
  48. package/dist/nonInteractive.d.ts +0 -18
  49. package/dist/nonInteractive.d.ts.map +0 -1
  50. package/dist/nonInteractive.js +0 -57
  51. package/dist/nonInteractive.js.map +0 -1
  52. package/dist/providers/python/PythonProvider.d.ts +0 -51
  53. package/dist/providers/python/PythonProvider.d.ts.map +0 -1
  54. package/dist/providers/python/PythonProvider.js +0 -413
  55. package/dist/providers/python/PythonProvider.js.map +0 -1
  56. package/dist/providers/python/preparePythonCodegenData.d.ts +0 -139
  57. package/dist/providers/python/preparePythonCodegenData.d.ts.map +0 -1
  58. package/dist/providers/python/preparePythonCodegenData.js +0 -452
  59. package/dist/providers/python/preparePythonCodegenData.js.map +0 -1
  60. package/dist/providers/python/pythonTemplateEngine.d.ts +0 -3
  61. package/dist/providers/python/pythonTemplateEngine.d.ts.map +0 -1
  62. package/dist/providers/python/pythonTemplateEngine.js +0 -30
  63. package/dist/providers/python/pythonTemplateEngine.js.map +0 -1
  64. package/dist/providers/shared/shellUtils.d.ts +0 -2
  65. package/dist/providers/shared/shellUtils.d.ts.map +0 -1
  66. package/dist/providers/shared/shellUtils.js +0 -25
  67. package/dist/providers/shared/shellUtils.js.map +0 -1
  68. package/dist/providers/typescript/parkSignals.d.ts +0 -7
  69. package/dist/providers/typescript/parkSignals.d.ts.map +0 -1
  70. package/dist/providers/typescript/parkSignals.js +0 -45
  71. package/dist/providers/typescript/parkSignals.js.map +0 -1
  72. package/dist/providers/typescript/prepareCodegenData.d.ts +0 -166
  73. package/dist/providers/typescript/prepareCodegenData.d.ts.map +0 -1
  74. package/dist/providers/typescript/prepareCodegenData.js +0 -1431
  75. package/dist/providers/typescript/prepareCodegenData.js.map +0 -1
  76. package/dist/replay.d.ts +0 -3
  77. package/dist/replay.d.ts.map +0 -1
  78. package/dist/replay.js +0 -20
  79. package/dist/replay.js.map +0 -1
  80. package/dist/run.d.ts +0 -12
  81. package/dist/run.d.ts.map +0 -1
  82. package/dist/run.js +0 -183
  83. package/dist/run.js.map +0 -1
  84. package/dist/sampleEventCache.d.ts +0 -9
  85. package/dist/sampleEventCache.d.ts.map +0 -1
  86. package/dist/sampleEventCache.js +0 -47
  87. package/dist/sampleEventCache.js.map +0 -1
  88. package/dist/sampleEventId.d.ts +0 -13
  89. package/dist/sampleEventId.d.ts.map +0 -1
  90. package/dist/sampleEventId.js +0 -20
  91. package/dist/sampleEventId.js.map +0 -1
  92. package/dist/shared/ApiRoutes.d.ts +0 -329
  93. package/dist/shared/ApiRoutes.d.ts.map +0 -1
  94. package/dist/shared/ApiRoutes.js +0 -309
  95. package/dist/shared/ApiRoutes.js.map +0 -1
  96. package/dist/shared/ApprovalTypes.d.ts +0 -29
  97. package/dist/shared/ApprovalTypes.d.ts.map +0 -1
  98. package/dist/shared/ApprovalTypes.js +0 -8
  99. package/dist/shared/ApprovalTypes.js.map +0 -1
  100. package/dist/shared/ClientBoundTools.d.ts +0 -37
  101. package/dist/shared/ClientBoundTools.d.ts.map +0 -1
  102. package/dist/shared/ClientBoundTools.js +0 -37
  103. package/dist/shared/ClientBoundTools.js.map +0 -1
  104. package/dist/shared/Configs.d.ts +0 -466
  105. package/dist/shared/Configs.d.ts.map +0 -1
  106. package/dist/shared/Configs.js +0 -755
  107. package/dist/shared/Configs.js.map +0 -1
  108. package/dist/shared/DonatedState.d.ts +0 -5
  109. package/dist/shared/DonatedState.d.ts.map +0 -1
  110. package/dist/shared/DonatedState.js +0 -13
  111. package/dist/shared/DonatedState.js.map +0 -1
  112. package/dist/shared/Entities.d.ts +0 -8
  113. package/dist/shared/Entities.d.ts.map +0 -1
  114. package/dist/shared/Entities.js +0 -9
  115. package/dist/shared/Entities.js.map +0 -1
  116. package/dist/shared/FrontendRoutes.d.ts +0 -54
  117. package/dist/shared/FrontendRoutes.d.ts.map +0 -1
  118. package/dist/shared/FrontendRoutes.js +0 -54
  119. package/dist/shared/FrontendRoutes.js.map +0 -1
  120. package/dist/shared/Integrations.d.ts +0 -218
  121. package/dist/shared/Integrations.d.ts.map +0 -1
  122. package/dist/shared/Integrations.js +0 -134
  123. package/dist/shared/Integrations.js.map +0 -1
  124. package/dist/shared/InvalidationKeys.d.ts +0 -52
  125. package/dist/shared/InvalidationKeys.d.ts.map +0 -1
  126. package/dist/shared/InvalidationKeys.js +0 -163
  127. package/dist/shared/InvalidationKeys.js.map +0 -1
  128. package/dist/shared/ModelEvents.d.ts +0 -167
  129. package/dist/shared/ModelEvents.d.ts.map +0 -1
  130. package/dist/shared/ModelEvents.js +0 -14
  131. package/dist/shared/ModelEvents.js.map +0 -1
  132. package/dist/shared/Notifications.d.ts +0 -43
  133. package/dist/shared/Notifications.d.ts.map +0 -1
  134. package/dist/shared/Notifications.js +0 -6
  135. package/dist/shared/Notifications.js.map +0 -1
  136. package/dist/shared/RunHistoryTypes.d.ts +0 -95
  137. package/dist/shared/RunHistoryTypes.d.ts.map +0 -1
  138. package/dist/shared/RunHistoryTypes.js +0 -11
  139. package/dist/shared/RunHistoryTypes.js.map +0 -1
  140. package/dist/shared/SentNotifications.d.ts +0 -30
  141. package/dist/shared/SentNotifications.d.ts.map +0 -1
  142. package/dist/shared/SentNotifications.js +0 -13
  143. package/dist/shared/SentNotifications.js.map +0 -1
  144. package/dist/shared/SocketEvents.d.ts +0 -49
  145. package/dist/shared/SocketEvents.d.ts.map +0 -1
  146. package/dist/shared/SocketEvents.js +0 -53
  147. package/dist/shared/SocketEvents.js.map +0 -1
  148. package/dist/shared/Survey.d.ts +0 -10
  149. package/dist/shared/Survey.d.ts.map +0 -1
  150. package/dist/shared/Survey.js +0 -2
  151. package/dist/shared/Survey.js.map +0 -1
  152. package/dist/shared/TicketSystem.d.ts +0 -154
  153. package/dist/shared/TicketSystem.d.ts.map +0 -1
  154. package/dist/shared/TicketSystem.js +0 -21
  155. package/dist/shared/TicketSystem.js.map +0 -1
  156. package/dist/shared/ToolDisplayUtils.d.ts +0 -30
  157. package/dist/shared/ToolDisplayUtils.d.ts.map +0 -1
  158. package/dist/shared/ToolDisplayUtils.js +0 -1067
  159. package/dist/shared/ToolDisplayUtils.js.map +0 -1
  160. package/dist/shared/ToolsTypes.d.ts +0 -18
  161. package/dist/shared/ToolsTypes.d.ts.map +0 -1
  162. package/dist/shared/ToolsTypes.js +0 -2
  163. package/dist/shared/ToolsTypes.js.map +0 -1
  164. package/dist/shared/types.d.ts +0 -827
  165. package/dist/shared/types.d.ts.map +0 -1
  166. package/dist/shared/types.js +0 -17
  167. package/dist/shared/types.js.map +0 -1
  168. package/dist/test.d.ts +0 -2
  169. package/dist/test.d.ts.map +0 -1
  170. package/dist/test.js +0 -62
  171. package/dist/test.js.map +0 -1
  172. package/dist/testRelay.d.ts +0 -6
  173. package/dist/testRelay.d.ts.map +0 -1
  174. package/dist/testRelay.js +0 -91
  175. package/dist/testRelay.js.map +0 -1
  176. package/dist/urls.d.ts +0 -3
  177. package/dist/urls.d.ts.map +0 -1
  178. package/dist/urls.js +0 -27
  179. package/dist/urls.js.map +0 -1
  180. package/dist/util.d.ts +0 -4
  181. package/dist/util.d.ts.map +0 -1
  182. package/dist/util.js +0 -5
  183. package/dist/util.js.map +0 -1
@@ -1,827 +0,0 @@
1
- import { ConfigInstance, ConfigType } from "./Configs";
2
- import { IntegrationType } from "./Integrations";
3
- import { RunHistoryAction, RunHistoryActionType, RunHistoryRecordWithAgent } from "./RunHistoryTypes";
4
- import { Project, Ticket } from "./TicketSystem";
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 LinearWorkspace = {
57
- id: string;
58
- name: string;
59
- };
60
- export type JiraProject = {
61
- id: string;
62
- key: string;
63
- name: string;
64
- };
65
- export type JiraCredentialsValidationResponse = {
66
- valid: boolean;
67
- projects?: JiraProject[];
68
- error?: string;
69
- };
70
- export type NotionResourceType = "database" | "page";
71
- export type NotionResource = {
72
- id: string;
73
- title: string;
74
- url: string;
75
- type: NotionResourceType;
76
- };
77
- export type NotionResourcesResponse = {
78
- resources: NotionResource[];
79
- };
80
- export type PosthogProject = {
81
- id: string;
82
- name: string;
83
- organization_id?: string;
84
- };
85
- export type PosthogProjectsResponse = {
86
- projects: PosthogProject[];
87
- };
88
- export type LaunchDarklyProject = {
89
- key: string;
90
- name: string;
91
- };
92
- export type LaunchDarklyProjectsResponse = {
93
- projects: LaunchDarklyProject[];
94
- };
95
- export type LaunchDarklyEnvironment = {
96
- key: string;
97
- name: string;
98
- };
99
- export type LaunchDarklyEnvironmentsResponse = {
100
- environments: LaunchDarklyEnvironment[];
101
- };
102
- export type DatadogIndex = {
103
- id: string;
104
- name: string;
105
- isEnabled: boolean;
106
- dailyLimit?: number;
107
- retentionDays?: number;
108
- };
109
- export type DatadogIndexesResponse = {
110
- indexes: DatadogIndex[];
111
- };
112
- export type SlackChannel = {
113
- id: string;
114
- name: string;
115
- isPrivate: boolean;
116
- isArchived: boolean;
117
- isMPIM: boolean;
118
- };
119
- export type SlackChannelsResponse = {
120
- channels: SlackChannel[];
121
- selectedChannelId: string | null;
122
- };
123
- export type SlackUserResponse = {
124
- id: string;
125
- name: string;
126
- };
127
- export type SlackUsersResponse = {
128
- users: SlackUserResponse[];
129
- };
130
- export declare const TERSE_AGENT_MESSAGE_EVENT_TYPE: "terse_agent_message";
131
- export type TerseAgentMessageMetadata = {
132
- event_type: typeof TERSE_AGENT_MESSAGE_EVENT_TYPE;
133
- event_payload: {
134
- run_id: string;
135
- automation_id: string;
136
- organization_id: string;
137
- };
138
- };
139
- /**
140
- * Slack channel type enum
141
- */
142
- export declare enum SlackChannelType {
143
- CHANNEL = "channel",
144
- GROUP = "group",
145
- MPIM = "mpim",
146
- IM = "im"
147
- }
148
- export type ConfluencePage = {
149
- id: string;
150
- title: string;
151
- spaceId: string;
152
- spaceName: string;
153
- url: string;
154
- status: string;
155
- version: number;
156
- };
157
- export type ConfluencePagesQuery = {
158
- integrationId: string;
159
- spaceId?: string;
160
- spaceKey?: string;
161
- };
162
- export type ConfluencePagesResponse = {
163
- pages: ConfluencePage[];
164
- spaceId: string;
165
- total: number;
166
- };
167
- export type ConfluenceResourcesResponse = {
168
- resources: ConfluencePage[];
169
- spaceId: string;
170
- total: number;
171
- };
172
- export type JiraResourcesResponse = {
173
- success: boolean;
174
- resources: {
175
- projects: Array<{
176
- id: string;
177
- key: string;
178
- name: string;
179
- projectTypeKey: string;
180
- }>;
181
- baseUrl: string;
182
- cloudId: string;
183
- };
184
- };
185
- export type UseConfluenceResourcesReturn<MutateType = any> = {
186
- resources: ConfluencePage[];
187
- response: ConfluenceResourcesResponse | undefined;
188
- isLoading: boolean;
189
- isError: boolean;
190
- error: unknown;
191
- isValidating: boolean;
192
- mutate: MutateType;
193
- };
194
- export declare enum FigmaEventTypes {
195
- FILE_COMMENT = "FILE_COMMENT"
196
- }
197
- /**
198
- * Figma webhook event user object
199
- */
200
- export interface FigmaWebhookUser {
201
- id: string;
202
- handle: string;
203
- email: string;
204
- img_url: string;
205
- }
206
- /**
207
- * Figma webhook comment object (from webhook payload)
208
- */
209
- export interface FigmaWebhookComment {
210
- id: string;
211
- message: string;
212
- client_meta: FigmaClientMeta;
213
- user: FigmaWebhookUser;
214
- created_at: string;
215
- resolved_at: string | null;
216
- }
217
- /**
218
- * Figma comment image URLs
219
- * Extracted images for visual context of comments
220
- */
221
- export interface FigmaCommentImageUrls {
222
- nodeImage?: string;
223
- fullFrame?: string;
224
- }
225
- /**
226
- * Figma positioning data structures
227
- * Represents the position and type of a comment in a Figma file
228
- */
229
- export type FigmaVectorData = {
230
- x: number;
231
- y: number;
232
- };
233
- export type FigmaFrameOffsetData = {
234
- node_id: string;
235
- node_offset: {
236
- x: number;
237
- y: number;
238
- };
239
- };
240
- export type FigmaRegionData = {
241
- x: number;
242
- y: number;
243
- width: number;
244
- height: number;
245
- };
246
- export type FigmaFrameOffsetRegionData = {
247
- node_id: string;
248
- node_offset: {
249
- x: number;
250
- y: number;
251
- };
252
- x: number;
253
- y: number;
254
- width: number;
255
- height: number;
256
- };
257
- export type FigmaPositioningData = {
258
- type: "Vector";
259
- data: FigmaVectorData;
260
- } | {
261
- type: "FrameOffset";
262
- data: FigmaFrameOffsetData;
263
- } | {
264
- type: "Region";
265
- data: FigmaRegionData;
266
- } | {
267
- type: "FrameOffsetRegion";
268
- data: FigmaFrameOffsetRegionData;
269
- };
270
- /**
271
- * Figma client_meta structure
272
- * Represents the raw positioning metadata from Figma comment client_meta
273
- * Can be one of several positioning formats
274
- */
275
- export type FigmaClientMeta = {
276
- x: number;
277
- y: number;
278
- width: number;
279
- height: number;
280
- node_id: string;
281
- node_offset: {
282
- x: number;
283
- y: number;
284
- };
285
- };
286
- /**
287
- * Figma API comment response structure
288
- */
289
- export interface FigmaApiComment {
290
- id: string;
291
- message: string;
292
- client_meta: FigmaClientMeta | null;
293
- user: FigmaWebhookUser;
294
- created_at: string;
295
- resolved_at: string | null;
296
- parent_id?: string | null;
297
- order_id?: string;
298
- mentions?: unknown[];
299
- reactions?: unknown[];
300
- }
301
- export interface FigmaCommentThreadEntry {
302
- id: string;
303
- message: string;
304
- author: FigmaWebhookUser;
305
- createdAt: string;
306
- resolvedAt: string | null;
307
- parentId: string | null;
308
- orderId?: string;
309
- isRoot?: boolean;
310
- }
311
- /**
312
- * Figma comment event data
313
- * Processed/enriched comment data used for automation events
314
- * This combines data from webhook, API, and enriched context
315
- */
316
- export interface FigmaCommentEventData {
317
- integrationId: string;
318
- commentId: string;
319
- fileKey: string;
320
- fileUrl: string;
321
- nodeId?: string;
322
- message: string;
323
- author: FigmaWebhookUser;
324
- createdAt: string;
325
- resolved?: boolean;
326
- thread?: FigmaCommentThreadEntry[];
327
- fileMetadata?: any;
328
- positioningData?: FigmaPositioningData;
329
- matchedNodeIds?: string[];
330
- imageUrls?: FigmaCommentImageUrls;
331
- }
332
- export type ApiToken = {
333
- id: string;
334
- name: string;
335
- tokenPrefix: string;
336
- createdAt: string;
337
- lastUsedAt: string | null;
338
- };
339
- export type ApiTokenCreateResponse = {
340
- token: ApiToken;
341
- rawToken: string;
342
- };
343
- export type AgentTrigger = {
344
- id: string;
345
- config: ConfigInstance;
346
- };
347
- export type AgentOutput = {
348
- id: string;
349
- config: ConfigInstance;
350
- };
351
- export type AgentPrompt = {
352
- text: string;
353
- };
354
- export type TransientAgentTrigger = {
355
- id: string;
356
- config?: ConfigInstance;
357
- configType: ConfigType;
358
- };
359
- export type TransientAgentOutput = {
360
- id: string;
361
- config?: ConfigInstance;
362
- configType: ConfigType;
363
- };
364
- export type TemplateConfigRef = {
365
- configType: ConfigType;
366
- integrationType: IntegrationType;
367
- };
368
- export type TemplateTrigger = {
369
- config: TemplateConfigRef;
370
- };
371
- export type TemplateOutput = {
372
- config: TemplateConfigRef;
373
- };
374
- export type TemplateCategory = "ship" | "users" | "sync" | "track";
375
- export type AgentTemplate = {
376
- id: string;
377
- category: TemplateCategory;
378
- name: string;
379
- description: string;
380
- chatPrompt: string;
381
- prompt: AgentPrompt;
382
- triggers: TemplateTrigger[];
383
- outputs: TemplateOutput[];
384
- requireApproval: boolean;
385
- isActive: boolean;
386
- };
387
- export type Agent = {
388
- id: string;
389
- name: string;
390
- isActive: boolean;
391
- requireApproval: boolean;
392
- prompt: AgentPrompt;
393
- triggers: AgentTrigger[];
394
- outputs: AgentOutput[];
395
- createdByUserId: string;
396
- notificationSettings?: AgentNotificationSettings;
397
- toolApprovals?: string[];
398
- updatedAt?: string;
399
- source?: "WEB_UI" | "SDK";
400
- };
401
- export type AgentNotificationSettings = {
402
- enabled: boolean;
403
- actionTypes: RunHistoryActionType[];
404
- };
405
- export type AgentUpdate = {
406
- name?: string;
407
- triggers?: AgentTrigger[];
408
- outputs?: AgentOutput[];
409
- prompt?: AgentPrompt;
410
- isActive?: boolean;
411
- requireApproval?: boolean;
412
- notificationSettings?: AgentNotificationSettings;
413
- toolApprovals?: string[];
414
- };
415
- export type AgentsResponse = {
416
- agents: Agent[];
417
- pagination: {
418
- page: number;
419
- limit: number;
420
- total: number;
421
- totalPages: number;
422
- };
423
- };
424
- export type RecentAgent = Agent & {
425
- updatedAt: string;
426
- lastEventProcessedAt: string | null;
427
- };
428
- export type AgentImprovementStatus = "PENDING" | "APPLIED" | "DISMISSED";
429
- export type AgentImprovementTargetArea = "prompt" | "trigger_config" | "output_config" | "general";
430
- export type AgentReview = {
431
- id: string;
432
- automationId: string;
433
- title: string;
434
- summary: string;
435
- runsAnalyzed: number;
436
- reviewPeriodStart: string;
437
- reviewPeriodEnd: string;
438
- createdAt: string;
439
- };
440
- export type AgentImprovement = {
441
- id: string;
442
- reviewId: string;
443
- automationId: string;
444
- title: string;
445
- description: string;
446
- targetArea: AgentImprovementTargetArea;
447
- confidence: number;
448
- status: AgentImprovementStatus;
449
- appliedPrompt?: string;
450
- appliedAt?: string;
451
- dismissedAt?: string;
452
- createdAt: string;
453
- updatedAt: string;
454
- };
455
- export type GetAgentImprovementsResponse = {
456
- review: AgentReview | null;
457
- improvements: AgentImprovement[];
458
- improvementsEnabled: boolean;
459
- };
460
- export type ApplyImprovementResponse = {
461
- success: boolean;
462
- appliedPrompt: string;
463
- };
464
- export type DismissImprovementResponse = {
465
- success: boolean;
466
- };
467
- export type ToggleImprovementsEnabledResponse = {
468
- success: boolean;
469
- improvementsEnabled: boolean;
470
- };
471
- export type GithubAppInstallationCallbackRequest = {
472
- name: string;
473
- email: string;
474
- username: string;
475
- installationId: number;
476
- accountName: string | null;
477
- repositories: Repository[];
478
- };
479
- export type Repository = {
480
- name: string;
481
- owner: string;
482
- id: number;
483
- };
484
- export type GetGithubRepositoriesForIntegrationRequest = {};
485
- export type GetGithubRepositoriesForIntegrationResponse = {
486
- repositories: Repository[];
487
- };
488
- export type OAuthInstallationDetails = {
489
- oauthUrl: string;
490
- };
491
- export type StatsInterval = "1h" | "24h" | "7d" | "1mo" | "3mo" | "1y";
492
- export interface DailyEventCount {
493
- date: string;
494
- events: number;
495
- }
496
- export interface RecentAction {
497
- action: string;
498
- integration: IntegrationType;
499
- target: string;
500
- details: string;
501
- url?: string;
502
- timestamp: string;
503
- agentName: string;
504
- type: RunHistoryActionType;
505
- }
506
- export interface AgentActivityItem {
507
- agentId: string;
508
- agentName: string;
509
- runCount: number;
510
- }
511
- export interface CountByString {
512
- label: string;
513
- count: number;
514
- }
515
- export interface StatsResponse {
516
- totalEventsProcessed: number;
517
- totalEventsProcessedChange: string;
518
- actionsTaken: number;
519
- actionsTakenChange: string;
520
- numberOfAgents: number;
521
- numberOfAgentsChange: string;
522
- dailyEvents: DailyEventCount[];
523
- recentActions: RecentAction[];
524
- recentRuns: RunHistoryRecordWithAgent[];
525
- timezone: string;
526
- agentActivity: AgentActivityItem[];
527
- statusBreakdown: CountByString[];
528
- triggerIntegrations: CountByString[];
529
- actionIntegrations: CountByString[];
530
- actionTypes: CountByString[];
531
- }
532
- export interface TriggerPayload {
533
- integrationId: string;
534
- integrationType: IntegrationType;
535
- config: Record<string, unknown>;
536
- }
537
- export interface SerializedEvent {
538
- integrationType: IntegrationType;
539
- eventType?: string;
540
- formattedContent: string;
541
- debugLog: string;
542
- metadata?: Record<string, unknown>;
543
- }
544
- export type SdkAgentRunEventPayload = {
545
- integrationType: IntegrationType;
546
- formattedContent: string;
547
- debugLog: string;
548
- };
549
- export type SdkAgentSkillPayload = {
550
- configType: ConfigType;
551
- config: Record<string, unknown>;
552
- };
553
- export type SdkAgentRunOptionsPayload = {
554
- maxTurns?: number;
555
- requireApproval?: boolean;
556
- };
557
- export type SdkAgentRunRequestBody = {
558
- prompt?: string;
559
- event?: Partial<SdkAgentRunEventPayload>;
560
- skills?: SdkAgentSkillPayload[];
561
- options?: SdkAgentRunOptionsPayload;
562
- };
563
- export type SdkAgentRunResponseBody = {
564
- success: boolean;
565
- error?: string;
566
- details?: string[];
567
- contract?: {
568
- responseMode: "streaming";
569
- supportsInterruptions: boolean;
570
- };
571
- normalizedRequest?: {
572
- prompt: string;
573
- event: SdkAgentRunEventPayload;
574
- skills: SdkAgentSkillPayload[];
575
- options: {
576
- maxTurns: number;
577
- requireApproval: boolean;
578
- };
579
- };
580
- };
581
- export type SdkAgentStreamEvent = {
582
- type: "text";
583
- text: string;
584
- } | {
585
- type: "final_output";
586
- finalOutput: string;
587
- } | {
588
- type: "tool_call_params";
589
- toolCallParams: string;
590
- } | {
591
- type: "tool_call_started";
592
- toolCallStarted: string;
593
- } | {
594
- type: "tool_call_completed";
595
- toolCallCompleted: string;
596
- } | {
597
- type: "action";
598
- action: RunHistoryAction;
599
- } | {
600
- type: "error";
601
- message: string;
602
- } | {
603
- type: "done";
604
- };
605
- export type SdkDeployTrigger = {
606
- configType: string;
607
- integrationType: string;
608
- integrationId: string;
609
- config: Record<string, unknown>;
610
- };
611
- export type SdkDeployJob = {
612
- jobName: string;
613
- triggers: SdkDeployTrigger[];
614
- webhookURL?: string;
615
- };
616
- export type SdkDeployRequestBody = {
617
- jobs: SdkDeployJob[];
618
- sourceZipBase64: string;
619
- };
620
- export type SdkDeployResponseBody = {
621
- success: boolean;
622
- results: {
623
- jobName: string;
624
- automationId: string;
625
- isUpdate: boolean;
626
- }[];
627
- removed: {
628
- id: string;
629
- name: string;
630
- }[];
631
- error?: string;
632
- details?: string;
633
- };
634
- export type ToolOutputBase = {
635
- success: boolean;
636
- actions?: RunHistoryAction[];
637
- };
638
- export type ToolOutputByName = {
639
- [toolName: string]: unknown;
640
- slack_send_message: ToolOutputBase & {
641
- message_ts: string | undefined;
642
- channel: string;
643
- thread_ts: string | undefined;
644
- summary: string;
645
- has_blocks: boolean;
646
- };
647
- slack_list_channels: ToolOutputBase & {
648
- channels: Array<{
649
- id?: string;
650
- name: string;
651
- isPrivate: boolean;
652
- isIm: boolean;
653
- isMpim: boolean;
654
- }>;
655
- count: number;
656
- nextCursor: string | null;
657
- hasMore: boolean;
658
- };
659
- slack_list_users: ToolOutputBase & {
660
- users: Array<{
661
- id: string;
662
- name: string;
663
- }>;
664
- count: number;
665
- };
666
- slack_read_conversation: ToolOutputBase & {
667
- channelId: string;
668
- channelName?: string;
669
- messages: Array<{
670
- userId?: string;
671
- userName?: string;
672
- text: string;
673
- timestamp?: string;
674
- threadTs?: string;
675
- }>;
676
- count: number;
677
- hasMore: boolean;
678
- nextCursor: string | null;
679
- };
680
- searchGitHubCode: ToolOutputBase & {
681
- totalCount: number;
682
- resultsReturned: number;
683
- query: string;
684
- repositories: string[];
685
- pagination: {
686
- page: number;
687
- perPage: number;
688
- hasMore: boolean;
689
- };
690
- results: Array<{
691
- index: number;
692
- repository: string;
693
- path: string;
694
- url: string;
695
- snippets: string;
696
- }>;
697
- message: string;
698
- tip: string;
699
- };
700
- readGitHubFile: ToolOutputBase & {
701
- repository: string;
702
- path: string;
703
- url: string;
704
- totalLines: number;
705
- displayedLines: string;
706
- size: number;
707
- content: string;
708
- warning?: string;
709
- };
710
- listGitHubPullRequests: ToolOutputBase & {
711
- repository: string;
712
- timeWindow: string;
713
- summary: {
714
- total: number;
715
- merged: number;
716
- open: number;
717
- closed: number;
718
- };
719
- pagination: {
720
- page: number;
721
- perPage: number;
722
- hasMore: boolean;
723
- };
724
- pullRequests: Array<{
725
- number: number;
726
- title: string;
727
- description: string;
728
- author: string;
729
- state: string;
730
- merged: boolean;
731
- mergedAt?: string;
732
- createdAt: string;
733
- closedAt?: string;
734
- labels: string[];
735
- baseBranch: string;
736
- headBranch: string;
737
- url: string;
738
- }>;
739
- message: string;
740
- };
741
- listGitHubDirectory: ToolOutputBase & {
742
- repository: string;
743
- path: string;
744
- recursive: boolean;
745
- totalItems: number;
746
- directories: Array<{
747
- name?: string;
748
- path?: string;
749
- type?: "directory";
750
- } | string>;
751
- files: Array<{
752
- name?: string;
753
- path: string;
754
- type?: "file";
755
- size?: number;
756
- }>;
757
- warning?: string;
758
- tip?: string;
759
- truncated?: boolean;
760
- other?: Array<{
761
- name: string;
762
- type: string;
763
- }>;
764
- };
765
- listGitHubCommits: ToolOutputBase & {
766
- repository: string;
767
- timeWindow: string;
768
- filters: string;
769
- summary: {
770
- total: number;
771
- byAuthor: Record<string, number>;
772
- };
773
- commits: Array<{
774
- sha: string;
775
- fullSha: string;
776
- message: string;
777
- fullMessage: string;
778
- author: string;
779
- date: string;
780
- url: string;
781
- }>;
782
- message: string;
783
- tip: string;
784
- };
785
- grepGitHubCode: ToolOutputBase & {
786
- totalCount: number;
787
- resultsReturned: number;
788
- pattern: string;
789
- query: string;
790
- repositories: string[];
791
- pagination: {
792
- page: number;
793
- perPage: number;
794
- hasMore: boolean;
795
- };
796
- results: Array<{
797
- index: number;
798
- repository: string;
799
- file: string;
800
- url: string;
801
- matches: string;
802
- }>;
803
- message: string;
804
- tip: string;
805
- };
806
- summarizeGitHubPullRequestDiff: ToolOutputBase & {
807
- repository: string;
808
- pullRequest: {
809
- number: number;
810
- title: string;
811
- state: string;
812
- merged: boolean;
813
- baseBranch: string;
814
- headBranch: string;
815
- url: string;
816
- };
817
- summary: Record<string, unknown>;
818
- pagination: {
819
- page: number;
820
- perPage: number;
821
- hasMore: boolean;
822
- };
823
- analysis: string;
824
- message: string;
825
- };
826
- };
827
- //# sourceMappingURL=types.d.ts.map