@frogbotai/piece-stripe 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.
@@ -0,0 +1,210 @@
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, Record<string, never>, {
2
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
3
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
4
+ status: number;
5
+ headers: {
6
+ [k: string]: string;
7
+ };
8
+ body: import("./client.js").StripeResponse;
9
+ }>;
10
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
11
+ value: string;
12
+ label: string;
13
+ }[]>;
14
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
15
+ unsubscribe(webhookId: string): Promise<void>;
16
+ }, TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : TResult> & {
17
+ slug: TSlug;
18
+ } : never) => import("frogbot/pieces").PieceActionDefinition<TInput, TOutput, Record<string, never>, {
19
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
20
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
21
+ status: number;
22
+ headers: {
23
+ [k: string]: string;
24
+ };
25
+ body: import("./client.js").StripeResponse;
26
+ }>;
27
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
28
+ value: string;
29
+ label: string;
30
+ }[]>;
31
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
32
+ unsubscribe(webhookId: string): Promise<void>;
33
+ }, TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : TResult> & {
34
+ slug: TSlug;
35
+ }, 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: {
36
+ slug: string;
37
+ label?: string;
38
+ description: string;
39
+ input: TInput;
40
+ output?: TOutput | undefined;
41
+ sample?: (TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : import("frogbot/pieces").PieceJSON) | undefined;
42
+ } & {
43
+ type: "webhook";
44
+ onEnable(args: import("frogbot/pieces").PieceRunArgs<import("zod").infer<TInput>, Record<string, never>, {
45
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
46
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
47
+ status: number;
48
+ headers: {
49
+ [k: string]: string;
50
+ };
51
+ body: import("./client.js").StripeResponse;
52
+ }>;
53
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
54
+ value: string;
55
+ label: string;
56
+ }[]>;
57
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
58
+ unsubscribe(webhookId: string): Promise<void>;
59
+ }> & {
60
+ webhookUrl: string;
61
+ }): Promise<TState>;
62
+ onDisable(args: import("frogbot/pieces").PieceRunArgs<import("zod").infer<TInput>, Record<string, never>, {
63
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
64
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
65
+ status: number;
66
+ headers: {
67
+ [k: string]: string;
68
+ };
69
+ body: import("./client.js").StripeResponse;
70
+ }>;
71
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
72
+ value: string;
73
+ label: string;
74
+ }[]>;
75
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
76
+ unsubscribe(webhookId: string): Promise<void>;
77
+ }> & {
78
+ state: TState;
79
+ }): Promise<void>;
80
+ renew?: {
81
+ schedule: string;
82
+ run(args: import("frogbot/pieces").PieceRunArgs<import("zod").infer<TInput>, Record<string, never>, {
83
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
84
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
85
+ status: number;
86
+ headers: {
87
+ [k: string]: string;
88
+ };
89
+ body: import("./client.js").StripeResponse;
90
+ }>;
91
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
92
+ value: string;
93
+ label: string;
94
+ }[]>;
95
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
96
+ unsubscribe(webhookId: string): Promise<void>;
97
+ }> & {
98
+ state: TState;
99
+ webhookUrl: string;
100
+ }): Promise<TState>;
101
+ } | undefined;
102
+ run(args: import("frogbot/pieces").PieceRunArgs<import("zod").infer<TInput>, Record<string, never>, {
103
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
104
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
105
+ status: number;
106
+ headers: {
107
+ [k: string]: string;
108
+ };
109
+ body: import("./client.js").StripeResponse;
110
+ }>;
111
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
112
+ value: string;
113
+ label: string;
114
+ }[]>;
115
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
116
+ unsubscribe(webhookId: string): Promise<void>;
117
+ }> & {
118
+ state: TState;
119
+ }): 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>[]>;
120
+ } & {
121
+ slug: TSlug;
122
+ }) => {
123
+ slug: string;
124
+ label?: string;
125
+ description: string;
126
+ input: TInput;
127
+ output?: TOutput | undefined;
128
+ sample?: (TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : import("frogbot/pieces").PieceJSON) | undefined;
129
+ } & {
130
+ type: "webhook";
131
+ onEnable(args: import("frogbot/pieces").PieceRunArgs<import("zod").infer<TInput>, Record<string, never>, {
132
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
133
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
134
+ status: number;
135
+ headers: {
136
+ [k: string]: string;
137
+ };
138
+ body: import("./client.js").StripeResponse;
139
+ }>;
140
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
141
+ value: string;
142
+ label: string;
143
+ }[]>;
144
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
145
+ unsubscribe(webhookId: string): Promise<void>;
146
+ }> & {
147
+ webhookUrl: string;
148
+ }): Promise<TState>;
149
+ onDisable(args: import("frogbot/pieces").PieceRunArgs<import("zod").infer<TInput>, Record<string, never>, {
150
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
151
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
152
+ status: number;
153
+ headers: {
154
+ [k: string]: string;
155
+ };
156
+ body: import("./client.js").StripeResponse;
157
+ }>;
158
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
159
+ value: string;
160
+ label: string;
161
+ }[]>;
162
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
163
+ unsubscribe(webhookId: string): Promise<void>;
164
+ }> & {
165
+ state: TState;
166
+ }): Promise<void>;
167
+ renew?: {
168
+ schedule: string;
169
+ run(args: import("frogbot/pieces").PieceRunArgs<import("zod").infer<TInput>, Record<string, never>, {
170
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
171
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
172
+ status: number;
173
+ headers: {
174
+ [k: string]: string;
175
+ };
176
+ body: import("./client.js").StripeResponse;
177
+ }>;
178
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
179
+ value: string;
180
+ label: string;
181
+ }[]>;
182
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
183
+ unsubscribe(webhookId: string): Promise<void>;
184
+ }> & {
185
+ state: TState;
186
+ webhookUrl: string;
187
+ }): Promise<TState>;
188
+ } | undefined;
189
+ run(args: import("frogbot/pieces").PieceRunArgs<import("zod").infer<TInput>, Record<string, never>, {
190
+ request: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<import("./client.js").StripeResponse>;
191
+ requestResponse: (path: string, method?: "DELETE" | "GET" | "POST", values?: Record<string, unknown>) => Promise<{
192
+ status: number;
193
+ headers: {
194
+ [k: string]: string;
195
+ };
196
+ body: import("./client.js").StripeResponse;
197
+ }>;
198
+ options(resource: string, label: (item: import("./client.js").StripeResponse) => string): Promise<{
199
+ value: string;
200
+ label: string;
201
+ }[]>;
202
+ subscribe(event: string, webhookUrl: string): Promise<import("./client.js").StripeResponse>;
203
+ unsubscribe(webhookId: string): Promise<void>;
204
+ }> & {
205
+ state: TState;
206
+ }): 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>[]>;
207
+ } & {
208
+ slug: TSlug;
209
+ };
210
+ //# sourceMappingURL=define.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"define.d.ts","sourceRoot":"","sources":["../src/define.ts"],"names":[],"mappings":"AAIA,eAAO,MAAQ,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAE,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAuC,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;AAIpD,MAAM,CAAC,MAAM,EAAE,YAAY,EAAE,oBAAoB,EAAE,GAAG,kBAAkB,EAAgB,CAAC"}