@frogbotai/piece-pagerduty 0.27.0 → 0.28.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.
package/dist/index.d.ts CHANGED
@@ -16,205 +16,92 @@ export declare const createPagerduty: import("frogbot/pieces").PieceFactory<{
16
16
  signingSecret: import("zod").ZodOptional<import("zod").ZodString>;
17
17
  }, import("zod/v4/core").$strip>;
18
18
  readonly client: typeof createPagerdutyClient;
19
- readonly actions: readonly [{
20
- slug: string;
21
- description: string;
22
- input: import("zod").ZodObject<{
23
- fromEmail: import("zod").ZodEmail;
24
- serviceId: import("zod").ZodString;
25
- title: import("zod").ZodString;
26
- urgency: import("zod").ZodDefault<import("zod").ZodEnum<{
27
- high: "high";
28
- low: "low";
29
- }>>;
30
- details: import("zod").ZodOptional<import("zod").ZodString>;
31
- incidentKey: import("zod").ZodOptional<import("zod").ZodString>;
32
- assigneeIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
33
- priorityId: import("zod").ZodOptional<import("zod").ZodString>;
34
- conferenceNumber: import("zod").ZodOptional<import("zod").ZodString>;
35
- conferenceUrl: import("zod").ZodOptional<import("zod").ZodURL>;
36
- }, import("zod/v4/core").$strip>;
37
- output: import("zod").ZodObject<{
38
- id: import("zod").ZodString;
39
- status: import("zod").ZodOptional<import("zod").ZodString>;
40
- }, import("zod/v4/core").$loose>;
41
- idempotent: false;
42
- options: {
43
- serviceId: ({ client }: {
44
- client: import("./client.js").PagerdutyClient;
45
- }) => Promise<{
46
- label: string;
47
- value: string;
48
- }[]>;
49
- };
50
- run({ input, client, }: import("frogbot/pieces").PieceRunArgs<import("zod").infer<import("zod").ZodObject<{
51
- fromEmail: import("zod").ZodEmail;
52
- serviceId: import("zod").ZodString;
53
- title: import("zod").ZodString;
54
- urgency: import("zod").ZodDefault<import("zod").ZodEnum<{
55
- high: "high";
56
- low: "low";
57
- }>>;
58
- details: import("zod").ZodOptional<import("zod").ZodString>;
59
- incidentKey: import("zod").ZodOptional<import("zod").ZodString>;
60
- assigneeIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
61
- priorityId: import("zod").ZodOptional<import("zod").ZodString>;
62
- conferenceNumber: import("zod").ZodOptional<import("zod").ZodString>;
63
- conferenceUrl: import("zod").ZodOptional<import("zod").ZodURL>;
64
- }, import("zod/v4/core").$strip>>, object, import("./client.js").PagerdutyClient>): Promise<{
65
- [x: string]: unknown;
66
- id: string;
67
- status?: string | undefined;
68
- }>;
19
+ readonly actions: readonly [import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
20
+ fromEmail: import("zod").ZodEmail;
21
+ serviceId: import("zod").ZodString;
22
+ title: import("zod").ZodString;
23
+ urgency: import("zod").ZodDefault<import("zod").ZodEnum<{
24
+ high: "high";
25
+ low: "low";
26
+ }>>;
27
+ details: import("zod").ZodOptional<import("zod").ZodString>;
28
+ incidentKey: import("zod").ZodOptional<import("zod").ZodString>;
29
+ assigneeIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
30
+ priorityId: import("zod").ZodOptional<import("zod").ZodString>;
31
+ conferenceNumber: import("zod").ZodOptional<import("zod").ZodString>;
32
+ conferenceUrl: import("zod").ZodOptional<import("zod").ZodURL>;
33
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
34
+ id: import("zod").ZodString;
35
+ status: import("zod").ZodOptional<import("zod").ZodString>;
36
+ }, import("zod/v4/core").$loose>, {
37
+ signingSecret?: string | undefined;
69
38
  }, {
70
- slug: string;
71
- description: string;
72
- input: import("zod").ZodObject<{
73
- statuses: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
74
- triggered: "triggered";
75
- acknowledged: "acknowledged";
76
- resolved: "resolved";
77
- }>>>;
78
- urgency: import("zod").ZodOptional<import("zod").ZodEnum<{
79
- high: "high";
80
- low: "low";
81
- }>>;
82
- since: import("zod").ZodOptional<import("zod").ZodString>;
83
- until: import("zod").ZodOptional<import("zod").ZodString>;
84
- limit: import("zod").ZodDefault<import("zod").ZodNumber>;
85
- offset: import("zod").ZodDefault<import("zod").ZodNumber>;
86
- }, import("zod/v4/core").$strip>;
87
- output: import("zod").ZodObject<{
88
- incidents: import("zod").ZodArray<import("zod").ZodObject<{
89
- id: import("zod").ZodString;
90
- status: import("zod").ZodOptional<import("zod").ZodString>;
91
- }, import("zod/v4/core").$loose>>;
92
- limit: import("zod").ZodOptional<import("zod").ZodNumber>;
93
- offset: import("zod").ZodOptional<import("zod").ZodNumber>;
94
- more: import("zod").ZodOptional<import("zod").ZodBoolean>;
95
- }, import("zod/v4/core").$loose>;
96
- idempotent: true;
97
- run({ input, client, }: import("frogbot/pieces").PieceRunArgs<import("zod").infer<import("zod").ZodObject<{
98
- statuses: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
99
- triggered: "triggered";
100
- acknowledged: "acknowledged";
101
- resolved: "resolved";
102
- }>>>;
103
- urgency: import("zod").ZodOptional<import("zod").ZodEnum<{
104
- high: "high";
105
- low: "low";
106
- }>>;
107
- since: import("zod").ZodOptional<import("zod").ZodString>;
108
- until: import("zod").ZodOptional<import("zod").ZodString>;
109
- limit: import("zod").ZodDefault<import("zod").ZodNumber>;
110
- offset: import("zod").ZodDefault<import("zod").ZodNumber>;
111
- }, import("zod/v4/core").$strip>>, object, import("./client.js").PagerdutyClient>): Promise<{
112
- [x: string]: unknown;
113
- incidents: {
114
- [x: string]: unknown;
115
- id: string;
116
- status?: string | undefined;
117
- }[];
118
- limit?: number | undefined;
119
- offset?: number | undefined;
120
- more?: boolean | undefined;
121
- }>;
39
+ request: ({ method, path, query, body, fromEmail, }: {
40
+ method: string;
41
+ path: string;
42
+ query?: {
43
+ [x: string]: string | string[] | undefined;
44
+ };
45
+ body?: unknown;
46
+ fromEmail?: string;
47
+ }) => Promise<unknown>;
122
48
  }, {
123
- slug: string;
124
- description: string;
125
- input: import("zod").ZodObject<{
126
- incidentId: import("zod").ZodString;
127
- }, import("zod/v4/core").$strip>;
128
- output: import("zod").ZodObject<{
49
+ [x: string]: unknown;
50
+ id: string;
51
+ status?: string | undefined;
52
+ }> & {
53
+ slug: "createIncident";
54
+ }, import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
55
+ statuses: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
56
+ triggered: "triggered";
57
+ acknowledged: "acknowledged";
58
+ resolved: "resolved";
59
+ }>>>;
60
+ urgency: import("zod").ZodOptional<import("zod").ZodEnum<{
61
+ high: "high";
62
+ low: "low";
63
+ }>>;
64
+ since: import("zod").ZodOptional<import("zod").ZodString>;
65
+ until: import("zod").ZodOptional<import("zod").ZodString>;
66
+ limit: import("zod").ZodDefault<import("zod").ZodNumber>;
67
+ offset: import("zod").ZodDefault<import("zod").ZodNumber>;
68
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
69
+ incidents: import("zod").ZodArray<import("zod").ZodObject<{
129
70
  id: import("zod").ZodString;
130
71
  status: import("zod").ZodOptional<import("zod").ZodString>;
131
- }, import("zod/v4/core").$loose>;
132
- idempotent: true;
133
- run({ input, client, }: import("frogbot/pieces").PieceRunArgs<import("zod").infer<import("zod").ZodObject<{
134
- incidentId: import("zod").ZodString;
135
- }, import("zod/v4/core").$strip>>, object, import("./client.js").PagerdutyClient>): Promise<{
136
- [x: string]: unknown;
137
- id: string;
138
- status?: string | undefined;
139
- }>;
72
+ }, import("zod/v4/core").$loose>>;
73
+ limit: import("zod").ZodOptional<import("zod").ZodNumber>;
74
+ offset: import("zod").ZodOptional<import("zod").ZodNumber>;
75
+ more: import("zod").ZodOptional<import("zod").ZodBoolean>;
76
+ }, import("zod/v4/core").$loose>, {
77
+ signingSecret?: string | undefined;
140
78
  }, {
141
- slug: "acknowledgeIncident" | "resolveIncident";
142
- description: string;
143
- input: import("zod").ZodObject<{
144
- resolution?: import("zod").ZodOptional<import("zod").ZodString> | undefined;
145
- incidentId: import("zod").ZodString;
146
- fromEmail: import("zod").ZodEmail;
147
- }, import("zod/v4/core").$strip>;
148
- output: import("zod").ZodObject<{
149
- id: import("zod").ZodString;
150
- status: import("zod").ZodOptional<import("zod").ZodString>;
151
- }, import("zod/v4/core").$loose>;
152
- idempotent: true;
153
- run({ input: values, client, }: import("frogbot/pieces").PieceRunArgs<import("zod").infer<import("zod").ZodObject<{
154
- resolution?: import("zod").ZodOptional<import("zod").ZodString> | undefined;
155
- incidentId: import("zod").ZodString;
156
- fromEmail: import("zod").ZodEmail;
157
- }, import("zod/v4/core").$strip>>, object, import("./client.js").PagerdutyClient>): Promise<{
158
- [x: string]: unknown;
159
- id: string;
160
- status?: string | undefined;
161
- }>;
79
+ request: ({ method, path, query, body, fromEmail, }: {
80
+ method: string;
81
+ path: string;
82
+ query?: {
83
+ [x: string]: string | string[] | undefined;
84
+ };
85
+ body?: unknown;
86
+ fromEmail?: string;
87
+ }) => Promise<unknown>;
162
88
  }, {
163
- slug: "acknowledgeIncident" | "resolveIncident";
164
- description: string;
165
- input: import("zod").ZodObject<{
166
- resolution?: import("zod").ZodOptional<import("zod").ZodString> | undefined;
167
- incidentId: import("zod").ZodString;
168
- fromEmail: import("zod").ZodEmail;
169
- }, import("zod/v4/core").$strip>;
170
- output: import("zod").ZodObject<{
171
- id: import("zod").ZodString;
172
- status: import("zod").ZodOptional<import("zod").ZodString>;
173
- }, import("zod/v4/core").$loose>;
174
- idempotent: true;
175
- run({ input: values, client, }: import("frogbot/pieces").PieceRunArgs<import("zod").infer<import("zod").ZodObject<{
176
- resolution?: import("zod").ZodOptional<import("zod").ZodString> | undefined;
177
- incidentId: import("zod").ZodString;
178
- fromEmail: import("zod").ZodEmail;
179
- }, import("zod/v4/core").$strip>>, object, import("./client.js").PagerdutyClient>): Promise<{
89
+ [x: string]: unknown;
90
+ incidents: {
180
91
  [x: string]: unknown;
181
92
  id: string;
182
93
  status?: string | undefined;
183
- }>;
184
- }, {
185
- slug: string;
186
- description: string;
187
- input: import("zod").ZodObject<{
188
- method: import("zod").ZodEnum<{
189
- GET: "GET";
190
- POST: "POST";
191
- PATCH: "PATCH";
192
- PUT: "PUT";
193
- DELETE: "DELETE";
194
- }>;
195
- path: import("zod").ZodString;
196
- queryParams: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>>>;
197
- body: import("zod").ZodOptional<import("zod").ZodJSONSchema>;
198
- }, import("zod/v4/core").$strip>;
199
- output: import("zod").ZodJSONSchema;
200
- run({ input, client, }: import("frogbot/pieces").PieceRunArgs<import("zod").infer<import("zod").ZodObject<{
201
- method: import("zod").ZodEnum<{
202
- GET: "GET";
203
- POST: "POST";
204
- PATCH: "PATCH";
205
- PUT: "PUT";
206
- DELETE: "DELETE";
207
- }>;
208
- path: import("zod").ZodString;
209
- queryParams: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>>>;
210
- body: import("zod").ZodOptional<import("zod").ZodJSONSchema>;
211
- }, import("zod/v4/core").$strip>>, object, import("./client.js").PagerdutyClient>): Promise<import("zod").JSONType>;
212
- }];
213
- readonly triggers: readonly [import("frogbot/pieces").PieceWebhookTrigger<import("zod").ZodObject<{}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
214
- event: import("zod").ZodObject<{
215
- id: import("zod").ZodString;
216
- event_type: import("zod").ZodString;
217
- }, import("zod/v4/core").$loose>;
94
+ }[];
95
+ limit?: number | undefined;
96
+ offset?: number | undefined;
97
+ more?: boolean | undefined;
98
+ }> & {
99
+ slug: "listIncidents";
100
+ }, import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
101
+ incidentId: import("zod").ZodString;
102
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
103
+ id: import("zod").ZodString;
104
+ status: import("zod").ZodOptional<import("zod").ZodString>;
218
105
  }, import("zod/v4/core").$loose>, {
219
106
  signingSecret?: string | undefined;
220
107
  }, {
@@ -228,12 +115,18 @@ export declare const createPagerduty: import("frogbot/pieces").PieceFactory<{
228
115
  fromEmail?: string;
229
116
  }) => Promise<unknown>;
230
117
  }, {
231
- webhookUrl: string;
232
- }>, import("frogbot/pieces").PieceWebhookTrigger<import("zod").ZodObject<{}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
233
- event: import("zod").ZodObject<{
234
- id: import("zod").ZodString;
235
- event_type: import("zod").ZodString;
236
- }, import("zod/v4/core").$loose>;
118
+ [x: string]: unknown;
119
+ id: string;
120
+ status?: string | undefined;
121
+ }> & {
122
+ slug: "getIncident";
123
+ }, import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
124
+ resolution?: import("zod").ZodOptional<import("zod").ZodString> | undefined;
125
+ incidentId: import("zod").ZodString;
126
+ fromEmail: import("zod").ZodEmail;
127
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
128
+ id: import("zod").ZodString;
129
+ status: import("zod").ZodOptional<import("zod").ZodString>;
237
130
  }, import("zod/v4/core").$loose>, {
238
131
  signingSecret?: string | undefined;
239
132
  }, {
@@ -247,12 +140,18 @@ export declare const createPagerduty: import("frogbot/pieces").PieceFactory<{
247
140
  fromEmail?: string;
248
141
  }) => Promise<unknown>;
249
142
  }, {
250
- webhookUrl: string;
251
- }>, import("frogbot/pieces").PieceWebhookTrigger<import("zod").ZodObject<{}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
252
- event: import("zod").ZodObject<{
253
- id: import("zod").ZodString;
254
- event_type: import("zod").ZodString;
255
- }, import("zod/v4/core").$loose>;
143
+ [x: string]: unknown;
144
+ id: string;
145
+ status?: string | undefined;
146
+ }> & {
147
+ slug: "acknowledgeIncident";
148
+ }, import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
149
+ resolution?: import("zod").ZodOptional<import("zod").ZodString> | undefined;
150
+ incidentId: import("zod").ZodString;
151
+ fromEmail: import("zod").ZodEmail;
152
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
153
+ id: import("zod").ZodString;
154
+ status: import("zod").ZodOptional<import("zod").ZodString>;
256
155
  }, import("zod/v4/core").$loose>, {
257
156
  signingSecret?: string | undefined;
258
157
  }, {
@@ -266,8 +165,350 @@ export declare const createPagerduty: import("frogbot/pieces").PieceFactory<{
266
165
  fromEmail?: string;
267
166
  }) => Promise<unknown>;
268
167
  }, {
269
- webhookUrl: string;
270
- }>];
168
+ [x: string]: unknown;
169
+ id: string;
170
+ status?: string | undefined;
171
+ }> & {
172
+ slug: "resolveIncident";
173
+ }, import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
174
+ method: import("zod").ZodEnum<{
175
+ GET: "GET";
176
+ POST: "POST";
177
+ PATCH: "PATCH";
178
+ PUT: "PUT";
179
+ DELETE: "DELETE";
180
+ }>;
181
+ path: import("zod").ZodString;
182
+ queryParams: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>>>;
183
+ body: import("zod").ZodOptional<import("zod").ZodJSONSchema>;
184
+ }, import("zod/v4/core").$strip>, import("zod").ZodJSONSchema, {
185
+ signingSecret?: string | undefined;
186
+ }, {
187
+ request: ({ method, path, query, body, fromEmail, }: {
188
+ method: string;
189
+ path: string;
190
+ query?: {
191
+ [x: string]: string | string[] | undefined;
192
+ };
193
+ body?: unknown;
194
+ fromEmail?: string;
195
+ }) => Promise<unknown>;
196
+ }, import("zod").JSONType> & {
197
+ slug: "customApiCall";
198
+ }];
199
+ readonly triggers: readonly [{
200
+ slug: string;
201
+ label?: string;
202
+ description: string;
203
+ input: import("zod").ZodObject<{}, import("zod/v4/core").$strip>;
204
+ output?: import("zod").ZodObject<{
205
+ event: import("zod").ZodObject<{
206
+ id: import("zod").ZodString;
207
+ event_type: import("zod").ZodString;
208
+ }, import("zod/v4/core").$loose>;
209
+ }, import("zod/v4/core").$loose> | undefined;
210
+ sample?: {
211
+ [x: string]: unknown;
212
+ event: {
213
+ [x: string]: unknown;
214
+ id: string;
215
+ event_type: string;
216
+ };
217
+ } | undefined;
218
+ } & {
219
+ type: "webhook";
220
+ onEnable(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, {
221
+ signingSecret?: string | undefined;
222
+ }, {
223
+ request: ({ method, path, query, body, fromEmail, }: {
224
+ method: string;
225
+ path: string;
226
+ query?: {
227
+ [x: string]: string | string[] | undefined;
228
+ };
229
+ body?: unknown;
230
+ fromEmail?: string;
231
+ }) => Promise<unknown>;
232
+ }> & {
233
+ webhookUrl: string;
234
+ }): Promise<{
235
+ webhookUrl: string;
236
+ }>;
237
+ onDisable(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, {
238
+ signingSecret?: string | undefined;
239
+ }, {
240
+ request: ({ method, path, query, body, fromEmail, }: {
241
+ method: string;
242
+ path: string;
243
+ query?: {
244
+ [x: string]: string | string[] | undefined;
245
+ };
246
+ body?: unknown;
247
+ fromEmail?: string;
248
+ }) => Promise<unknown>;
249
+ }> & {
250
+ state: {
251
+ webhookUrl: string;
252
+ };
253
+ }): Promise<void>;
254
+ renew?: {
255
+ schedule: string;
256
+ run(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, {
257
+ signingSecret?: string | undefined;
258
+ }, {
259
+ request: ({ method, path, query, body, fromEmail, }: {
260
+ method: string;
261
+ path: string;
262
+ query?: {
263
+ [x: string]: string | string[] | undefined;
264
+ };
265
+ body?: unknown;
266
+ fromEmail?: string;
267
+ }) => Promise<unknown>;
268
+ }> & {
269
+ state: {
270
+ webhookUrl: string;
271
+ };
272
+ webhookUrl: string;
273
+ }): Promise<{
274
+ webhookUrl: string;
275
+ }>;
276
+ } | undefined;
277
+ run(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, {
278
+ signingSecret?: string | undefined;
279
+ }, {
280
+ request: ({ method, path, query, body, fromEmail, }: {
281
+ method: string;
282
+ path: string;
283
+ query?: {
284
+ [x: string]: string | string[] | undefined;
285
+ };
286
+ body?: unknown;
287
+ fromEmail?: string;
288
+ }) => Promise<unknown>;
289
+ }> & {
290
+ state: {
291
+ webhookUrl: string;
292
+ };
293
+ }): Promise<import("frogbot/pieces").TriggerEvent<{
294
+ [x: string]: unknown;
295
+ event: {
296
+ [x: string]: unknown;
297
+ id: string;
298
+ event_type: string;
299
+ };
300
+ }>[]>;
301
+ } & {
302
+ slug: "newIncident";
303
+ }, {
304
+ slug: string;
305
+ label?: string;
306
+ description: string;
307
+ input: import("zod").ZodObject<{}, import("zod/v4/core").$strip>;
308
+ output?: import("zod").ZodObject<{
309
+ event: import("zod").ZodObject<{
310
+ id: import("zod").ZodString;
311
+ event_type: import("zod").ZodString;
312
+ }, import("zod/v4/core").$loose>;
313
+ }, import("zod/v4/core").$loose> | undefined;
314
+ sample?: {
315
+ [x: string]: unknown;
316
+ event: {
317
+ [x: string]: unknown;
318
+ id: string;
319
+ event_type: string;
320
+ };
321
+ } | undefined;
322
+ } & {
323
+ type: "webhook";
324
+ onEnable(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, {
325
+ signingSecret?: string | undefined;
326
+ }, {
327
+ request: ({ method, path, query, body, fromEmail, }: {
328
+ method: string;
329
+ path: string;
330
+ query?: {
331
+ [x: string]: string | string[] | undefined;
332
+ };
333
+ body?: unknown;
334
+ fromEmail?: string;
335
+ }) => Promise<unknown>;
336
+ }> & {
337
+ webhookUrl: string;
338
+ }): Promise<{
339
+ webhookUrl: string;
340
+ }>;
341
+ onDisable(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, {
342
+ signingSecret?: string | undefined;
343
+ }, {
344
+ request: ({ method, path, query, body, fromEmail, }: {
345
+ method: string;
346
+ path: string;
347
+ query?: {
348
+ [x: string]: string | string[] | undefined;
349
+ };
350
+ body?: unknown;
351
+ fromEmail?: string;
352
+ }) => Promise<unknown>;
353
+ }> & {
354
+ state: {
355
+ webhookUrl: string;
356
+ };
357
+ }): Promise<void>;
358
+ renew?: {
359
+ schedule: string;
360
+ run(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, {
361
+ signingSecret?: string | undefined;
362
+ }, {
363
+ request: ({ method, path, query, body, fromEmail, }: {
364
+ method: string;
365
+ path: string;
366
+ query?: {
367
+ [x: string]: string | string[] | undefined;
368
+ };
369
+ body?: unknown;
370
+ fromEmail?: string;
371
+ }) => Promise<unknown>;
372
+ }> & {
373
+ state: {
374
+ webhookUrl: string;
375
+ };
376
+ webhookUrl: string;
377
+ }): Promise<{
378
+ webhookUrl: string;
379
+ }>;
380
+ } | undefined;
381
+ run(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, {
382
+ signingSecret?: string | undefined;
383
+ }, {
384
+ request: ({ method, path, query, body, fromEmail, }: {
385
+ method: string;
386
+ path: string;
387
+ query?: {
388
+ [x: string]: string | string[] | undefined;
389
+ };
390
+ body?: unknown;
391
+ fromEmail?: string;
392
+ }) => Promise<unknown>;
393
+ }> & {
394
+ state: {
395
+ webhookUrl: string;
396
+ };
397
+ }): Promise<import("frogbot/pieces").TriggerEvent<{
398
+ [x: string]: unknown;
399
+ event: {
400
+ [x: string]: unknown;
401
+ id: string;
402
+ event_type: string;
403
+ };
404
+ }>[]>;
405
+ } & {
406
+ slug: "incidentResolved";
407
+ }, {
408
+ slug: string;
409
+ label?: string;
410
+ description: string;
411
+ input: import("zod").ZodObject<{}, import("zod/v4/core").$strip>;
412
+ output?: import("zod").ZodObject<{
413
+ event: import("zod").ZodObject<{
414
+ id: import("zod").ZodString;
415
+ event_type: import("zod").ZodString;
416
+ }, import("zod/v4/core").$loose>;
417
+ }, import("zod/v4/core").$loose> | undefined;
418
+ sample?: {
419
+ [x: string]: unknown;
420
+ event: {
421
+ [x: string]: unknown;
422
+ id: string;
423
+ event_type: string;
424
+ };
425
+ } | undefined;
426
+ } & {
427
+ type: "webhook";
428
+ onEnable(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, {
429
+ signingSecret?: string | undefined;
430
+ }, {
431
+ request: ({ method, path, query, body, fromEmail, }: {
432
+ method: string;
433
+ path: string;
434
+ query?: {
435
+ [x: string]: string | string[] | undefined;
436
+ };
437
+ body?: unknown;
438
+ fromEmail?: string;
439
+ }) => Promise<unknown>;
440
+ }> & {
441
+ webhookUrl: string;
442
+ }): Promise<{
443
+ webhookUrl: string;
444
+ }>;
445
+ onDisable(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, {
446
+ signingSecret?: string | undefined;
447
+ }, {
448
+ request: ({ method, path, query, body, fromEmail, }: {
449
+ method: string;
450
+ path: string;
451
+ query?: {
452
+ [x: string]: string | string[] | undefined;
453
+ };
454
+ body?: unknown;
455
+ fromEmail?: string;
456
+ }) => Promise<unknown>;
457
+ }> & {
458
+ state: {
459
+ webhookUrl: string;
460
+ };
461
+ }): Promise<void>;
462
+ renew?: {
463
+ schedule: string;
464
+ run(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, {
465
+ signingSecret?: string | undefined;
466
+ }, {
467
+ request: ({ method, path, query, body, fromEmail, }: {
468
+ method: string;
469
+ path: string;
470
+ query?: {
471
+ [x: string]: string | string[] | undefined;
472
+ };
473
+ body?: unknown;
474
+ fromEmail?: string;
475
+ }) => Promise<unknown>;
476
+ }> & {
477
+ state: {
478
+ webhookUrl: string;
479
+ };
480
+ webhookUrl: string;
481
+ }): Promise<{
482
+ webhookUrl: string;
483
+ }>;
484
+ } | undefined;
485
+ run(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, {
486
+ signingSecret?: string | undefined;
487
+ }, {
488
+ request: ({ method, path, query, body, fromEmail, }: {
489
+ method: string;
490
+ path: string;
491
+ query?: {
492
+ [x: string]: string | string[] | undefined;
493
+ };
494
+ body?: unknown;
495
+ fromEmail?: string;
496
+ }) => Promise<unknown>;
497
+ }> & {
498
+ state: {
499
+ webhookUrl: string;
500
+ };
501
+ }): Promise<import("frogbot/pieces").TriggerEvent<{
502
+ [x: string]: unknown;
503
+ event: {
504
+ [x: string]: unknown;
505
+ id: string;
506
+ event_type: string;
507
+ };
508
+ }>[]>;
509
+ } & {
510
+ slug: "incidentAcknowledged";
511
+ }];
271
512
  readonly webhook: import("frogbot/pieces").PieceWebhook<{
272
513
  signingSecret?: string | undefined;
273
514
  }>;