@frogbotai/piece-microsoft-teams 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
@@ -4,7 +4,7 @@ export declare const defineAction: <const TSlug extends string, TInput extends i
4
4
  botTenantId?: string | undefined;
5
5
  botApiUrl?: string | undefined;
6
6
  }, {
7
- baseUrl: string;
7
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
8
8
  request: <T>(path: string, schema: import("zod").ZodType<T>, options?: {
9
9
  method?: string;
10
10
  body?: unknown;
@@ -43,7 +43,7 @@ export declare const defineAction: <const TSlug extends string, TInput extends i
43
43
  botTenantId?: string | undefined;
44
44
  botApiUrl?: string | undefined;
45
45
  }, {
46
- baseUrl: string;
46
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
47
47
  request: <T>(path: string, schema: import("zod").ZodType<T>, options?: {
48
48
  method?: string;
49
49
  body?: unknown;
@@ -86,44 +86,49 @@ export declare const defineAction: <const TSlug extends string, TInput extends i
86
86
  } & {
87
87
  type: "app";
88
88
  event: string;
89
- run(args: import("frogbot").PieceRunArgs<import("zod").infer<TInput>, {
90
- botAppType: "MultiTenant" | "SingleTenant";
91
- botUsername: string;
92
- botTenantId?: string | undefined;
93
- botApiUrl?: string | undefined;
94
- }, {
95
- baseUrl: string;
96
- request: <T>(path: string, schema: import("zod").ZodType<T>, options?: {
97
- method?: string;
98
- body?: unknown;
99
- headers?: Record<string, string>;
100
- query?: Record<string, string | number>;
101
- signal?: AbortSignal;
102
- }) => Promise<T>;
103
- text(path: string, options?: {
104
- method?: string;
105
- body?: unknown;
106
- headers?: Record<string, string>;
107
- query?: Record<string, string | number>;
108
- signal?: AbortSignal;
109
- }): Promise<string>;
110
- list: <T>(path: string, schema: import("zod").ZodType<T>, options?: {
111
- method?: string;
112
- body?: unknown;
113
- headers?: Record<string, string>;
114
- query?: Record<string, string | number>;
115
- signal?: AbortSignal;
116
- }) => Promise<T[]>;
117
- page: <T>(path: string, schema: import("zod").ZodType<T>, options?: {
118
- method?: string;
119
- body?: unknown;
120
- headers?: Record<string, string>;
121
- query?: Record<string, string | number>;
122
- signal?: AbortSignal;
123
- }) => Promise<import("./schemas.js").GraphPage<T>>;
124
- meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
125
- authorize(target: URL, headers: Headers): void;
126
- }>): 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>[]>;
89
+ run(args: {
90
+ input: import("zod").infer<TInput>;
91
+ options: {
92
+ botAppType: "MultiTenant" | "SingleTenant";
93
+ botUsername: string;
94
+ botTenantId?: string | undefined;
95
+ botApiUrl?: string | undefined;
96
+ };
97
+ client: {
98
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
99
+ request: <T>(path: string, schema: import("zod").ZodType<T>, options?: {
100
+ method?: string;
101
+ body?: unknown;
102
+ headers?: Record<string, string>;
103
+ query?: Record<string, string | number>;
104
+ signal?: AbortSignal;
105
+ }) => Promise<T>;
106
+ text(path: string, options?: {
107
+ method?: string;
108
+ body?: unknown;
109
+ headers?: Record<string, string>;
110
+ query?: Record<string, string | number>;
111
+ signal?: AbortSignal;
112
+ }): Promise<string>;
113
+ list: <T>(path: string, schema: import("zod").ZodType<T>, options?: {
114
+ method?: string;
115
+ body?: unknown;
116
+ headers?: Record<string, string>;
117
+ query?: Record<string, string | number>;
118
+ signal?: AbortSignal;
119
+ }) => Promise<T[]>;
120
+ page: <T>(path: string, schema: import("zod").ZodType<T>, options?: {
121
+ method?: string;
122
+ body?: unknown;
123
+ headers?: Record<string, string>;
124
+ query?: Record<string, string | number>;
125
+ signal?: AbortSignal;
126
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
127
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
128
+ authorize(target: URL, headers: Headers): void;
129
+ };
130
+ req: import("frogbot").FrogBotRequest;
131
+ }): 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>[]>;
127
132
  } & {
128
133
  slug: TSlug;
129
134
  } : never) => {
@@ -136,48 +141,53 @@ export declare const defineAction: <const TSlug extends string, TInput extends i
136
141
  } & {
137
142
  type: "app";
138
143
  event: string;
139
- run(args: import("frogbot").PieceRunArgs<import("zod").infer<TInput>, {
140
- botAppType: "MultiTenant" | "SingleTenant";
141
- botUsername: string;
142
- botTenantId?: string | undefined;
143
- botApiUrl?: string | undefined;
144
- }, {
145
- baseUrl: string;
146
- request: <T>(path: string, schema: import("zod").ZodType<T>, options?: {
147
- method?: string;
148
- body?: unknown;
149
- headers?: Record<string, string>;
150
- query?: Record<string, string | number>;
151
- signal?: AbortSignal;
152
- }) => Promise<T>;
153
- text(path: string, options?: {
154
- method?: string;
155
- body?: unknown;
156
- headers?: Record<string, string>;
157
- query?: Record<string, string | number>;
158
- signal?: AbortSignal;
159
- }): Promise<string>;
160
- list: <T>(path: string, schema: import("zod").ZodType<T>, options?: {
161
- method?: string;
162
- body?: unknown;
163
- headers?: Record<string, string>;
164
- query?: Record<string, string | number>;
165
- signal?: AbortSignal;
166
- }) => Promise<T[]>;
167
- page: <T>(path: string, schema: import("zod").ZodType<T>, options?: {
168
- method?: string;
169
- body?: unknown;
170
- headers?: Record<string, string>;
171
- query?: Record<string, string | number>;
172
- signal?: AbortSignal;
173
- }) => Promise<import("./schemas.js").GraphPage<T>>;
174
- meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
175
- authorize(target: URL, headers: Headers): void;
176
- }>): 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>[]>;
144
+ run(args: {
145
+ input: import("zod").infer<TInput>;
146
+ options: {
147
+ botAppType: "MultiTenant" | "SingleTenant";
148
+ botUsername: string;
149
+ botTenantId?: string | undefined;
150
+ botApiUrl?: string | undefined;
151
+ };
152
+ client: {
153
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
154
+ request: <T>(path: string, schema: import("zod").ZodType<T>, options?: {
155
+ method?: string;
156
+ body?: unknown;
157
+ headers?: Record<string, string>;
158
+ query?: Record<string, string | number>;
159
+ signal?: AbortSignal;
160
+ }) => Promise<T>;
161
+ text(path: string, options?: {
162
+ method?: string;
163
+ body?: unknown;
164
+ headers?: Record<string, string>;
165
+ query?: Record<string, string | number>;
166
+ signal?: AbortSignal;
167
+ }): Promise<string>;
168
+ list: <T>(path: string, schema: import("zod").ZodType<T>, options?: {
169
+ method?: string;
170
+ body?: unknown;
171
+ headers?: Record<string, string>;
172
+ query?: Record<string, string | number>;
173
+ signal?: AbortSignal;
174
+ }) => Promise<T[]>;
175
+ page: <T>(path: string, schema: import("zod").ZodType<T>, options?: {
176
+ method?: string;
177
+ body?: unknown;
178
+ headers?: Record<string, string>;
179
+ query?: Record<string, string | number>;
180
+ signal?: AbortSignal;
181
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
182
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
183
+ authorize(target: URL, headers: Headers): void;
184
+ };
185
+ req: import("frogbot").FrogBotRequest;
186
+ }): 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>[]>;
177
187
  } & {
178
188
  slug: TSlug;
179
189
  }, defineCustomApiCall: (config: import("frogbot/pieces").CustomApiCallConfig<{
180
- baseUrl: string;
190
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
181
191
  request: <T>(path: string, schema: import("zod").ZodType<T>, options?: {
182
192
  method?: string;
183
193
  body?: unknown;
@@ -214,7 +224,7 @@ export declare const defineAction: <const TSlug extends string, TInput extends i
214
224
  botTenantId?: string | undefined;
215
225
  botApiUrl?: string | undefined;
216
226
  }, {
217
- baseUrl: string;
227
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
218
228
  request: <T>(path: string, schema: import("zod").ZodType<T>, options?: {
219
229
  method?: string;
220
230
  body?: unknown;
@@ -255,44 +265,49 @@ export declare const defineAction: <const TSlug extends string, TInput extends i
255
265
  } & {
256
266
  type: "polling";
257
267
  schedule?: string;
258
- run(args: import("frogbot").PieceRunArgs<import("zod").infer<TInput>, {
259
- botAppType: "MultiTenant" | "SingleTenant";
260
- botUsername: string;
261
- botTenantId?: string | undefined;
262
- botApiUrl?: string | undefined;
263
- }, {
264
- baseUrl: string;
265
- request: <T>(path: string, schema: import("zod").ZodType<T>, options?: {
266
- method?: string;
267
- body?: unknown;
268
- headers?: Record<string, string>;
269
- query?: Record<string, string | number>;
270
- signal?: AbortSignal;
271
- }) => Promise<T>;
272
- text(path: string, options?: {
273
- method?: string;
274
- body?: unknown;
275
- headers?: Record<string, string>;
276
- query?: Record<string, string | number>;
277
- signal?: AbortSignal;
278
- }): Promise<string>;
279
- list: <T>(path: string, schema: import("zod").ZodType<T>, options?: {
280
- method?: string;
281
- body?: unknown;
282
- headers?: Record<string, string>;
283
- query?: Record<string, string | number>;
284
- signal?: AbortSignal;
285
- }) => Promise<T[]>;
286
- page: <T>(path: string, schema: import("zod").ZodType<T>, options?: {
287
- method?: string;
288
- body?: unknown;
289
- headers?: Record<string, string>;
290
- query?: Record<string, string | number>;
291
- signal?: AbortSignal;
292
- }) => Promise<import("./schemas.js").GraphPage<T>>;
293
- meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
294
- authorize(target: URL, headers: Headers): void;
295
- }> & {
268
+ run(args: {
269
+ input: import("zod").infer<TInput>;
270
+ options: {
271
+ botAppType: "MultiTenant" | "SingleTenant";
272
+ botUsername: string;
273
+ botTenantId?: string | undefined;
274
+ botApiUrl?: string | undefined;
275
+ };
276
+ client: {
277
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
278
+ request: <T>(path: string, schema: import("zod").ZodType<T>, options?: {
279
+ method?: string;
280
+ body?: unknown;
281
+ headers?: Record<string, string>;
282
+ query?: Record<string, string | number>;
283
+ signal?: AbortSignal;
284
+ }) => Promise<T>;
285
+ text(path: string, options?: {
286
+ method?: string;
287
+ body?: unknown;
288
+ headers?: Record<string, string>;
289
+ query?: Record<string, string | number>;
290
+ signal?: AbortSignal;
291
+ }): Promise<string>;
292
+ list: <T>(path: string, schema: import("zod").ZodType<T>, options?: {
293
+ method?: string;
294
+ body?: unknown;
295
+ headers?: Record<string, string>;
296
+ query?: Record<string, string | number>;
297
+ signal?: AbortSignal;
298
+ }) => Promise<T[]>;
299
+ page: <T>(path: string, schema: import("zod").ZodType<T>, options?: {
300
+ method?: string;
301
+ body?: unknown;
302
+ headers?: Record<string, string>;
303
+ query?: Record<string, string | number>;
304
+ signal?: AbortSignal;
305
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
306
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
307
+ authorize(target: URL, headers: Headers): void;
308
+ };
309
+ req: import("frogbot").FrogBotRequest;
310
+ } & {
296
311
  cursor?: import("frogbot").PieceJSON | undefined;
297
312
  }): Promise<{
298
313
  events: (TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : import("frogbot").PieceJSON)[];
@@ -310,44 +325,49 @@ export declare const defineAction: <const TSlug extends string, TInput extends i
310
325
  } & {
311
326
  type: "polling";
312
327
  schedule?: string;
313
- run(args: import("frogbot").PieceRunArgs<import("zod").infer<TInput>, {
314
- botAppType: "MultiTenant" | "SingleTenant";
315
- botUsername: string;
316
- botTenantId?: string | undefined;
317
- botApiUrl?: string | undefined;
318
- }, {
319
- baseUrl: string;
320
- request: <T>(path: string, schema: import("zod").ZodType<T>, options?: {
321
- method?: string;
322
- body?: unknown;
323
- headers?: Record<string, string>;
324
- query?: Record<string, string | number>;
325
- signal?: AbortSignal;
326
- }) => Promise<T>;
327
- text(path: string, options?: {
328
- method?: string;
329
- body?: unknown;
330
- headers?: Record<string, string>;
331
- query?: Record<string, string | number>;
332
- signal?: AbortSignal;
333
- }): Promise<string>;
334
- list: <T>(path: string, schema: import("zod").ZodType<T>, options?: {
335
- method?: string;
336
- body?: unknown;
337
- headers?: Record<string, string>;
338
- query?: Record<string, string | number>;
339
- signal?: AbortSignal;
340
- }) => Promise<T[]>;
341
- page: <T>(path: string, schema: import("zod").ZodType<T>, options?: {
342
- method?: string;
343
- body?: unknown;
344
- headers?: Record<string, string>;
345
- query?: Record<string, string | number>;
346
- signal?: AbortSignal;
347
- }) => Promise<import("./schemas.js").GraphPage<T>>;
348
- meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
349
- authorize(target: URL, headers: Headers): void;
350
- }> & {
328
+ run(args: {
329
+ input: import("zod").infer<TInput>;
330
+ options: {
331
+ botAppType: "MultiTenant" | "SingleTenant";
332
+ botUsername: string;
333
+ botTenantId?: string | undefined;
334
+ botApiUrl?: string | undefined;
335
+ };
336
+ client: {
337
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
338
+ request: <T>(path: string, schema: import("zod").ZodType<T>, options?: {
339
+ method?: string;
340
+ body?: unknown;
341
+ headers?: Record<string, string>;
342
+ query?: Record<string, string | number>;
343
+ signal?: AbortSignal;
344
+ }) => Promise<T>;
345
+ text(path: string, options?: {
346
+ method?: string;
347
+ body?: unknown;
348
+ headers?: Record<string, string>;
349
+ query?: Record<string, string | number>;
350
+ signal?: AbortSignal;
351
+ }): Promise<string>;
352
+ list: <T>(path: string, schema: import("zod").ZodType<T>, options?: {
353
+ method?: string;
354
+ body?: unknown;
355
+ headers?: Record<string, string>;
356
+ query?: Record<string, string | number>;
357
+ signal?: AbortSignal;
358
+ }) => Promise<T[]>;
359
+ page: <T>(path: string, schema: import("zod").ZodType<T>, options?: {
360
+ method?: string;
361
+ body?: unknown;
362
+ headers?: Record<string, string>;
363
+ query?: Record<string, string | number>;
364
+ signal?: AbortSignal;
365
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
366
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
367
+ authorize(target: URL, headers: Headers): void;
368
+ };
369
+ req: import("frogbot").FrogBotRequest;
370
+ } & {
351
371
  cursor?: import("frogbot").PieceJSON | undefined;
352
372
  }): Promise<{
353
373
  events: (TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : import("frogbot").PieceJSON)[];
@@ -1 +1 @@
1
- {"version":3,"file":"define.d.ts","sourceRoot":"","sources":["../src/define.ts"],"names":[],"mappings":"AAKA,eAAO,MAAQ,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAE,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAE,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAE,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACrB,CAAC"}
1
+ {"version":3,"file":"define.d.ts","sourceRoot":"","sources":["../src/define.ts"],"names":[],"mappings":"AAKA,eAAO,MAAQ,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAE,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAE,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAE,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACrB,CAAC"}