@frogbotai/piece-pagerduty 0.26.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.
@@ -0,0 +1,180 @@
1
+ export declare const defineAction: <const TSlug extends string, TInput extends import("zod").ZodType, TOutput extends import("zod").ZodType | undefined = undefined, TResult = unknown>(action: TOutput extends unknown ? import("frogbot/pieces").PieceActionDefinition<TInput, TOutput, {
2
+ signingSecret?: string | undefined;
3
+ }, {
4
+ request: ({ method, path, query, body, fromEmail, }: {
5
+ method: string;
6
+ path: string;
7
+ query?: {
8
+ [x: string]: string | string[] | undefined;
9
+ };
10
+ body?: unknown;
11
+ fromEmail?: string;
12
+ }) => Promise<unknown>;
13
+ }, TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : TResult> & {
14
+ slug: TSlug;
15
+ } : never) => import("frogbot/pieces").PieceActionDefinition<TInput, TOutput, {
16
+ signingSecret?: string | undefined;
17
+ }, {
18
+ request: ({ method, path, query, body, fromEmail, }: {
19
+ method: string;
20
+ path: string;
21
+ query?: {
22
+ [x: string]: string | string[] | undefined;
23
+ };
24
+ body?: unknown;
25
+ fromEmail?: string;
26
+ }) => Promise<unknown>;
27
+ }, TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : TResult> & {
28
+ slug: TSlug;
29
+ }, defineWebhookTrigger: <const TSlug extends string, TInput extends import("zod").ZodType, TOutput extends import("zod").ZodType | undefined = undefined, TState extends import("frogbot/pieces").PieceResult = import("frogbot/pieces").PieceJSON>(trigger: {
30
+ slug: string;
31
+ label?: string;
32
+ description: string;
33
+ input: TInput;
34
+ output?: TOutput | undefined;
35
+ sample?: (TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : import("frogbot/pieces").PieceJSON) | undefined;
36
+ } & {
37
+ type: "webhook";
38
+ onEnable(args: import("frogbot/pieces").PieceRunArgs<import("zod").infer<TInput>, {
39
+ signingSecret?: string | undefined;
40
+ }, {
41
+ request: ({ method, path, query, body, fromEmail, }: {
42
+ method: string;
43
+ path: string;
44
+ query?: {
45
+ [x: string]: string | string[] | undefined;
46
+ };
47
+ body?: unknown;
48
+ fromEmail?: string;
49
+ }) => Promise<unknown>;
50
+ }> & {
51
+ webhookUrl: string;
52
+ }): Promise<TState>;
53
+ onDisable(args: import("frogbot/pieces").PieceRunArgs<import("zod").infer<TInput>, {
54
+ signingSecret?: string | undefined;
55
+ }, {
56
+ request: ({ method, path, query, body, fromEmail, }: {
57
+ method: string;
58
+ path: string;
59
+ query?: {
60
+ [x: string]: string | string[] | undefined;
61
+ };
62
+ body?: unknown;
63
+ fromEmail?: string;
64
+ }) => Promise<unknown>;
65
+ }> & {
66
+ state: TState;
67
+ }): Promise<void>;
68
+ renew?: {
69
+ schedule: string;
70
+ run(args: import("frogbot/pieces").PieceRunArgs<import("zod").infer<TInput>, {
71
+ signingSecret?: string | undefined;
72
+ }, {
73
+ request: ({ method, path, query, body, fromEmail, }: {
74
+ method: string;
75
+ path: string;
76
+ query?: {
77
+ [x: string]: string | string[] | undefined;
78
+ };
79
+ body?: unknown;
80
+ fromEmail?: string;
81
+ }) => Promise<unknown>;
82
+ }> & {
83
+ state: TState;
84
+ webhookUrl: string;
85
+ }): Promise<TState>;
86
+ } | undefined;
87
+ run(args: import("frogbot/pieces").PieceRunArgs<import("zod").infer<TInput>, {
88
+ signingSecret?: string | undefined;
89
+ }, {
90
+ request: ({ method, path, query, body, fromEmail, }: {
91
+ method: string;
92
+ path: string;
93
+ query?: {
94
+ [x: string]: string | string[] | undefined;
95
+ };
96
+ body?: unknown;
97
+ fromEmail?: string;
98
+ }) => Promise<unknown>;
99
+ }> & {
100
+ state: TState;
101
+ }): 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>[]>;
102
+ } & {
103
+ slug: TSlug;
104
+ }) => {
105
+ slug: string;
106
+ label?: string;
107
+ description: string;
108
+ input: TInput;
109
+ output?: TOutput | undefined;
110
+ sample?: (TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : import("frogbot/pieces").PieceJSON) | undefined;
111
+ } & {
112
+ type: "webhook";
113
+ onEnable(args: import("frogbot/pieces").PieceRunArgs<import("zod").infer<TInput>, {
114
+ signingSecret?: string | undefined;
115
+ }, {
116
+ request: ({ method, path, query, body, fromEmail, }: {
117
+ method: string;
118
+ path: string;
119
+ query?: {
120
+ [x: string]: string | string[] | undefined;
121
+ };
122
+ body?: unknown;
123
+ fromEmail?: string;
124
+ }) => Promise<unknown>;
125
+ }> & {
126
+ webhookUrl: string;
127
+ }): Promise<TState>;
128
+ onDisable(args: import("frogbot/pieces").PieceRunArgs<import("zod").infer<TInput>, {
129
+ signingSecret?: string | undefined;
130
+ }, {
131
+ request: ({ method, path, query, body, fromEmail, }: {
132
+ method: string;
133
+ path: string;
134
+ query?: {
135
+ [x: string]: string | string[] | undefined;
136
+ };
137
+ body?: unknown;
138
+ fromEmail?: string;
139
+ }) => Promise<unknown>;
140
+ }> & {
141
+ state: TState;
142
+ }): Promise<void>;
143
+ renew?: {
144
+ schedule: string;
145
+ run(args: import("frogbot/pieces").PieceRunArgs<import("zod").infer<TInput>, {
146
+ signingSecret?: string | undefined;
147
+ }, {
148
+ request: ({ method, path, query, body, fromEmail, }: {
149
+ method: string;
150
+ path: string;
151
+ query?: {
152
+ [x: string]: string | string[] | undefined;
153
+ };
154
+ body?: unknown;
155
+ fromEmail?: string;
156
+ }) => Promise<unknown>;
157
+ }> & {
158
+ state: TState;
159
+ webhookUrl: string;
160
+ }): Promise<TState>;
161
+ } | undefined;
162
+ run(args: import("frogbot/pieces").PieceRunArgs<import("zod").infer<TInput>, {
163
+ signingSecret?: string | undefined;
164
+ }, {
165
+ request: ({ method, path, query, body, fromEmail, }: {
166
+ method: string;
167
+ path: string;
168
+ query?: {
169
+ [x: string]: string | string[] | undefined;
170
+ };
171
+ body?: unknown;
172
+ fromEmail?: string;
173
+ }) => Promise<unknown>;
174
+ }> & {
175
+ state: TState;
176
+ }): 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>[]>;
177
+ } & {
178
+ slug: TSlug;
179
+ };
180
+ //# sourceMappingURL=define.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"define.d.ts","sourceRoot":"","sources":["../src/define.ts"],"names":[],"mappings":"AAKA,eAAO,MAAQ,YAAY;;;;;;aAImL,CAAC;;;YAAiB,CAAC;iBAAwB,CAAC;;;;;;;;;;aAA5C,CAAC;;;YAAiB,CAAC;iBAAwB,CAAC;;;;GAJ7N,oBAAoB;;;;;;;;;;;;;;;iBAI6J,CAAC;;;gBAAiB,CAAC;qBAAwB,CAAC;;;;;;;;;;;iBAA5C,CAAC;;;gBAAiB,CAAC;qBAAwB,CAAC;;;;;;;;;;;;;qBAA5C,CAAC;;;oBAAiB,CAAC;yBAAwB,CAAC;;;;;;;;;;;;;iBAA5C,CAAC;;;gBAAiB,CAAC;qBAAwB,CAAC;;;;;;;;;;;;;;;;;;;;;;iBAA5C,CAAC;;;gBAAiB,CAAC;qBAAwB,CAAC;;;;;;;;;;;iBAA5C,CAAC;;;gBAAiB,CAAC;qBAAwB,CAAC;;;;;;;;;;;;;qBAA5C,CAAC;;;oBAAiB,CAAC;yBAAwB,CAAC;;;;;;;;;;;;;iBAA5C,CAAC;;;gBAAiB,CAAC;qBAAwB,CAAC;;;;;;;CADvP,CAAC"}
package/dist/define.js ADDED
@@ -0,0 +1,3 @@
1
+ import { createPieceHelpers } from 'frogbot/pieces';
2
+ export const { defineAction, defineWebhookTrigger } = createPieceHelpers();
3
+ //# sourceMappingURL=define.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"define.js","sourceRoot":"","sources":["../src/define.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAKpD,MAAM,CAAC,MAAM,EAAE,YAAY,EAAE,oBAAoB,EAAE,GAAG,kBAAkB,EAGrE,CAAC"}