managed-deepagents 0.10.0-dev.14 → 0.10.0-dev.16

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 (118) hide show
  1. package/README.md +17 -295
  2. package/dist/channels/github/connections.d.ts.map +1 -1
  3. package/dist/channels/github/connections.js +2 -2
  4. package/dist/channels/github/connections.js.map +1 -1
  5. package/dist/channels/github/index.d.ts +8 -1
  6. package/dist/channels/github/index.d.ts.map +1 -1
  7. package/dist/channels/github/index.js +137 -39
  8. package/dist/channels/github/index.js.map +1 -1
  9. package/dist/channels/github/schema.d.ts +0 -168
  10. package/dist/channels/github/schema.d.ts.map +1 -1
  11. package/dist/channels/github/schema.js +3 -9
  12. package/dist/channels/github/schema.js.map +1 -1
  13. package/dist/channels/github/types.d.ts +3 -49
  14. package/dist/channels/github/types.d.ts.map +1 -1
  15. package/dist/channels/http/http.d.ts.map +1 -1
  16. package/dist/channels/http/http.js +65 -224
  17. package/dist/channels/http/http.js.map +1 -1
  18. package/dist/channels/http/index.d.ts +1 -1
  19. package/dist/channels/http/index.d.ts.map +1 -1
  20. package/dist/channels/http/index.js.map +1 -1
  21. package/dist/channels/http/ingress.d.ts +3 -23
  22. package/dist/channels/http/ingress.d.ts.map +1 -1
  23. package/dist/channels/http/ingress.js +30 -51
  24. package/dist/channels/http/ingress.js.map +1 -1
  25. package/dist/channels/http/types.d.ts +6 -59
  26. package/dist/channels/http/types.d.ts.map +1 -1
  27. package/dist/channels/message-schema.d.ts +0 -2
  28. package/dist/channels/message-schema.d.ts.map +1 -1
  29. package/dist/channels/message-schema.js +0 -4
  30. package/dist/channels/message-schema.js.map +1 -1
  31. package/dist/channels/reserved-connections.d.ts +2 -2
  32. package/dist/channels/reserved-connections.d.ts.map +1 -1
  33. package/dist/channels/reserved-connections.js +9 -26
  34. package/dist/channels/reserved-connections.js.map +1 -1
  35. package/dist/channels/run-input.d.ts +1 -17
  36. package/dist/channels/run-input.d.ts.map +1 -1
  37. package/dist/channels/run-input.js +5 -50
  38. package/dist/channels/run-input.js.map +1 -1
  39. package/dist/channels/slack/index.d.ts +1 -33
  40. package/dist/channels/slack/index.d.ts.map +1 -1
  41. package/dist/channels/slack/index.js +4 -54
  42. package/dist/channels/slack/index.js.map +1 -1
  43. package/dist/channels/source-providers.js +1 -1
  44. package/dist/channels/source-providers.js.map +1 -1
  45. package/dist/connections.d.ts +0 -5
  46. package/dist/connections.d.ts.map +1 -1
  47. package/dist/connections.js +1 -14
  48. package/dist/connections.js.map +1 -1
  49. package/dist/index.d.ts +2 -7
  50. package/dist/index.d.ts.map +1 -1
  51. package/dist/index.js +0 -1
  52. package/dist/index.js.map +1 -1
  53. package/dist/ingress/runs.d.ts +1 -10
  54. package/dist/ingress/runs.d.ts.map +1 -1
  55. package/dist/ingress/runs.js +4 -40
  56. package/dist/ingress/runs.js.map +1 -1
  57. package/dist/namespaces.d.ts +0 -15
  58. package/dist/namespaces.d.ts.map +1 -1
  59. package/dist/namespaces.js +0 -2
  60. package/dist/namespaces.js.map +1 -1
  61. package/dist/runtime/auth.d.ts.map +1 -1
  62. package/dist/runtime/auth.js +1 -20
  63. package/dist/runtime/auth.js.map +1 -1
  64. package/dist/runtime/channel.d.ts +0 -6
  65. package/dist/runtime/channel.d.ts.map +1 -1
  66. package/dist/runtime/channel.js.map +1 -1
  67. package/dist/runtime/identity-http.d.ts +0 -2
  68. package/dist/runtime/identity-http.d.ts.map +1 -1
  69. package/dist/runtime/identity-http.js +0 -35
  70. package/dist/runtime/identity-http.js.map +1 -1
  71. package/dist/runtime/index.d.ts.map +1 -1
  72. package/dist/runtime/index.js +0 -2
  73. package/dist/runtime/index.js.map +1 -1
  74. package/package.json +7 -7
  75. package/dist/channels/github/mentions.d.ts +0 -7
  76. package/dist/channels/github/mentions.d.ts.map +0 -1
  77. package/dist/channels/github/mentions.js +0 -112
  78. package/dist/channels/github/mentions.js.map +0 -1
  79. package/dist/channels/http/endpoint.d.ts +0 -77
  80. package/dist/channels/http/endpoint.d.ts.map +0 -1
  81. package/dist/channels/http/endpoint.js +0 -204
  82. package/dist/channels/http/endpoint.js.map +0 -1
  83. package/dist/channels/http/provider.d.ts +0 -110
  84. package/dist/channels/http/provider.d.ts.map +0 -1
  85. package/dist/channels/http/provider.js +0 -208
  86. package/dist/channels/http/provider.js.map +0 -1
  87. package/dist/channels/http/reply.d.ts +0 -20
  88. package/dist/channels/http/reply.d.ts.map +0 -1
  89. package/dist/channels/http/reply.js +0 -116
  90. package/dist/channels/http/reply.js.map +0 -1
  91. package/dist/channels/http/studio.d.ts +0 -23
  92. package/dist/channels/http/studio.d.ts.map +0 -1
  93. package/dist/channels/http/studio.js +0 -92
  94. package/dist/channels/http/studio.js.map +0 -1
  95. package/dist/channels/linear/connections.d.ts +0 -11
  96. package/dist/channels/linear/connections.d.ts.map +0 -1
  97. package/dist/channels/linear/connections.js +0 -14
  98. package/dist/channels/linear/connections.js.map +0 -1
  99. package/dist/channels/linear/graphql.d.ts +0 -57
  100. package/dist/channels/linear/graphql.d.ts.map +0 -1
  101. package/dist/channels/linear/graphql.js +0 -167
  102. package/dist/channels/linear/graphql.js.map +0 -1
  103. package/dist/channels/linear/index.d.ts +0 -9
  104. package/dist/channels/linear/index.d.ts.map +0 -1
  105. package/dist/channels/linear/index.js +0 -481
  106. package/dist/channels/linear/index.js.map +0 -1
  107. package/dist/channels/linear/schema.d.ts +0 -1064
  108. package/dist/channels/linear/schema.d.ts.map +0 -1
  109. package/dist/channels/linear/schema.js +0 -249
  110. package/dist/channels/linear/schema.js.map +0 -1
  111. package/dist/channels/linear/types.d.ts +0 -153
  112. package/dist/channels/linear/types.d.ts.map +0 -1
  113. package/dist/channels/linear/types.js +0 -2
  114. package/dist/channels/linear/types.js.map +0 -1
  115. package/dist/runtime/channel-icon.d.ts +0 -22
  116. package/dist/runtime/channel-icon.d.ts.map +0 -1
  117. package/dist/runtime/channel-icon.js +0 -70
  118. package/dist/runtime/channel-icon.js.map +0 -1
@@ -1,1064 +0,0 @@
1
- import { z } from "zod";
2
- /** Receipt metadata only, not a complete Linear webhook payload specification. */
3
- export declare const linearReceiptSchema: z.ZodObject<{
4
- deliveryId: z.ZodString;
5
- payload: z.ZodObject<{
6
- type: z.ZodString;
7
- action: z.ZodString;
8
- organizationId: z.ZodOptional<z.ZodString>;
9
- }, z.core.$loose>;
10
- }, z.core.$strip>;
11
- /**
12
- * The activity content types Linear documents; one it adds later reads as
13
- * `unknown`. A user's reply is a `prompt`.
14
- */
15
- export declare const LINEAR_ACTIVITY_TYPES: readonly ["prompt", "thought", "action", "response", "error", "elicitation"];
16
- /**
17
- * The signals Linear documents on a user's activity; one it adds later reads
18
- * as `unknown`. `stop` asks the agent to stop.
19
- */
20
- export declare const LINEAR_PROMPT_SIGNALS: readonly ["stop"];
21
- /** Each supported event key requires its exact type, action and subject. */
22
- export declare const linearDispatchSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
23
- key: z.ZodLiteral<"Issue.create">;
24
- deliveryId: z.ZodString;
25
- payload: z.ZodObject<{
26
- organizationId: z.ZodString;
27
- webhookId: z.ZodOptional<z.ZodString>;
28
- webhookTimestamp: z.ZodNumber;
29
- createdAt: z.ZodOptional<z.ZodString>;
30
- url: z.ZodOptional<z.ZodString>;
31
- actor: z.ZodOptional<z.ZodObject<{
32
- id: z.ZodString;
33
- type: z.ZodOptional<z.ZodString>;
34
- name: z.ZodOptional<z.ZodString>;
35
- }, z.core.$loose>>;
36
- type: z.ZodLiteral<"Issue">;
37
- action: z.ZodLiteral<"create">;
38
- data: z.ZodObject<{
39
- id: z.ZodString;
40
- identifier: z.ZodString;
41
- title: z.ZodString;
42
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
- url: z.ZodOptional<z.ZodString>;
44
- teamId: z.ZodOptional<z.ZodString>;
45
- team: z.ZodOptional<z.ZodObject<{
46
- id: z.ZodString;
47
- key: z.ZodString;
48
- name: z.ZodOptional<z.ZodString>;
49
- }, z.core.$loose>>;
50
- labelIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
51
- labels: z.ZodOptional<z.ZodArray<z.ZodObject<{
52
- id: z.ZodString;
53
- name: z.ZodString;
54
- }, z.core.$loose>>>;
55
- botActor: z.ZodOptional<z.ZodUnknown>;
56
- }, z.core.$loose>;
57
- }, z.core.$loose>;
58
- }, z.core.$strip>, z.ZodObject<{
59
- key: z.ZodLiteral<"Issue.update">;
60
- deliveryId: z.ZodString;
61
- payload: z.ZodObject<{
62
- organizationId: z.ZodString;
63
- webhookId: z.ZodOptional<z.ZodString>;
64
- webhookTimestamp: z.ZodNumber;
65
- createdAt: z.ZodOptional<z.ZodString>;
66
- url: z.ZodOptional<z.ZodString>;
67
- actor: z.ZodOptional<z.ZodObject<{
68
- id: z.ZodString;
69
- type: z.ZodOptional<z.ZodString>;
70
- name: z.ZodOptional<z.ZodString>;
71
- }, z.core.$loose>>;
72
- type: z.ZodLiteral<"Issue">;
73
- action: z.ZodLiteral<"update">;
74
- data: z.ZodObject<{
75
- id: z.ZodString;
76
- identifier: z.ZodString;
77
- title: z.ZodString;
78
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
79
- url: z.ZodOptional<z.ZodString>;
80
- teamId: z.ZodOptional<z.ZodString>;
81
- team: z.ZodOptional<z.ZodObject<{
82
- id: z.ZodString;
83
- key: z.ZodString;
84
- name: z.ZodOptional<z.ZodString>;
85
- }, z.core.$loose>>;
86
- labelIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
87
- labels: z.ZodOptional<z.ZodArray<z.ZodObject<{
88
- id: z.ZodString;
89
- name: z.ZodString;
90
- }, z.core.$loose>>>;
91
- botActor: z.ZodOptional<z.ZodUnknown>;
92
- }, z.core.$loose>;
93
- updatedFrom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
94
- }, z.core.$loose>;
95
- }, z.core.$strip>, z.ZodObject<{
96
- key: z.ZodLiteral<"Comment.create">;
97
- deliveryId: z.ZodString;
98
- payload: z.ZodObject<{
99
- organizationId: z.ZodString;
100
- webhookId: z.ZodOptional<z.ZodString>;
101
- webhookTimestamp: z.ZodNumber;
102
- createdAt: z.ZodOptional<z.ZodString>;
103
- url: z.ZodOptional<z.ZodString>;
104
- actor: z.ZodOptional<z.ZodObject<{
105
- id: z.ZodString;
106
- type: z.ZodOptional<z.ZodString>;
107
- name: z.ZodOptional<z.ZodString>;
108
- }, z.core.$loose>>;
109
- type: z.ZodLiteral<"Comment">;
110
- action: z.ZodLiteral<"create">;
111
- data: z.ZodObject<{
112
- id: z.ZodString;
113
- body: z.ZodString;
114
- issueId: z.ZodString;
115
- parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
116
- userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
117
- user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
118
- id: z.ZodString;
119
- name: z.ZodOptional<z.ZodString>;
120
- }, z.core.$loose>>>;
121
- issue: z.ZodOptional<z.ZodObject<{
122
- id: z.ZodString;
123
- identifier: z.ZodOptional<z.ZodString>;
124
- title: z.ZodOptional<z.ZodString>;
125
- url: z.ZodOptional<z.ZodString>;
126
- team: z.ZodOptional<z.ZodObject<{
127
- id: z.ZodString;
128
- key: z.ZodString;
129
- name: z.ZodOptional<z.ZodString>;
130
- }, z.core.$loose>>;
131
- }, z.core.$loose>>;
132
- botActor: z.ZodOptional<z.ZodUnknown>;
133
- }, z.core.$loose>;
134
- }, z.core.$loose>;
135
- }, z.core.$strip>, z.ZodObject<{
136
- key: z.ZodLiteral<"AgentSessionEvent.created">;
137
- deliveryId: z.ZodString;
138
- payload: z.ZodObject<{
139
- organizationId: z.ZodString;
140
- webhookId: z.ZodOptional<z.ZodString>;
141
- webhookTimestamp: z.ZodNumber;
142
- createdAt: z.ZodOptional<z.ZodString>;
143
- url: z.ZodOptional<z.ZodString>;
144
- actor: z.ZodOptional<z.ZodObject<{
145
- id: z.ZodString;
146
- type: z.ZodOptional<z.ZodString>;
147
- name: z.ZodOptional<z.ZodString>;
148
- }, z.core.$loose>>;
149
- type: z.ZodLiteral<"AgentSessionEvent">;
150
- action: z.ZodLiteral<"created">;
151
- appUserId: z.ZodOptional<z.ZodString>;
152
- agentSession: z.ZodObject<{
153
- id: z.ZodString;
154
- status: z.ZodOptional<z.ZodString>;
155
- url: z.ZodOptional<z.ZodString>;
156
- issueId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
157
- issue: z.ZodOptional<z.ZodNullable<z.ZodObject<{
158
- id: z.ZodString;
159
- identifier: z.ZodOptional<z.ZodString>;
160
- title: z.ZodOptional<z.ZodString>;
161
- url: z.ZodOptional<z.ZodString>;
162
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
163
- team: z.ZodOptional<z.ZodObject<{
164
- id: z.ZodString;
165
- key: z.ZodString;
166
- name: z.ZodOptional<z.ZodString>;
167
- }, z.core.$loose>>;
168
- }, z.core.$loose>>>;
169
- commentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
170
- comment: z.ZodOptional<z.ZodNullable<z.ZodObject<{
171
- id: z.ZodString;
172
- body: z.ZodOptional<z.ZodString>;
173
- }, z.core.$loose>>>;
174
- creatorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
175
- creator: z.ZodOptional<z.ZodNullable<z.ZodObject<{
176
- id: z.ZodString;
177
- name: z.ZodOptional<z.ZodString>;
178
- }, z.core.$loose>>>;
179
- }, z.core.$loose>;
180
- promptContext: z.ZodOptional<z.ZodNullable<z.ZodString>>;
181
- guidance: z.ZodOptional<z.ZodUnknown>;
182
- }, z.core.$loose>;
183
- }, z.core.$strip>, z.ZodObject<{
184
- key: z.ZodLiteral<"AgentSessionEvent.prompted">;
185
- deliveryId: z.ZodString;
186
- payload: z.ZodObject<{
187
- organizationId: z.ZodString;
188
- webhookId: z.ZodOptional<z.ZodString>;
189
- webhookTimestamp: z.ZodNumber;
190
- createdAt: z.ZodOptional<z.ZodString>;
191
- url: z.ZodOptional<z.ZodString>;
192
- actor: z.ZodOptional<z.ZodObject<{
193
- id: z.ZodString;
194
- type: z.ZodOptional<z.ZodString>;
195
- name: z.ZodOptional<z.ZodString>;
196
- }, z.core.$loose>>;
197
- type: z.ZodLiteral<"AgentSessionEvent">;
198
- action: z.ZodLiteral<"prompted">;
199
- appUserId: z.ZodOptional<z.ZodString>;
200
- agentSession: z.ZodObject<{
201
- id: z.ZodString;
202
- status: z.ZodOptional<z.ZodString>;
203
- url: z.ZodOptional<z.ZodString>;
204
- issueId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
205
- issue: z.ZodOptional<z.ZodNullable<z.ZodObject<{
206
- id: z.ZodString;
207
- identifier: z.ZodOptional<z.ZodString>;
208
- title: z.ZodOptional<z.ZodString>;
209
- url: z.ZodOptional<z.ZodString>;
210
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
211
- team: z.ZodOptional<z.ZodObject<{
212
- id: z.ZodString;
213
- key: z.ZodString;
214
- name: z.ZodOptional<z.ZodString>;
215
- }, z.core.$loose>>;
216
- }, z.core.$loose>>>;
217
- commentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
218
- comment: z.ZodOptional<z.ZodNullable<z.ZodObject<{
219
- id: z.ZodString;
220
- body: z.ZodOptional<z.ZodString>;
221
- }, z.core.$loose>>>;
222
- creatorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
223
- creator: z.ZodOptional<z.ZodNullable<z.ZodObject<{
224
- id: z.ZodString;
225
- name: z.ZodOptional<z.ZodString>;
226
- }, z.core.$loose>>>;
227
- }, z.core.$loose>;
228
- agentActivity: z.ZodObject<{
229
- content: z.ZodObject<{
230
- type: z.ZodCatch<z.ZodEnum<{
231
- action: "action";
232
- elicitation: "elicitation";
233
- error: "error";
234
- prompt: "prompt";
235
- response: "response";
236
- thought: "thought";
237
- unknown: "unknown";
238
- }>>;
239
- body: z.ZodOptional<z.ZodString>;
240
- }, z.core.$loose>;
241
- signal: z.ZodOptional<z.ZodNullable<z.ZodCatch<z.ZodEnum<{
242
- stop: "stop";
243
- unknown: "unknown";
244
- }>>>>;
245
- signalMetadata: z.ZodOptional<z.ZodUnknown>;
246
- sourceCommentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
247
- userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
248
- user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
249
- id: z.ZodString;
250
- name: z.ZodOptional<z.ZodString>;
251
- }, z.core.$loose>>>;
252
- }, z.core.$loose>;
253
- }, z.core.$loose>;
254
- }, z.core.$strip>], "key">;
255
- export declare const SUPPORTED_EVENT_KEYS: ("AgentSessionEvent.created" | "AgentSessionEvent.prompted" | "Comment.create" | "Issue.create" | "Issue.update")[];
256
- export declare const linearEventSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
257
- key: z.ZodLiteral<"Issue.create">;
258
- deliveryId: z.ZodString;
259
- payload: z.ZodObject<{
260
- organizationId: z.ZodString;
261
- webhookId: z.ZodOptional<z.ZodString>;
262
- webhookTimestamp: z.ZodNumber;
263
- createdAt: z.ZodOptional<z.ZodString>;
264
- url: z.ZodOptional<z.ZodString>;
265
- actor: z.ZodOptional<z.ZodObject<{
266
- id: z.ZodString;
267
- type: z.ZodOptional<z.ZodString>;
268
- name: z.ZodOptional<z.ZodString>;
269
- }, z.core.$loose>>;
270
- type: z.ZodLiteral<"Issue">;
271
- action: z.ZodLiteral<"create">;
272
- data: z.ZodObject<{
273
- id: z.ZodString;
274
- identifier: z.ZodString;
275
- title: z.ZodString;
276
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
277
- url: z.ZodOptional<z.ZodString>;
278
- teamId: z.ZodOptional<z.ZodString>;
279
- team: z.ZodOptional<z.ZodObject<{
280
- id: z.ZodString;
281
- key: z.ZodString;
282
- name: z.ZodOptional<z.ZodString>;
283
- }, z.core.$loose>>;
284
- labelIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
285
- labels: z.ZodOptional<z.ZodArray<z.ZodObject<{
286
- id: z.ZodString;
287
- name: z.ZodString;
288
- }, z.core.$loose>>>;
289
- botActor: z.ZodOptional<z.ZodUnknown>;
290
- }, z.core.$loose>;
291
- }, z.core.$loose>;
292
- }, z.core.$strip>, z.ZodObject<{
293
- key: z.ZodLiteral<"Issue.update">;
294
- deliveryId: z.ZodString;
295
- payload: z.ZodObject<{
296
- organizationId: z.ZodString;
297
- webhookId: z.ZodOptional<z.ZodString>;
298
- webhookTimestamp: z.ZodNumber;
299
- createdAt: z.ZodOptional<z.ZodString>;
300
- url: z.ZodOptional<z.ZodString>;
301
- actor: z.ZodOptional<z.ZodObject<{
302
- id: z.ZodString;
303
- type: z.ZodOptional<z.ZodString>;
304
- name: z.ZodOptional<z.ZodString>;
305
- }, z.core.$loose>>;
306
- type: z.ZodLiteral<"Issue">;
307
- action: z.ZodLiteral<"update">;
308
- data: z.ZodObject<{
309
- id: z.ZodString;
310
- identifier: z.ZodString;
311
- title: z.ZodString;
312
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
313
- url: z.ZodOptional<z.ZodString>;
314
- teamId: z.ZodOptional<z.ZodString>;
315
- team: z.ZodOptional<z.ZodObject<{
316
- id: z.ZodString;
317
- key: z.ZodString;
318
- name: z.ZodOptional<z.ZodString>;
319
- }, z.core.$loose>>;
320
- labelIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
321
- labels: z.ZodOptional<z.ZodArray<z.ZodObject<{
322
- id: z.ZodString;
323
- name: z.ZodString;
324
- }, z.core.$loose>>>;
325
- botActor: z.ZodOptional<z.ZodUnknown>;
326
- }, z.core.$loose>;
327
- updatedFrom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
328
- }, z.core.$loose>;
329
- }, z.core.$strip>, z.ZodObject<{
330
- key: z.ZodLiteral<"Comment.create">;
331
- deliveryId: z.ZodString;
332
- payload: z.ZodObject<{
333
- organizationId: z.ZodString;
334
- webhookId: z.ZodOptional<z.ZodString>;
335
- webhookTimestamp: z.ZodNumber;
336
- createdAt: z.ZodOptional<z.ZodString>;
337
- url: z.ZodOptional<z.ZodString>;
338
- actor: z.ZodOptional<z.ZodObject<{
339
- id: z.ZodString;
340
- type: z.ZodOptional<z.ZodString>;
341
- name: z.ZodOptional<z.ZodString>;
342
- }, z.core.$loose>>;
343
- type: z.ZodLiteral<"Comment">;
344
- action: z.ZodLiteral<"create">;
345
- data: z.ZodObject<{
346
- id: z.ZodString;
347
- body: z.ZodString;
348
- issueId: z.ZodString;
349
- parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
350
- userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
351
- user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
352
- id: z.ZodString;
353
- name: z.ZodOptional<z.ZodString>;
354
- }, z.core.$loose>>>;
355
- issue: z.ZodOptional<z.ZodObject<{
356
- id: z.ZodString;
357
- identifier: z.ZodOptional<z.ZodString>;
358
- title: z.ZodOptional<z.ZodString>;
359
- url: z.ZodOptional<z.ZodString>;
360
- team: z.ZodOptional<z.ZodObject<{
361
- id: z.ZodString;
362
- key: z.ZodString;
363
- name: z.ZodOptional<z.ZodString>;
364
- }, z.core.$loose>>;
365
- }, z.core.$loose>>;
366
- botActor: z.ZodOptional<z.ZodUnknown>;
367
- }, z.core.$loose>;
368
- }, z.core.$loose>;
369
- }, z.core.$strip>, z.ZodObject<{
370
- key: z.ZodLiteral<"AgentSessionEvent.created">;
371
- deliveryId: z.ZodString;
372
- payload: z.ZodObject<{
373
- organizationId: z.ZodString;
374
- webhookId: z.ZodOptional<z.ZodString>;
375
- webhookTimestamp: z.ZodNumber;
376
- createdAt: z.ZodOptional<z.ZodString>;
377
- url: z.ZodOptional<z.ZodString>;
378
- actor: z.ZodOptional<z.ZodObject<{
379
- id: z.ZodString;
380
- type: z.ZodOptional<z.ZodString>;
381
- name: z.ZodOptional<z.ZodString>;
382
- }, z.core.$loose>>;
383
- type: z.ZodLiteral<"AgentSessionEvent">;
384
- action: z.ZodLiteral<"created">;
385
- appUserId: z.ZodOptional<z.ZodString>;
386
- agentSession: z.ZodObject<{
387
- id: z.ZodString;
388
- status: z.ZodOptional<z.ZodString>;
389
- url: z.ZodOptional<z.ZodString>;
390
- issueId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
391
- issue: z.ZodOptional<z.ZodNullable<z.ZodObject<{
392
- id: z.ZodString;
393
- identifier: z.ZodOptional<z.ZodString>;
394
- title: z.ZodOptional<z.ZodString>;
395
- url: z.ZodOptional<z.ZodString>;
396
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
397
- team: z.ZodOptional<z.ZodObject<{
398
- id: z.ZodString;
399
- key: z.ZodString;
400
- name: z.ZodOptional<z.ZodString>;
401
- }, z.core.$loose>>;
402
- }, z.core.$loose>>>;
403
- commentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
404
- comment: z.ZodOptional<z.ZodNullable<z.ZodObject<{
405
- id: z.ZodString;
406
- body: z.ZodOptional<z.ZodString>;
407
- }, z.core.$loose>>>;
408
- creatorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
409
- creator: z.ZodOptional<z.ZodNullable<z.ZodObject<{
410
- id: z.ZodString;
411
- name: z.ZodOptional<z.ZodString>;
412
- }, z.core.$loose>>>;
413
- }, z.core.$loose>;
414
- promptContext: z.ZodOptional<z.ZodNullable<z.ZodString>>;
415
- guidance: z.ZodOptional<z.ZodUnknown>;
416
- }, z.core.$loose>;
417
- }, z.core.$strip>, z.ZodObject<{
418
- key: z.ZodLiteral<"AgentSessionEvent.prompted">;
419
- deliveryId: z.ZodString;
420
- payload: z.ZodObject<{
421
- organizationId: z.ZodString;
422
- webhookId: z.ZodOptional<z.ZodString>;
423
- webhookTimestamp: z.ZodNumber;
424
- createdAt: z.ZodOptional<z.ZodString>;
425
- url: z.ZodOptional<z.ZodString>;
426
- actor: z.ZodOptional<z.ZodObject<{
427
- id: z.ZodString;
428
- type: z.ZodOptional<z.ZodString>;
429
- name: z.ZodOptional<z.ZodString>;
430
- }, z.core.$loose>>;
431
- type: z.ZodLiteral<"AgentSessionEvent">;
432
- action: z.ZodLiteral<"prompted">;
433
- appUserId: z.ZodOptional<z.ZodString>;
434
- agentSession: z.ZodObject<{
435
- id: z.ZodString;
436
- status: z.ZodOptional<z.ZodString>;
437
- url: z.ZodOptional<z.ZodString>;
438
- issueId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
439
- issue: z.ZodOptional<z.ZodNullable<z.ZodObject<{
440
- id: z.ZodString;
441
- identifier: z.ZodOptional<z.ZodString>;
442
- title: z.ZodOptional<z.ZodString>;
443
- url: z.ZodOptional<z.ZodString>;
444
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
445
- team: z.ZodOptional<z.ZodObject<{
446
- id: z.ZodString;
447
- key: z.ZodString;
448
- name: z.ZodOptional<z.ZodString>;
449
- }, z.core.$loose>>;
450
- }, z.core.$loose>>>;
451
- commentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
452
- comment: z.ZodOptional<z.ZodNullable<z.ZodObject<{
453
- id: z.ZodString;
454
- body: z.ZodOptional<z.ZodString>;
455
- }, z.core.$loose>>>;
456
- creatorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
457
- creator: z.ZodOptional<z.ZodNullable<z.ZodObject<{
458
- id: z.ZodString;
459
- name: z.ZodOptional<z.ZodString>;
460
- }, z.core.$loose>>>;
461
- }, z.core.$loose>;
462
- agentActivity: z.ZodObject<{
463
- content: z.ZodObject<{
464
- type: z.ZodCatch<z.ZodEnum<{
465
- action: "action";
466
- elicitation: "elicitation";
467
- error: "error";
468
- prompt: "prompt";
469
- response: "response";
470
- thought: "thought";
471
- unknown: "unknown";
472
- }>>;
473
- body: z.ZodOptional<z.ZodString>;
474
- }, z.core.$loose>;
475
- signal: z.ZodOptional<z.ZodNullable<z.ZodCatch<z.ZodEnum<{
476
- stop: "stop";
477
- unknown: "unknown";
478
- }>>>>;
479
- signalMetadata: z.ZodOptional<z.ZodUnknown>;
480
- sourceCommentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
481
- userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
482
- user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
483
- id: z.ZodString;
484
- name: z.ZodOptional<z.ZodString>;
485
- }, z.core.$loose>>>;
486
- }, z.core.$loose>;
487
- }, z.core.$loose>;
488
- }, z.core.$strip>], "key">, z.ZodTransform<{
489
- key: "AgentSessionEvent.created";
490
- deliveryId: string;
491
- payload: {
492
- [x: string]: unknown;
493
- organizationId: string;
494
- webhookId?: string | undefined;
495
- webhookTimestamp: number;
496
- createdAt?: string | undefined;
497
- url?: string | undefined;
498
- actor?: {
499
- [x: string]: unknown;
500
- id: string;
501
- type?: string | undefined;
502
- name?: string | undefined;
503
- } | undefined;
504
- type: "AgentSessionEvent";
505
- action: "created";
506
- appUserId?: string | undefined;
507
- agentSession: {
508
- [x: string]: unknown;
509
- id: string;
510
- status?: string | undefined;
511
- url?: string | undefined;
512
- issueId?: string | null | undefined;
513
- issue?: {
514
- [x: string]: unknown;
515
- id: string;
516
- identifier?: string | undefined;
517
- title?: string | undefined;
518
- url?: string | undefined;
519
- description?: string | null | undefined;
520
- team?: {
521
- [x: string]: unknown;
522
- id: string;
523
- key: string;
524
- name?: string | undefined;
525
- } | undefined;
526
- } | null | undefined;
527
- commentId?: string | null | undefined;
528
- comment?: {
529
- [x: string]: unknown;
530
- id: string;
531
- body?: string | undefined;
532
- } | null | undefined;
533
- creatorId?: string | null | undefined;
534
- creator?: {
535
- [x: string]: unknown;
536
- id: string;
537
- name?: string | undefined;
538
- } | null | undefined;
539
- };
540
- promptContext?: string | null | undefined;
541
- guidance?: unknown;
542
- };
543
- organizationId: string;
544
- issueId: string;
545
- team?: {
546
- id: string;
547
- key: string;
548
- } | undefined;
549
- actor?: {
550
- id: string;
551
- type?: string;
552
- name?: string;
553
- } | undefined;
554
- type: "AgentSessionEvent";
555
- action: "created" | "prompted";
556
- sessionId: string;
557
- } | {
558
- key: "AgentSessionEvent.prompted";
559
- deliveryId: string;
560
- payload: {
561
- [x: string]: unknown;
562
- organizationId: string;
563
- webhookId?: string | undefined;
564
- webhookTimestamp: number;
565
- createdAt?: string | undefined;
566
- url?: string | undefined;
567
- actor?: {
568
- [x: string]: unknown;
569
- id: string;
570
- type?: string | undefined;
571
- name?: string | undefined;
572
- } | undefined;
573
- type: "AgentSessionEvent";
574
- action: "prompted";
575
- appUserId?: string | undefined;
576
- agentSession: {
577
- [x: string]: unknown;
578
- id: string;
579
- status?: string | undefined;
580
- url?: string | undefined;
581
- issueId?: string | null | undefined;
582
- issue?: {
583
- [x: string]: unknown;
584
- id: string;
585
- identifier?: string | undefined;
586
- title?: string | undefined;
587
- url?: string | undefined;
588
- description?: string | null | undefined;
589
- team?: {
590
- [x: string]: unknown;
591
- id: string;
592
- key: string;
593
- name?: string | undefined;
594
- } | undefined;
595
- } | null | undefined;
596
- commentId?: string | null | undefined;
597
- comment?: {
598
- [x: string]: unknown;
599
- id: string;
600
- body?: string | undefined;
601
- } | null | undefined;
602
- creatorId?: string | null | undefined;
603
- creator?: {
604
- [x: string]: unknown;
605
- id: string;
606
- name?: string | undefined;
607
- } | null | undefined;
608
- };
609
- agentActivity: {
610
- [x: string]: unknown;
611
- content: {
612
- [x: string]: unknown;
613
- type: "action" | "elicitation" | "error" | "prompt" | "response" | "thought" | "unknown";
614
- body?: string | undefined;
615
- };
616
- signal?: "stop" | "unknown" | null | undefined;
617
- signalMetadata?: unknown;
618
- sourceCommentId?: string | null | undefined;
619
- userId?: string | null | undefined;
620
- user?: {
621
- [x: string]: unknown;
622
- id: string;
623
- name?: string | undefined;
624
- } | null | undefined;
625
- };
626
- };
627
- organizationId: string;
628
- issueId: string;
629
- team?: {
630
- id: string;
631
- key: string;
632
- } | undefined;
633
- actor?: {
634
- id: string;
635
- type?: string;
636
- name?: string;
637
- } | undefined;
638
- type: "AgentSessionEvent";
639
- action: "created" | "prompted";
640
- sessionId: string;
641
- } | {
642
- key: "Issue.create";
643
- deliveryId: string;
644
- payload: {
645
- [x: string]: unknown;
646
- organizationId: string;
647
- webhookId?: string | undefined;
648
- webhookTimestamp: number;
649
- createdAt?: string | undefined;
650
- url?: string | undefined;
651
- actor?: {
652
- [x: string]: unknown;
653
- id: string;
654
- type?: string | undefined;
655
- name?: string | undefined;
656
- } | undefined;
657
- type: "Issue";
658
- action: "create";
659
- data: {
660
- [x: string]: unknown;
661
- id: string;
662
- identifier: string;
663
- title: string;
664
- description?: string | null | undefined;
665
- url?: string | undefined;
666
- teamId?: string | undefined;
667
- team?: {
668
- [x: string]: unknown;
669
- id: string;
670
- key: string;
671
- name?: string | undefined;
672
- } | undefined;
673
- labelIds?: string[] | undefined;
674
- labels?: {
675
- [x: string]: unknown;
676
- id: string;
677
- name: string;
678
- }[] | undefined;
679
- botActor?: unknown;
680
- };
681
- };
682
- organizationId: string;
683
- issueId: string;
684
- team?: {
685
- id: string;
686
- key: string;
687
- } | undefined;
688
- actor?: {
689
- id: string;
690
- type?: string;
691
- name?: string;
692
- } | undefined;
693
- type: "Comment" | "Issue";
694
- action: "create" | "update";
695
- } | {
696
- key: "Issue.update";
697
- deliveryId: string;
698
- payload: {
699
- [x: string]: unknown;
700
- organizationId: string;
701
- webhookId?: string | undefined;
702
- webhookTimestamp: number;
703
- createdAt?: string | undefined;
704
- url?: string | undefined;
705
- actor?: {
706
- [x: string]: unknown;
707
- id: string;
708
- type?: string | undefined;
709
- name?: string | undefined;
710
- } | undefined;
711
- type: "Issue";
712
- action: "update";
713
- data: {
714
- [x: string]: unknown;
715
- id: string;
716
- identifier: string;
717
- title: string;
718
- description?: string | null | undefined;
719
- url?: string | undefined;
720
- teamId?: string | undefined;
721
- team?: {
722
- [x: string]: unknown;
723
- id: string;
724
- key: string;
725
- name?: string | undefined;
726
- } | undefined;
727
- labelIds?: string[] | undefined;
728
- labels?: {
729
- [x: string]: unknown;
730
- id: string;
731
- name: string;
732
- }[] | undefined;
733
- botActor?: unknown;
734
- };
735
- updatedFrom?: Record<string, unknown> | undefined;
736
- };
737
- organizationId: string;
738
- issueId: string;
739
- team?: {
740
- id: string;
741
- key: string;
742
- } | undefined;
743
- actor?: {
744
- id: string;
745
- type?: string;
746
- name?: string;
747
- } | undefined;
748
- type: "Comment" | "Issue";
749
- action: "create" | "update";
750
- } | {
751
- key: "Comment.create";
752
- deliveryId: string;
753
- payload: {
754
- [x: string]: unknown;
755
- organizationId: string;
756
- webhookId?: string | undefined;
757
- webhookTimestamp: number;
758
- createdAt?: string | undefined;
759
- url?: string | undefined;
760
- actor?: {
761
- [x: string]: unknown;
762
- id: string;
763
- type?: string | undefined;
764
- name?: string | undefined;
765
- } | undefined;
766
- type: "Comment";
767
- action: "create";
768
- data: {
769
- [x: string]: unknown;
770
- id: string;
771
- body: string;
772
- issueId: string;
773
- parentId?: string | null | undefined;
774
- userId?: string | null | undefined;
775
- user?: {
776
- [x: string]: unknown;
777
- id: string;
778
- name?: string | undefined;
779
- } | null | undefined;
780
- issue?: {
781
- [x: string]: unknown;
782
- id: string;
783
- identifier?: string | undefined;
784
- title?: string | undefined;
785
- url?: string | undefined;
786
- team?: {
787
- [x: string]: unknown;
788
- id: string;
789
- key: string;
790
- name?: string | undefined;
791
- } | undefined;
792
- } | undefined;
793
- botActor?: unknown;
794
- };
795
- };
796
- organizationId: string;
797
- issueId: string;
798
- team?: {
799
- id: string;
800
- key: string;
801
- } | undefined;
802
- actor?: {
803
- id: string;
804
- type?: string;
805
- name?: string;
806
- } | undefined;
807
- type: "Comment" | "Issue";
808
- action: "create" | "update";
809
- }, {
810
- key: "Issue.create";
811
- deliveryId: string;
812
- payload: {
813
- [x: string]: unknown;
814
- organizationId: string;
815
- webhookId?: string | undefined;
816
- webhookTimestamp: number;
817
- createdAt?: string | undefined;
818
- url?: string | undefined;
819
- actor?: {
820
- [x: string]: unknown;
821
- id: string;
822
- type?: string | undefined;
823
- name?: string | undefined;
824
- } | undefined;
825
- type: "Issue";
826
- action: "create";
827
- data: {
828
- [x: string]: unknown;
829
- id: string;
830
- identifier: string;
831
- title: string;
832
- description?: string | null | undefined;
833
- url?: string | undefined;
834
- teamId?: string | undefined;
835
- team?: {
836
- [x: string]: unknown;
837
- id: string;
838
- key: string;
839
- name?: string | undefined;
840
- } | undefined;
841
- labelIds?: string[] | undefined;
842
- labels?: {
843
- [x: string]: unknown;
844
- id: string;
845
- name: string;
846
- }[] | undefined;
847
- botActor?: unknown;
848
- };
849
- };
850
- } | {
851
- key: "Issue.update";
852
- deliveryId: string;
853
- payload: {
854
- [x: string]: unknown;
855
- organizationId: string;
856
- webhookId?: string | undefined;
857
- webhookTimestamp: number;
858
- createdAt?: string | undefined;
859
- url?: string | undefined;
860
- actor?: {
861
- [x: string]: unknown;
862
- id: string;
863
- type?: string | undefined;
864
- name?: string | undefined;
865
- } | undefined;
866
- type: "Issue";
867
- action: "update";
868
- data: {
869
- [x: string]: unknown;
870
- id: string;
871
- identifier: string;
872
- title: string;
873
- description?: string | null | undefined;
874
- url?: string | undefined;
875
- teamId?: string | undefined;
876
- team?: {
877
- [x: string]: unknown;
878
- id: string;
879
- key: string;
880
- name?: string | undefined;
881
- } | undefined;
882
- labelIds?: string[] | undefined;
883
- labels?: {
884
- [x: string]: unknown;
885
- id: string;
886
- name: string;
887
- }[] | undefined;
888
- botActor?: unknown;
889
- };
890
- updatedFrom?: Record<string, unknown> | undefined;
891
- };
892
- } | {
893
- key: "Comment.create";
894
- deliveryId: string;
895
- payload: {
896
- [x: string]: unknown;
897
- organizationId: string;
898
- webhookId?: string | undefined;
899
- webhookTimestamp: number;
900
- createdAt?: string | undefined;
901
- url?: string | undefined;
902
- actor?: {
903
- [x: string]: unknown;
904
- id: string;
905
- type?: string | undefined;
906
- name?: string | undefined;
907
- } | undefined;
908
- type: "Comment";
909
- action: "create";
910
- data: {
911
- [x: string]: unknown;
912
- id: string;
913
- body: string;
914
- issueId: string;
915
- parentId?: string | null | undefined;
916
- userId?: string | null | undefined;
917
- user?: {
918
- [x: string]: unknown;
919
- id: string;
920
- name?: string | undefined;
921
- } | null | undefined;
922
- issue?: {
923
- [x: string]: unknown;
924
- id: string;
925
- identifier?: string | undefined;
926
- title?: string | undefined;
927
- url?: string | undefined;
928
- team?: {
929
- [x: string]: unknown;
930
- id: string;
931
- key: string;
932
- name?: string | undefined;
933
- } | undefined;
934
- } | undefined;
935
- botActor?: unknown;
936
- };
937
- };
938
- } | {
939
- key: "AgentSessionEvent.created";
940
- deliveryId: string;
941
- payload: {
942
- [x: string]: unknown;
943
- organizationId: string;
944
- webhookId?: string | undefined;
945
- webhookTimestamp: number;
946
- createdAt?: string | undefined;
947
- url?: string | undefined;
948
- actor?: {
949
- [x: string]: unknown;
950
- id: string;
951
- type?: string | undefined;
952
- name?: string | undefined;
953
- } | undefined;
954
- type: "AgentSessionEvent";
955
- action: "created";
956
- appUserId?: string | undefined;
957
- agentSession: {
958
- [x: string]: unknown;
959
- id: string;
960
- status?: string | undefined;
961
- url?: string | undefined;
962
- issueId?: string | null | undefined;
963
- issue?: {
964
- [x: string]: unknown;
965
- id: string;
966
- identifier?: string | undefined;
967
- title?: string | undefined;
968
- url?: string | undefined;
969
- description?: string | null | undefined;
970
- team?: {
971
- [x: string]: unknown;
972
- id: string;
973
- key: string;
974
- name?: string | undefined;
975
- } | undefined;
976
- } | null | undefined;
977
- commentId?: string | null | undefined;
978
- comment?: {
979
- [x: string]: unknown;
980
- id: string;
981
- body?: string | undefined;
982
- } | null | undefined;
983
- creatorId?: string | null | undefined;
984
- creator?: {
985
- [x: string]: unknown;
986
- id: string;
987
- name?: string | undefined;
988
- } | null | undefined;
989
- };
990
- promptContext?: string | null | undefined;
991
- guidance?: unknown;
992
- };
993
- } | {
994
- key: "AgentSessionEvent.prompted";
995
- deliveryId: string;
996
- payload: {
997
- [x: string]: unknown;
998
- organizationId: string;
999
- webhookId?: string | undefined;
1000
- webhookTimestamp: number;
1001
- createdAt?: string | undefined;
1002
- url?: string | undefined;
1003
- actor?: {
1004
- [x: string]: unknown;
1005
- id: string;
1006
- type?: string | undefined;
1007
- name?: string | undefined;
1008
- } | undefined;
1009
- type: "AgentSessionEvent";
1010
- action: "prompted";
1011
- appUserId?: string | undefined;
1012
- agentSession: {
1013
- [x: string]: unknown;
1014
- id: string;
1015
- status?: string | undefined;
1016
- url?: string | undefined;
1017
- issueId?: string | null | undefined;
1018
- issue?: {
1019
- [x: string]: unknown;
1020
- id: string;
1021
- identifier?: string | undefined;
1022
- title?: string | undefined;
1023
- url?: string | undefined;
1024
- description?: string | null | undefined;
1025
- team?: {
1026
- [x: string]: unknown;
1027
- id: string;
1028
- key: string;
1029
- name?: string | undefined;
1030
- } | undefined;
1031
- } | null | undefined;
1032
- commentId?: string | null | undefined;
1033
- comment?: {
1034
- [x: string]: unknown;
1035
- id: string;
1036
- body?: string | undefined;
1037
- } | null | undefined;
1038
- creatorId?: string | null | undefined;
1039
- creator?: {
1040
- [x: string]: unknown;
1041
- id: string;
1042
- name?: string | undefined;
1043
- } | null | undefined;
1044
- };
1045
- agentActivity: {
1046
- [x: string]: unknown;
1047
- content: {
1048
- [x: string]: unknown;
1049
- type: "action" | "elicitation" | "error" | "prompt" | "response" | "thought" | "unknown";
1050
- body?: string | undefined;
1051
- };
1052
- signal?: "stop" | "unknown" | null | undefined;
1053
- signalMetadata?: unknown;
1054
- sourceCommentId?: string | null | undefined;
1055
- userId?: string | null | undefined;
1056
- user?: {
1057
- [x: string]: unknown;
1058
- id: string;
1059
- name?: string | undefined;
1060
- } | null | undefined;
1061
- };
1062
- };
1063
- }>>;
1064
- //# sourceMappingURL=schema.d.ts.map