@frogbotai/piece-pagerduty 0.38.0 → 0.40.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/define.d.ts CHANGED
@@ -65,45 +65,34 @@ export declare const defineAction: <const TSlug extends string, TInput extends i
65
65
  sample?: (TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : import("frogbot/pieces").PieceJSON) | undefined;
66
66
  } & {
67
67
  type: "webhook";
68
- onEnable(args: import("frogbot/pieces").PieceRunArgs<import("zod").infer<TInput>, {
69
- signingSecret?: string | undefined;
70
- }, {
71
- request: ({ method, path, query, body, fromEmail, redirect, }: {
72
- method: string;
73
- path: string;
74
- query?: {
75
- [x: string]: string | string[] | undefined;
76
- };
77
- body?: unknown;
78
- fromEmail?: string;
79
- redirect?: RequestRedirect;
80
- }) => Promise<unknown>;
81
- authorize: (headers: Headers) => void;
82
- }> & {
68
+ onEnable(args: {
69
+ input: import("zod").infer<TInput>;
70
+ options: {
71
+ signingSecret?: string | undefined;
72
+ };
73
+ client: {
74
+ request: ({ method, path, query, body, fromEmail, redirect, }: {
75
+ method: string;
76
+ path: string;
77
+ query?: {
78
+ [x: string]: string | string[] | undefined;
79
+ };
80
+ body?: unknown;
81
+ fromEmail?: string;
82
+ redirect?: RequestRedirect;
83
+ }) => Promise<unknown>;
84
+ authorize: (headers: Headers) => void;
85
+ };
86
+ req: import("frogbot/pieces").FrogBotRequest;
87
+ } & {
83
88
  webhookUrl: string;
84
89
  }): Promise<TState>;
85
- onDisable(args: import("frogbot/pieces").PieceRunArgs<import("zod").infer<TInput>, {
86
- signingSecret?: string | undefined;
87
- }, {
88
- request: ({ method, path, query, body, fromEmail, redirect, }: {
89
- method: string;
90
- path: string;
91
- query?: {
92
- [x: string]: string | string[] | undefined;
93
- };
94
- body?: unknown;
95
- fromEmail?: string;
96
- redirect?: RequestRedirect;
97
- }) => Promise<unknown>;
98
- authorize: (headers: Headers) => void;
99
- }> & {
100
- state: TState;
101
- }): Promise<void>;
102
- renew?: {
103
- schedule: string;
104
- run(args: import("frogbot/pieces").PieceRunArgs<import("zod").infer<TInput>, {
90
+ onDisable(args: {
91
+ input: import("zod").infer<TInput>;
92
+ options: {
105
93
  signingSecret?: string | undefined;
106
- }, {
94
+ };
95
+ client: {
107
96
  request: ({ method, path, query, body, fromEmail, redirect, }: {
108
97
  method: string;
109
98
  path: string;
@@ -115,28 +104,82 @@ export declare const defineAction: <const TSlug extends string, TInput extends i
115
104
  redirect?: RequestRedirect;
116
105
  }) => Promise<unknown>;
117
106
  authorize: (headers: Headers) => void;
118
- }> & {
107
+ };
108
+ req: import("frogbot/pieces").FrogBotRequest;
109
+ } & {
110
+ state: TState;
111
+ }): Promise<void>;
112
+ renew?: {
113
+ schedule: string;
114
+ run(args: {
115
+ input: import("zod").infer<TInput>;
116
+ options: {
117
+ signingSecret?: string | undefined;
118
+ };
119
+ client: {
120
+ request: ({ method, path, query, body, fromEmail, redirect, }: {
121
+ method: string;
122
+ path: string;
123
+ query?: {
124
+ [x: string]: string | string[] | undefined;
125
+ };
126
+ body?: unknown;
127
+ fromEmail?: string;
128
+ redirect?: RequestRedirect;
129
+ }) => Promise<unknown>;
130
+ authorize: (headers: Headers) => void;
131
+ };
132
+ req: import("frogbot/pieces").FrogBotRequest;
133
+ } & {
119
134
  state: TState;
120
135
  webhookUrl: string;
121
136
  }): Promise<TState>;
122
137
  } | undefined;
123
- run(args: import("frogbot/pieces").PieceRunArgs<import("zod").infer<TInput>, {
124
- signingSecret?: string | undefined;
125
- }, {
126
- request: ({ method, path, query, body, fromEmail, redirect, }: {
127
- method: string;
128
- path: string;
129
- query?: {
130
- [x: string]: string | string[] | undefined;
131
- };
132
- body?: unknown;
133
- fromEmail?: string;
134
- redirect?: RequestRedirect;
135
- }) => Promise<unknown>;
136
- authorize: (headers: Headers) => void;
137
- }> & {
138
+ run(args: {
139
+ input: import("zod").infer<TInput>;
140
+ options: {
141
+ signingSecret?: string | undefined;
142
+ };
143
+ client: {
144
+ request: ({ method, path, query, body, fromEmail, redirect, }: {
145
+ method: string;
146
+ path: string;
147
+ query?: {
148
+ [x: string]: string | string[] | undefined;
149
+ };
150
+ body?: unknown;
151
+ fromEmail?: string;
152
+ redirect?: RequestRedirect;
153
+ }) => Promise<unknown>;
154
+ authorize: (headers: Headers) => void;
155
+ };
156
+ req: import("frogbot/pieces").FrogBotRequest;
157
+ } & {
138
158
  state: TState;
139
159
  }): Promise<import("frogbot/pieces").TriggerEvent<TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : import("frogbot/pieces").PieceJSON>[]>;
160
+ reply?(args: {
161
+ input: import("zod").infer<TInput>;
162
+ options: {
163
+ signingSecret?: string | undefined;
164
+ };
165
+ client: {
166
+ request: ({ method, path, query, body, fromEmail, redirect, }: {
167
+ method: string;
168
+ path: string;
169
+ query?: {
170
+ [x: string]: string | string[] | undefined;
171
+ };
172
+ body?: unknown;
173
+ fromEmail?: string;
174
+ redirect?: RequestRedirect;
175
+ }) => Promise<unknown>;
176
+ authorize: (headers: Headers) => void;
177
+ };
178
+ req: import("frogbot/pieces").FrogBotRequest;
179
+ } & {
180
+ state: TState;
181
+ events: import("frogbot/pieces").TriggerEvent<TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : import("frogbot/pieces").PieceJSON>[];
182
+ }): Response | Promise<Response>;
140
183
  } & {
141
184
  slug: TSlug;
142
185
  }) => {
@@ -148,45 +191,34 @@ export declare const defineAction: <const TSlug extends string, TInput extends i
148
191
  sample?: (TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : import("frogbot/pieces").PieceJSON) | undefined;
149
192
  } & {
150
193
  type: "webhook";
151
- onEnable(args: import("frogbot/pieces").PieceRunArgs<import("zod").infer<TInput>, {
152
- signingSecret?: string | undefined;
153
- }, {
154
- request: ({ method, path, query, body, fromEmail, redirect, }: {
155
- method: string;
156
- path: string;
157
- query?: {
158
- [x: string]: string | string[] | undefined;
159
- };
160
- body?: unknown;
161
- fromEmail?: string;
162
- redirect?: RequestRedirect;
163
- }) => Promise<unknown>;
164
- authorize: (headers: Headers) => void;
165
- }> & {
194
+ onEnable(args: {
195
+ input: import("zod").infer<TInput>;
196
+ options: {
197
+ signingSecret?: string | undefined;
198
+ };
199
+ client: {
200
+ request: ({ method, path, query, body, fromEmail, redirect, }: {
201
+ method: string;
202
+ path: string;
203
+ query?: {
204
+ [x: string]: string | string[] | undefined;
205
+ };
206
+ body?: unknown;
207
+ fromEmail?: string;
208
+ redirect?: RequestRedirect;
209
+ }) => Promise<unknown>;
210
+ authorize: (headers: Headers) => void;
211
+ };
212
+ req: import("frogbot/pieces").FrogBotRequest;
213
+ } & {
166
214
  webhookUrl: string;
167
215
  }): Promise<TState>;
168
- onDisable(args: import("frogbot/pieces").PieceRunArgs<import("zod").infer<TInput>, {
169
- signingSecret?: string | undefined;
170
- }, {
171
- request: ({ method, path, query, body, fromEmail, redirect, }: {
172
- method: string;
173
- path: string;
174
- query?: {
175
- [x: string]: string | string[] | undefined;
176
- };
177
- body?: unknown;
178
- fromEmail?: string;
179
- redirect?: RequestRedirect;
180
- }) => Promise<unknown>;
181
- authorize: (headers: Headers) => void;
182
- }> & {
183
- state: TState;
184
- }): Promise<void>;
185
- renew?: {
186
- schedule: string;
187
- run(args: import("frogbot/pieces").PieceRunArgs<import("zod").infer<TInput>, {
216
+ onDisable(args: {
217
+ input: import("zod").infer<TInput>;
218
+ options: {
188
219
  signingSecret?: string | undefined;
189
- }, {
220
+ };
221
+ client: {
190
222
  request: ({ method, path, query, body, fromEmail, redirect, }: {
191
223
  method: string;
192
224
  path: string;
@@ -198,28 +230,82 @@ export declare const defineAction: <const TSlug extends string, TInput extends i
198
230
  redirect?: RequestRedirect;
199
231
  }) => Promise<unknown>;
200
232
  authorize: (headers: Headers) => void;
201
- }> & {
233
+ };
234
+ req: import("frogbot/pieces").FrogBotRequest;
235
+ } & {
236
+ state: TState;
237
+ }): Promise<void>;
238
+ renew?: {
239
+ schedule: string;
240
+ run(args: {
241
+ input: import("zod").infer<TInput>;
242
+ options: {
243
+ signingSecret?: string | undefined;
244
+ };
245
+ client: {
246
+ request: ({ method, path, query, body, fromEmail, redirect, }: {
247
+ method: string;
248
+ path: string;
249
+ query?: {
250
+ [x: string]: string | string[] | undefined;
251
+ };
252
+ body?: unknown;
253
+ fromEmail?: string;
254
+ redirect?: RequestRedirect;
255
+ }) => Promise<unknown>;
256
+ authorize: (headers: Headers) => void;
257
+ };
258
+ req: import("frogbot/pieces").FrogBotRequest;
259
+ } & {
202
260
  state: TState;
203
261
  webhookUrl: string;
204
262
  }): Promise<TState>;
205
263
  } | undefined;
206
- run(args: import("frogbot/pieces").PieceRunArgs<import("zod").infer<TInput>, {
207
- signingSecret?: string | undefined;
208
- }, {
209
- request: ({ method, path, query, body, fromEmail, redirect, }: {
210
- method: string;
211
- path: string;
212
- query?: {
213
- [x: string]: string | string[] | undefined;
214
- };
215
- body?: unknown;
216
- fromEmail?: string;
217
- redirect?: RequestRedirect;
218
- }) => Promise<unknown>;
219
- authorize: (headers: Headers) => void;
220
- }> & {
264
+ run(args: {
265
+ input: import("zod").infer<TInput>;
266
+ options: {
267
+ signingSecret?: string | undefined;
268
+ };
269
+ client: {
270
+ request: ({ method, path, query, body, fromEmail, redirect, }: {
271
+ method: string;
272
+ path: string;
273
+ query?: {
274
+ [x: string]: string | string[] | undefined;
275
+ };
276
+ body?: unknown;
277
+ fromEmail?: string;
278
+ redirect?: RequestRedirect;
279
+ }) => Promise<unknown>;
280
+ authorize: (headers: Headers) => void;
281
+ };
282
+ req: import("frogbot/pieces").FrogBotRequest;
283
+ } & {
221
284
  state: TState;
222
285
  }): Promise<import("frogbot/pieces").TriggerEvent<TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : import("frogbot/pieces").PieceJSON>[]>;
286
+ reply?(args: {
287
+ input: import("zod").infer<TInput>;
288
+ options: {
289
+ signingSecret?: string | undefined;
290
+ };
291
+ client: {
292
+ request: ({ method, path, query, body, fromEmail, redirect, }: {
293
+ method: string;
294
+ path: string;
295
+ query?: {
296
+ [x: string]: string | string[] | undefined;
297
+ };
298
+ body?: unknown;
299
+ fromEmail?: string;
300
+ redirect?: RequestRedirect;
301
+ }) => Promise<unknown>;
302
+ authorize: (headers: Headers) => void;
303
+ };
304
+ req: import("frogbot/pieces").FrogBotRequest;
305
+ } & {
306
+ state: TState;
307
+ events: import("frogbot/pieces").TriggerEvent<TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : import("frogbot/pieces").PieceJSON>[];
308
+ }): Response | Promise<Response>;
223
309
  } & {
224
310
  slug: TSlug;
225
311
  };
@@ -1 +1 @@
1
- {"version":3,"file":"define.d.ts","sourceRoot":"","sources":["../src/define.ts"],"names":[],"mappings":"AAKA,eAAO,MAAQ,YAAY;;;;;;aAI4K,CAAC;;;YAAiB,CAAC;iBAAwB,CAAC;gBAAsB,CAAC;;;;;;;;;;;aAAnE,CAAC;;;YAAiB,CAAC;iBAAwB,CAAC;gBAAsB,CAAC;;;;;GAJ7O,mBAAmB;;;;aAIuJ,CAAC;;;YAAiB,CAAC;iBAAwB,CAAC;gBAAsB,CAAC;;;;;;;;;aAAnE,CAAC;;;YAAiB,CAAC;iBAAwB,CAAC;gBAAsB,CAAC;;;IAJxN,oBAAoB;;;;;;;;;;;;;;;iBAIiI,CAAC;;;gBAAiB,CAAC;qBAAwB,CAAC;oBAAsB,CAAC;;;;;;;;;;;;iBAAnE,CAAC;;;gBAAiB,CAAC;qBAAwB,CAAC;oBAAsB,CAAC;;;;;;;;;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