@frogbotai/piece-microsoft-teams 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,344 @@
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").PieceActionDefinition<TInput, TOutput, {
2
+ botAppType: "MultiTenant" | "SingleTenant";
3
+ botUsername: string;
4
+ botTenantId?: string | undefined;
5
+ botApiUrl?: string | undefined;
6
+ }, {
7
+ baseUrl: string;
8
+ request: <T>(path: string, schema: import("zod").ZodType<T>, options?: {
9
+ method?: string;
10
+ body?: unknown;
11
+ headers?: Record<string, string>;
12
+ query?: Record<string, string | number>;
13
+ signal?: AbortSignal;
14
+ }) => Promise<T>;
15
+ text(path: string, options?: {
16
+ method?: string;
17
+ body?: unknown;
18
+ headers?: Record<string, string>;
19
+ query?: Record<string, string | number>;
20
+ signal?: AbortSignal;
21
+ }): Promise<string>;
22
+ list: <T>(path: string, schema: import("zod").ZodType<T>, options?: {
23
+ method?: string;
24
+ body?: unknown;
25
+ headers?: Record<string, string>;
26
+ query?: Record<string, string | number>;
27
+ signal?: AbortSignal;
28
+ }) => Promise<T[]>;
29
+ page: <T>(path: string, schema: import("zod").ZodType<T>, options?: {
30
+ method?: string;
31
+ body?: unknown;
32
+ headers?: Record<string, string>;
33
+ query?: Record<string, string | number>;
34
+ signal?: AbortSignal;
35
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
36
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
37
+ custom<T>(path: string, schema: import("zod").ZodType<T>, options?: {
38
+ method?: string;
39
+ body?: unknown;
40
+ headers?: Record<string, string>;
41
+ query?: Record<string, string | number>;
42
+ signal?: AbortSignal;
43
+ }): Promise<{
44
+ status: number;
45
+ body: T;
46
+ }>;
47
+ }, TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : TResult> & {
48
+ slug: TSlug;
49
+ } : never) => import("frogbot").PieceActionDefinition<TInput, TOutput, {
50
+ botAppType: "MultiTenant" | "SingleTenant";
51
+ botUsername: string;
52
+ botTenantId?: string | undefined;
53
+ botApiUrl?: string | undefined;
54
+ }, {
55
+ baseUrl: string;
56
+ request: <T>(path: string, schema: import("zod").ZodType<T>, options?: {
57
+ method?: string;
58
+ body?: unknown;
59
+ headers?: Record<string, string>;
60
+ query?: Record<string, string | number>;
61
+ signal?: AbortSignal;
62
+ }) => Promise<T>;
63
+ text(path: string, options?: {
64
+ method?: string;
65
+ body?: unknown;
66
+ headers?: Record<string, string>;
67
+ query?: Record<string, string | number>;
68
+ signal?: AbortSignal;
69
+ }): Promise<string>;
70
+ list: <T>(path: string, schema: import("zod").ZodType<T>, options?: {
71
+ method?: string;
72
+ body?: unknown;
73
+ headers?: Record<string, string>;
74
+ query?: Record<string, string | number>;
75
+ signal?: AbortSignal;
76
+ }) => Promise<T[]>;
77
+ page: <T>(path: string, schema: import("zod").ZodType<T>, options?: {
78
+ method?: string;
79
+ body?: unknown;
80
+ headers?: Record<string, string>;
81
+ query?: Record<string, string | number>;
82
+ signal?: AbortSignal;
83
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
84
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
85
+ custom<T>(path: string, schema: import("zod").ZodType<T>, options?: {
86
+ method?: string;
87
+ body?: unknown;
88
+ headers?: Record<string, string>;
89
+ query?: Record<string, string | number>;
90
+ signal?: AbortSignal;
91
+ }): Promise<{
92
+ status: number;
93
+ body: T;
94
+ }>;
95
+ }, TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : TResult> & {
96
+ slug: TSlug;
97
+ }, defineAppTrigger: <const TSlug extends string, TInput extends import("zod").ZodType, TOutput extends import("zod").ZodType | undefined = undefined>(trigger: TOutput extends unknown ? {
98
+ slug: string;
99
+ label?: string;
100
+ description: string;
101
+ input: TInput;
102
+ output?: TOutput | undefined;
103
+ sample?: (TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : import("frogbot").PieceJSON) | undefined;
104
+ } & {
105
+ type: "app";
106
+ event: string;
107
+ run(args: import("frogbot").PieceRunArgs<import("zod").infer<TInput>, {
108
+ botAppType: "MultiTenant" | "SingleTenant";
109
+ botUsername: string;
110
+ botTenantId?: string | undefined;
111
+ botApiUrl?: string | undefined;
112
+ }, {
113
+ baseUrl: string;
114
+ request: <T>(path: string, schema: import("zod").ZodType<T>, options?: {
115
+ method?: string;
116
+ body?: unknown;
117
+ headers?: Record<string, string>;
118
+ query?: Record<string, string | number>;
119
+ signal?: AbortSignal;
120
+ }) => Promise<T>;
121
+ text(path: string, options?: {
122
+ method?: string;
123
+ body?: unknown;
124
+ headers?: Record<string, string>;
125
+ query?: Record<string, string | number>;
126
+ signal?: AbortSignal;
127
+ }): Promise<string>;
128
+ list: <T>(path: string, schema: import("zod").ZodType<T>, options?: {
129
+ method?: string;
130
+ body?: unknown;
131
+ headers?: Record<string, string>;
132
+ query?: Record<string, string | number>;
133
+ signal?: AbortSignal;
134
+ }) => Promise<T[]>;
135
+ page: <T>(path: string, schema: import("zod").ZodType<T>, options?: {
136
+ method?: string;
137
+ body?: unknown;
138
+ headers?: Record<string, string>;
139
+ query?: Record<string, string | number>;
140
+ signal?: AbortSignal;
141
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
142
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
143
+ custom<T>(path: string, schema: import("zod").ZodType<T>, options?: {
144
+ method?: string;
145
+ body?: unknown;
146
+ headers?: Record<string, string>;
147
+ query?: Record<string, string | number>;
148
+ signal?: AbortSignal;
149
+ }): Promise<{
150
+ status: number;
151
+ body: T;
152
+ }>;
153
+ }>): Promise<import("frogbot").TriggerEvent<TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : import("frogbot").PieceJSON>[]>;
154
+ } & {
155
+ slug: TSlug;
156
+ } : never) => {
157
+ slug: string;
158
+ label?: string;
159
+ description: string;
160
+ input: TInput;
161
+ output?: TOutput | undefined;
162
+ sample?: (TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : import("frogbot").PieceJSON) | undefined;
163
+ } & {
164
+ type: "app";
165
+ event: string;
166
+ run(args: import("frogbot").PieceRunArgs<import("zod").infer<TInput>, {
167
+ botAppType: "MultiTenant" | "SingleTenant";
168
+ botUsername: string;
169
+ botTenantId?: string | undefined;
170
+ botApiUrl?: string | undefined;
171
+ }, {
172
+ baseUrl: string;
173
+ request: <T>(path: string, schema: import("zod").ZodType<T>, options?: {
174
+ method?: string;
175
+ body?: unknown;
176
+ headers?: Record<string, string>;
177
+ query?: Record<string, string | number>;
178
+ signal?: AbortSignal;
179
+ }) => Promise<T>;
180
+ text(path: string, options?: {
181
+ method?: string;
182
+ body?: unknown;
183
+ headers?: Record<string, string>;
184
+ query?: Record<string, string | number>;
185
+ signal?: AbortSignal;
186
+ }): Promise<string>;
187
+ list: <T>(path: string, schema: import("zod").ZodType<T>, options?: {
188
+ method?: string;
189
+ body?: unknown;
190
+ headers?: Record<string, string>;
191
+ query?: Record<string, string | number>;
192
+ signal?: AbortSignal;
193
+ }) => Promise<T[]>;
194
+ page: <T>(path: string, schema: import("zod").ZodType<T>, options?: {
195
+ method?: string;
196
+ body?: unknown;
197
+ headers?: Record<string, string>;
198
+ query?: Record<string, string | number>;
199
+ signal?: AbortSignal;
200
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
201
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
202
+ custom<T>(path: string, schema: import("zod").ZodType<T>, options?: {
203
+ method?: string;
204
+ body?: unknown;
205
+ headers?: Record<string, string>;
206
+ query?: Record<string, string | number>;
207
+ signal?: AbortSignal;
208
+ }): Promise<{
209
+ status: number;
210
+ body: T;
211
+ }>;
212
+ }>): Promise<import("frogbot").TriggerEvent<TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : import("frogbot").PieceJSON>[]>;
213
+ } & {
214
+ slug: TSlug;
215
+ }, definePollingTrigger: <const TSlug extends string, TInput extends import("zod").ZodType, TOutput extends import("zod").ZodType | undefined = undefined>(trigger: TOutput extends unknown ? {
216
+ slug: string;
217
+ label?: string;
218
+ description: string;
219
+ input: TInput;
220
+ output?: TOutput | undefined;
221
+ sample?: (TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : import("frogbot").PieceJSON) | undefined;
222
+ } & {
223
+ type: "polling";
224
+ schedule?: string;
225
+ run(args: import("frogbot").PieceRunArgs<import("zod").infer<TInput>, {
226
+ botAppType: "MultiTenant" | "SingleTenant";
227
+ botUsername: string;
228
+ botTenantId?: string | undefined;
229
+ botApiUrl?: string | undefined;
230
+ }, {
231
+ baseUrl: string;
232
+ request: <T>(path: string, schema: import("zod").ZodType<T>, options?: {
233
+ method?: string;
234
+ body?: unknown;
235
+ headers?: Record<string, string>;
236
+ query?: Record<string, string | number>;
237
+ signal?: AbortSignal;
238
+ }) => Promise<T>;
239
+ text(path: string, options?: {
240
+ method?: string;
241
+ body?: unknown;
242
+ headers?: Record<string, string>;
243
+ query?: Record<string, string | number>;
244
+ signal?: AbortSignal;
245
+ }): Promise<string>;
246
+ list: <T>(path: string, schema: import("zod").ZodType<T>, options?: {
247
+ method?: string;
248
+ body?: unknown;
249
+ headers?: Record<string, string>;
250
+ query?: Record<string, string | number>;
251
+ signal?: AbortSignal;
252
+ }) => Promise<T[]>;
253
+ page: <T>(path: string, schema: import("zod").ZodType<T>, options?: {
254
+ method?: string;
255
+ body?: unknown;
256
+ headers?: Record<string, string>;
257
+ query?: Record<string, string | number>;
258
+ signal?: AbortSignal;
259
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
260
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
261
+ custom<T>(path: string, schema: import("zod").ZodType<T>, options?: {
262
+ method?: string;
263
+ body?: unknown;
264
+ headers?: Record<string, string>;
265
+ query?: Record<string, string | number>;
266
+ signal?: AbortSignal;
267
+ }): Promise<{
268
+ status: number;
269
+ body: T;
270
+ }>;
271
+ }> & {
272
+ cursor?: import("frogbot").PieceJSON | undefined;
273
+ }): Promise<{
274
+ events: (TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : import("frogbot").PieceJSON)[];
275
+ cursor?: import("frogbot").PieceJSON | undefined;
276
+ }>;
277
+ } & {
278
+ slug: TSlug;
279
+ } : never) => {
280
+ slug: string;
281
+ label?: string;
282
+ description: string;
283
+ input: TInput;
284
+ output?: TOutput | undefined;
285
+ sample?: (TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : import("frogbot").PieceJSON) | undefined;
286
+ } & {
287
+ type: "polling";
288
+ schedule?: string;
289
+ run(args: import("frogbot").PieceRunArgs<import("zod").infer<TInput>, {
290
+ botAppType: "MultiTenant" | "SingleTenant";
291
+ botUsername: string;
292
+ botTenantId?: string | undefined;
293
+ botApiUrl?: string | undefined;
294
+ }, {
295
+ baseUrl: string;
296
+ request: <T>(path: string, schema: import("zod").ZodType<T>, options?: {
297
+ method?: string;
298
+ body?: unknown;
299
+ headers?: Record<string, string>;
300
+ query?: Record<string, string | number>;
301
+ signal?: AbortSignal;
302
+ }) => Promise<T>;
303
+ text(path: string, options?: {
304
+ method?: string;
305
+ body?: unknown;
306
+ headers?: Record<string, string>;
307
+ query?: Record<string, string | number>;
308
+ signal?: AbortSignal;
309
+ }): Promise<string>;
310
+ list: <T>(path: string, schema: import("zod").ZodType<T>, options?: {
311
+ method?: string;
312
+ body?: unknown;
313
+ headers?: Record<string, string>;
314
+ query?: Record<string, string | number>;
315
+ signal?: AbortSignal;
316
+ }) => Promise<T[]>;
317
+ page: <T>(path: string, schema: import("zod").ZodType<T>, options?: {
318
+ method?: string;
319
+ body?: unknown;
320
+ headers?: Record<string, string>;
321
+ query?: Record<string, string | number>;
322
+ signal?: AbortSignal;
323
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
324
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
325
+ custom<T>(path: string, schema: import("zod").ZodType<T>, options?: {
326
+ method?: string;
327
+ body?: unknown;
328
+ headers?: Record<string, string>;
329
+ query?: Record<string, string | number>;
330
+ signal?: AbortSignal;
331
+ }): Promise<{
332
+ status: number;
333
+ body: T;
334
+ }>;
335
+ }> & {
336
+ cursor?: import("frogbot").PieceJSON | undefined;
337
+ }): Promise<{
338
+ events: (TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : import("frogbot").PieceJSON)[];
339
+ cursor?: import("frogbot").PieceJSON | undefined;
340
+ }>;
341
+ } & {
342
+ slug: TSlug;
343
+ };
344
+ //# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAE,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAE,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGhE,CAAC"}
package/dist/define.js ADDED
@@ -0,0 +1,3 @@
1
+ import { createPieceHelpers } from 'frogbot/pieces';
2
+ export const { defineAction, defineAppTrigger, definePollingTrigger } = 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,gBAAgB,EAAE,oBAAoB,EAAE,GAAG,kBAAkB,EAGvF,CAAC"}