@frogbotai/piece-microsoft-teams 0.22.0 → 0.24.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/index.d.ts CHANGED
@@ -1,38 +1,3147 @@
1
- import { type PieceFactoryConfig } from 'frogbot/pieces';
2
- export declare const microsoftTeamsActions: readonly ["microsoft_teams_create_channel", "microsoft_teams_send_channel_message", "microsoft_teams_send_chat_message", "microsoft_teams_reply_to_channel_message", "microsoft_teams_create_chat_and_send_message", "microsoft_teams_create_private_channel", "microsoft_teams_get_chat_message", "microsoft_teams_get_channel_message", "microsoft_teams_find_channel", "microsoft_teams_find_team_member"];
3
- export declare const microsoftTeamsScopes: readonly ["openid", "email", "profile", "offline_access", "User.Read", "Channel.Create", "Channel.ReadBasic.All", "ChannelMessage.Send", "Team.ReadBasic.All", "Chat.ReadWrite", "ChannelMessage.Read.All", "TeamMember.Read.All", "User.ReadBasic.All", "Presence.Read.All", "OnlineMeetingTranscript.Read.All", "OnlineMeetingRecording.Read.All"];
4
- export declare function createMicrosoftTeams(config?: PieceFactoryConfig): import("frogbot/pieces").Piece & {
5
- /** Create Channel: Create a new channel in Microsoft Teams. */
6
- microsoftTeamsCreateChannel: import("node_modules/frogbot/dist/tools/types").AnyTool;
7
- /** Send Channel Message: Sends a message to a teams's channel. */
8
- microsoftTeamsSendChannelMessage: import("node_modules/frogbot/dist/tools/types").AnyTool;
9
- /** Send Chat Message: Sends a message in an existing chat. */
10
- microsoftTeamsSendChatMessage: import("node_modules/frogbot/dist/tools/types").AnyTool;
11
- /** Reply to Channel Message: Post a reply to an existing channel message. */
12
- microsoftTeamsReplyToChannelMessage: import("node_modules/frogbot/dist/tools/types").AnyTool;
13
- /** Create Chat & Send Message: Start a new chat and send an initial message. */
14
- microsoftTeamsCreateChatAndSendMessage: import("node_modules/frogbot/dist/tools/types").AnyTool;
15
- /** Create Private Channel: Create a new private channel in a team. */
16
- microsoftTeamsCreatePrivateChannel: import("node_modules/frogbot/dist/tools/types").AnyTool;
17
- /** Get Chat Message: Fetch a specific chat message by chat and message ID. */
18
- microsoftTeamsGetChatMessage: import("node_modules/frogbot/dist/tools/types").AnyTool;
19
- /** Delete Chat Message: Soft-Deletes a message in chat.You can only delete messages you sent. */
20
- microsoftTeamsDeleteChatMessage: import("node_modules/frogbot/dist/tools/types").AnyTool;
21
- /** Get Channel Message: Fetch a specific channel message by team, channel, and message ID (optionally a reply). */
22
- microsoftTeamsGetChannelMessage: import("node_modules/frogbot/dist/tools/types").AnyTool;
23
- /** Find Channel: Finds channels by name. */
24
- microsoftTeamsFindChannel: import("node_modules/frogbot/dist/tools/types").AnyTool;
25
- /** Find Team Member: Finds a team member by email or display name. */
26
- microsoftTeamsFindTeamMember: import("node_modules/frogbot/dist/tools/types").AnyTool;
27
- /** Get Meeting Transcript: Retrieves transcripts for a Teams meeting. Provide a Transcript to fetch its text content; omit it to list all available transcripts. */
28
- microsoftTeamsGetMeetingTranscript: import("node_modules/frogbot/dist/tools/types").AnyTool;
29
- /** Get Meeting Recording: Retrieves recordings for a Teams meeting. Provide a Recording to fetch its metadata; omit it to list all available recordings. */
30
- microsoftTeamsGetMeetingRecording: import("node_modules/frogbot/dist/tools/types").AnyTool;
31
- /** Request Approval in Channel: Send approval message to a channel and then wait until the message is approved or disapproved */
32
- requestApprovalInChannel: import("node_modules/frogbot/dist/tools/types").AnyTool;
33
- /** Request Approval from a User: Send approval message to a user and then wait until the message is approved or disapproved */
34
- requestApprovalDirectMessage: import("node_modules/frogbot/dist/tools/types").AnyTool;
35
- /** Custom API Call: Make a custom API call to a specific endpoint */
36
- customApiCall: import("node_modules/frogbot/dist/tools/types").AnyTool;
37
- };
1
+ import { z } from 'zod';
2
+ import { createMicrosoftTeamsClient } from './client.js';
3
+ import { microsoftTeamsEnvironment, microsoftTeamsScopes } from './config.js';
4
+ export declare const microsoftTeamsActions: string[];
5
+ export declare const microsoftTeamsTriggers: string[];
6
+ export { microsoftTeamsScopes };
7
+ export declare function defineMicrosoftTeams(environment?: z.input<typeof microsoftTeamsEnvironment>): import("frogbot").PieceFactory<{
8
+ readonly slug: "microsoft-teams";
9
+ readonly label: "Microsoft Teams";
10
+ readonly admin: {
11
+ readonly description: "Manage Teams channels, chats, messages, meetings, and bot activities";
12
+ readonly group: "Communication";
13
+ };
14
+ readonly auth: z.ZodObject<{
15
+ accessToken: z.ZodOptional<z.ZodString>;
16
+ appId: z.ZodOptional<z.ZodString>;
17
+ appPassword: z.ZodOptional<z.ZodString>;
18
+ cloud: z.ZodDefault<z.ZodLiteral<string>>;
19
+ tenantId: z.ZodDefault<z.ZodLiteral<string>>;
20
+ }, z.core.$strip>;
21
+ readonly options: z.ZodObject<{
22
+ botAppType: z.ZodDefault<z.ZodEnum<{
23
+ MultiTenant: "MultiTenant";
24
+ SingleTenant: "SingleTenant";
25
+ }>>;
26
+ botTenantId: z.ZodOptional<z.ZodString>;
27
+ botApiUrl: z.ZodOptional<z.ZodURL>;
28
+ botUsername: z.ZodDefault<z.ZodString>;
29
+ }, z.core.$strip>;
30
+ readonly client: typeof createMicrosoftTeamsClient;
31
+ readonly oauth: {
32
+ authorizationUrl: string;
33
+ tokenUrl: string;
34
+ scopes: string[];
35
+ params: {
36
+ prompt: string;
37
+ };
38
+ toAuth: ({ tokens }: {
39
+ tokens: import("frogbot").OAuthTokens;
40
+ }) => {
41
+ accessToken: string;
42
+ cloud: string;
43
+ tenantId: string;
44
+ };
45
+ account({ client }: {
46
+ tokens: import("frogbot").OAuthTokens;
47
+ client: {
48
+ baseUrl: string;
49
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
50
+ method?: string;
51
+ body?: unknown;
52
+ headers?: Record<string, string>;
53
+ query?: Record<string, string | number>;
54
+ signal?: AbortSignal;
55
+ }) => Promise<T>;
56
+ text(path: string, options?: {
57
+ method?: string;
58
+ body?: unknown;
59
+ headers?: Record<string, string>;
60
+ query?: Record<string, string | number>;
61
+ signal?: AbortSignal;
62
+ }): Promise<string>;
63
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
64
+ method?: string;
65
+ body?: unknown;
66
+ headers?: Record<string, string>;
67
+ query?: Record<string, string | number>;
68
+ signal?: AbortSignal;
69
+ }) => Promise<T[]>;
70
+ page: <T>(path: string, schema: z.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<import("./schemas.js").GraphPage<T>>;
77
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
78
+ custom(path: string, schema: z.ZodType, options?: {
79
+ method?: string;
80
+ body?: unknown;
81
+ headers?: Record<string, string>;
82
+ query?: Record<string, string | number>;
83
+ signal?: AbortSignal;
84
+ }): Promise<{
85
+ status: number;
86
+ body: unknown;
87
+ }>;
88
+ };
89
+ req: import("frogbot").FrogbotRequest;
90
+ }): Promise<{
91
+ id: string;
92
+ label: string;
93
+ email: string;
94
+ }>;
95
+ };
96
+ readonly webhook: {
97
+ parse({ req }: {
98
+ req: import("frogbot").FrogbotRequest;
99
+ }): {
100
+ event: string;
101
+ };
102
+ };
103
+ readonly channel: {
104
+ adapter({ auth, options }: {
105
+ auth: {
106
+ cloud: string;
107
+ tenantId: string;
108
+ accessToken?: string | undefined;
109
+ appId?: string | undefined;
110
+ appPassword?: string | undefined;
111
+ };
112
+ options: {
113
+ botAppType: "MultiTenant" | "SingleTenant";
114
+ botUsername: string;
115
+ botTenantId?: string | undefined;
116
+ botApiUrl?: string | undefined;
117
+ };
118
+ }): import("@chat-adapter/teams").TeamsAdapter;
119
+ identity({ author, req }: {
120
+ author: import("chat").Author;
121
+ client: {
122
+ baseUrl: string;
123
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
124
+ method?: string;
125
+ body?: unknown;
126
+ headers?: Record<string, string>;
127
+ query?: Record<string, string | number>;
128
+ signal?: AbortSignal;
129
+ }) => Promise<T>;
130
+ text(path: string, options?: {
131
+ method?: string;
132
+ body?: unknown;
133
+ headers?: Record<string, string>;
134
+ query?: Record<string, string | number>;
135
+ signal?: AbortSignal;
136
+ }): Promise<string>;
137
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
138
+ method?: string;
139
+ body?: unknown;
140
+ headers?: Record<string, string>;
141
+ query?: Record<string, string | number>;
142
+ signal?: AbortSignal;
143
+ }) => Promise<T[]>;
144
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
145
+ method?: string;
146
+ body?: unknown;
147
+ headers?: Record<string, string>;
148
+ query?: Record<string, string | number>;
149
+ signal?: AbortSignal;
150
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
151
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
152
+ custom(path: string, schema: z.ZodType, options?: {
153
+ method?: string;
154
+ body?: unknown;
155
+ headers?: Record<string, string>;
156
+ query?: Record<string, string | number>;
157
+ signal?: AbortSignal;
158
+ }): Promise<{
159
+ status: number;
160
+ body: unknown;
161
+ }>;
162
+ };
163
+ req: import("frogbot").FrogbotRequest;
164
+ }): Promise<{
165
+ collection: string;
166
+ id: string | number;
167
+ } | null>;
168
+ };
169
+ readonly actions: ({
170
+ slug: string;
171
+ description: string;
172
+ input: z.ZodObject<{
173
+ channelDisplayName: z.ZodString;
174
+ channelDescription: z.ZodOptional<z.ZodString>;
175
+ teamId: z.ZodString;
176
+ }, z.core.$strip>;
177
+ output: z.ZodObject<{
178
+ id: z.ZodString;
179
+ displayName: z.ZodString;
180
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
181
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
182
+ membershipType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
183
+ isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
184
+ }, z.core.$loose>;
185
+ options: {
186
+ teamId: typeof import("./options.js").teams;
187
+ };
188
+ idempotent: boolean;
189
+ run({ client, input, req }: {
190
+ input: {
191
+ channelDisplayName: string;
192
+ teamId: string;
193
+ channelDescription?: string | undefined;
194
+ };
195
+ client: {
196
+ baseUrl: string;
197
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
198
+ method?: string;
199
+ body?: unknown;
200
+ headers?: Record<string, string>;
201
+ query?: Record<string, string | number>;
202
+ signal?: AbortSignal;
203
+ }) => Promise<T>;
204
+ text(path: string, options?: {
205
+ method?: string;
206
+ body?: unknown;
207
+ headers?: Record<string, string>;
208
+ query?: Record<string, string | number>;
209
+ signal?: AbortSignal;
210
+ }): Promise<string>;
211
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
212
+ method?: string;
213
+ body?: unknown;
214
+ headers?: Record<string, string>;
215
+ query?: Record<string, string | number>;
216
+ signal?: AbortSignal;
217
+ }) => Promise<T[]>;
218
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
219
+ method?: string;
220
+ body?: unknown;
221
+ headers?: Record<string, string>;
222
+ query?: Record<string, string | number>;
223
+ signal?: AbortSignal;
224
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
225
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
226
+ custom(path: string, schema: z.ZodType, options?: {
227
+ method?: string;
228
+ body?: unknown;
229
+ headers?: Record<string, string>;
230
+ query?: Record<string, string | number>;
231
+ signal?: AbortSignal;
232
+ }): Promise<{
233
+ status: number;
234
+ body: unknown;
235
+ }>;
236
+ };
237
+ options: object;
238
+ req: import("frogbot").FrogbotRequest;
239
+ }): Promise<{
240
+ [x: string]: unknown;
241
+ id: string;
242
+ displayName: string;
243
+ description?: string | null | undefined;
244
+ createdDateTime?: string | null | undefined;
245
+ membershipType?: string | null | undefined;
246
+ isArchived?: boolean | null | undefined;
247
+ }>;
248
+ } | {
249
+ slug: string;
250
+ description: string;
251
+ input: z.ZodObject<{
252
+ contentType: z.ZodDefault<z.ZodEnum<{
253
+ text: "text";
254
+ html: "html";
255
+ }>>;
256
+ content: z.ZodString;
257
+ channelId: z.ZodString;
258
+ teamId: z.ZodString;
259
+ }, z.core.$strip>;
260
+ output: z.ZodObject<{
261
+ id: z.ZodString;
262
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
263
+ lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
264
+ chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
265
+ body: z.ZodObject<{
266
+ content: z.ZodString;
267
+ contentType: z.ZodString;
268
+ }, z.core.$loose>;
269
+ }, z.core.$loose>;
270
+ options: {
271
+ teamId: typeof import("./options.js").teams;
272
+ channelId: typeof import("./options.js").channels;
273
+ };
274
+ idempotent: boolean;
275
+ run({ client, input, req }: {
276
+ input: {
277
+ contentType: "text" | "html";
278
+ content: string;
279
+ channelId: string;
280
+ teamId: string;
281
+ };
282
+ client: {
283
+ baseUrl: string;
284
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
285
+ method?: string;
286
+ body?: unknown;
287
+ headers?: Record<string, string>;
288
+ query?: Record<string, string | number>;
289
+ signal?: AbortSignal;
290
+ }) => Promise<T>;
291
+ text(path: string, options?: {
292
+ method?: string;
293
+ body?: unknown;
294
+ headers?: Record<string, string>;
295
+ query?: Record<string, string | number>;
296
+ signal?: AbortSignal;
297
+ }): Promise<string>;
298
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
299
+ method?: string;
300
+ body?: unknown;
301
+ headers?: Record<string, string>;
302
+ query?: Record<string, string | number>;
303
+ signal?: AbortSignal;
304
+ }) => Promise<T[]>;
305
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
306
+ method?: string;
307
+ body?: unknown;
308
+ headers?: Record<string, string>;
309
+ query?: Record<string, string | number>;
310
+ signal?: AbortSignal;
311
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
312
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
313
+ custom(path: string, schema: z.ZodType, options?: {
314
+ method?: string;
315
+ body?: unknown;
316
+ headers?: Record<string, string>;
317
+ query?: Record<string, string | number>;
318
+ signal?: AbortSignal;
319
+ }): Promise<{
320
+ status: number;
321
+ body: unknown;
322
+ }>;
323
+ };
324
+ options: object;
325
+ req: import("frogbot").FrogbotRequest;
326
+ }): Promise<{
327
+ [x: string]: unknown;
328
+ id: string;
329
+ body: {
330
+ [x: string]: unknown;
331
+ content: string;
332
+ contentType: string;
333
+ };
334
+ createdDateTime?: string | null | undefined;
335
+ lastModifiedDateTime?: string | null | undefined;
336
+ chatId?: string | null | undefined;
337
+ }>;
338
+ } | {
339
+ slug: string;
340
+ description: string;
341
+ input: z.ZodObject<{
342
+ contentType: z.ZodDefault<z.ZodEnum<{
343
+ text: "text";
344
+ html: "html";
345
+ }>>;
346
+ content: z.ZodString;
347
+ chatId: z.ZodString;
348
+ }, z.core.$strip>;
349
+ output: z.ZodObject<{
350
+ id: z.ZodString;
351
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
352
+ lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
353
+ chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
354
+ body: z.ZodObject<{
355
+ content: z.ZodString;
356
+ contentType: z.ZodString;
357
+ }, z.core.$loose>;
358
+ }, z.core.$loose>;
359
+ options: {
360
+ chatId: typeof import("./options.js").chats;
361
+ };
362
+ idempotent: boolean;
363
+ run({ client, input, req }: {
364
+ input: {
365
+ contentType: "text" | "html";
366
+ content: string;
367
+ chatId: string;
368
+ };
369
+ client: {
370
+ baseUrl: string;
371
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
372
+ method?: string;
373
+ body?: unknown;
374
+ headers?: Record<string, string>;
375
+ query?: Record<string, string | number>;
376
+ signal?: AbortSignal;
377
+ }) => Promise<T>;
378
+ text(path: string, options?: {
379
+ method?: string;
380
+ body?: unknown;
381
+ headers?: Record<string, string>;
382
+ query?: Record<string, string | number>;
383
+ signal?: AbortSignal;
384
+ }): Promise<string>;
385
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
386
+ method?: string;
387
+ body?: unknown;
388
+ headers?: Record<string, string>;
389
+ query?: Record<string, string | number>;
390
+ signal?: AbortSignal;
391
+ }) => Promise<T[]>;
392
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
393
+ method?: string;
394
+ body?: unknown;
395
+ headers?: Record<string, string>;
396
+ query?: Record<string, string | number>;
397
+ signal?: AbortSignal;
398
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
399
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
400
+ custom(path: string, schema: z.ZodType, options?: {
401
+ method?: string;
402
+ body?: unknown;
403
+ headers?: Record<string, string>;
404
+ query?: Record<string, string | number>;
405
+ signal?: AbortSignal;
406
+ }): Promise<{
407
+ status: number;
408
+ body: unknown;
409
+ }>;
410
+ };
411
+ options: object;
412
+ req: import("frogbot").FrogbotRequest;
413
+ }): Promise<{
414
+ [x: string]: unknown;
415
+ id: string;
416
+ body: {
417
+ [x: string]: unknown;
418
+ content: string;
419
+ contentType: string;
420
+ };
421
+ createdDateTime?: string | null | undefined;
422
+ lastModifiedDateTime?: string | null | undefined;
423
+ chatId?: string | null | undefined;
424
+ }>;
425
+ } | {
426
+ slug: string;
427
+ description: string;
428
+ input: z.ZodObject<{
429
+ contentType: z.ZodDefault<z.ZodEnum<{
430
+ text: "text";
431
+ html: "html";
432
+ }>>;
433
+ content: z.ZodString;
434
+ members: z.ZodArray<z.ZodString>;
435
+ teamId: z.ZodString;
436
+ }, z.core.$strip>;
437
+ output: z.ZodObject<{
438
+ chat: z.ZodObject<{
439
+ id: z.ZodString;
440
+ topic: z.ZodOptional<z.ZodNullable<z.ZodString>>;
441
+ chatType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
442
+ oneOnOne: "oneOnOne";
443
+ group: "group";
444
+ meeting: "meeting";
445
+ unknownFutureValue: "unknownFutureValue";
446
+ }>>>;
447
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
448
+ lastUpdatedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
449
+ members: z.ZodOptional<z.ZodArray<z.ZodObject<{
450
+ id: z.ZodString;
451
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
452
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
453
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
454
+ }, z.core.$loose>>>;
455
+ }, z.core.$loose>;
456
+ message: z.ZodObject<{
457
+ id: z.ZodString;
458
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
459
+ lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
460
+ chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
461
+ body: z.ZodObject<{
462
+ content: z.ZodString;
463
+ contentType: z.ZodString;
464
+ }, z.core.$loose>;
465
+ }, z.core.$loose>;
466
+ }, z.core.$strip>;
467
+ options: {
468
+ teamId: typeof import("./options.js").teams;
469
+ members: typeof import("./options.js").members;
470
+ };
471
+ idempotent: boolean;
472
+ run({ client, input, req }: {
473
+ input: {
474
+ contentType: "text" | "html";
475
+ content: string;
476
+ members: string[];
477
+ teamId: string;
478
+ };
479
+ client: {
480
+ baseUrl: string;
481
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
482
+ method?: string;
483
+ body?: unknown;
484
+ headers?: Record<string, string>;
485
+ query?: Record<string, string | number>;
486
+ signal?: AbortSignal;
487
+ }) => Promise<T>;
488
+ text(path: string, options?: {
489
+ method?: string;
490
+ body?: unknown;
491
+ headers?: Record<string, string>;
492
+ query?: Record<string, string | number>;
493
+ signal?: AbortSignal;
494
+ }): Promise<string>;
495
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
496
+ method?: string;
497
+ body?: unknown;
498
+ headers?: Record<string, string>;
499
+ query?: Record<string, string | number>;
500
+ signal?: AbortSignal;
501
+ }) => Promise<T[]>;
502
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
503
+ method?: string;
504
+ body?: unknown;
505
+ headers?: Record<string, string>;
506
+ query?: Record<string, string | number>;
507
+ signal?: AbortSignal;
508
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
509
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
510
+ custom(path: string, schema: z.ZodType, options?: {
511
+ method?: string;
512
+ body?: unknown;
513
+ headers?: Record<string, string>;
514
+ query?: Record<string, string | number>;
515
+ signal?: AbortSignal;
516
+ }): Promise<{
517
+ status: number;
518
+ body: unknown;
519
+ }>;
520
+ };
521
+ options: object;
522
+ req: import("frogbot").FrogbotRequest;
523
+ }): Promise<{
524
+ chat: {
525
+ [x: string]: unknown;
526
+ id: string;
527
+ topic?: string | null | undefined;
528
+ chatType?: "oneOnOne" | "group" | "meeting" | "unknownFutureValue" | null | undefined;
529
+ createdDateTime?: string | null | undefined;
530
+ lastUpdatedDateTime?: string | null | undefined;
531
+ members?: {
532
+ [x: string]: unknown;
533
+ id: string;
534
+ displayName?: string | null | undefined;
535
+ email?: string | null | undefined;
536
+ userId?: string | null | undefined;
537
+ }[] | undefined;
538
+ };
539
+ message: {
540
+ [x: string]: unknown;
541
+ id: string;
542
+ body: {
543
+ [x: string]: unknown;
544
+ content: string;
545
+ contentType: string;
546
+ };
547
+ createdDateTime?: string | null | undefined;
548
+ lastModifiedDateTime?: string | null | undefined;
549
+ chatId?: string | null | undefined;
550
+ };
551
+ }>;
552
+ } | {
553
+ slug: string;
554
+ description: string;
555
+ input: z.ZodObject<{
556
+ messageId: z.ZodString;
557
+ chatId: z.ZodString;
558
+ }, z.core.$strip>;
559
+ output: z.ZodObject<{
560
+ id: z.ZodString;
561
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
562
+ lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
563
+ chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
564
+ body: z.ZodObject<{
565
+ content: z.ZodString;
566
+ contentType: z.ZodString;
567
+ }, z.core.$loose>;
568
+ }, z.core.$loose>;
569
+ options: {
570
+ chatId: typeof import("./options.js").chats;
571
+ };
572
+ idempotent: boolean;
573
+ run({ client, input, req }: {
574
+ input: {
575
+ messageId: string;
576
+ chatId: string;
577
+ };
578
+ client: {
579
+ baseUrl: string;
580
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
581
+ method?: string;
582
+ body?: unknown;
583
+ headers?: Record<string, string>;
584
+ query?: Record<string, string | number>;
585
+ signal?: AbortSignal;
586
+ }) => Promise<T>;
587
+ text(path: string, options?: {
588
+ method?: string;
589
+ body?: unknown;
590
+ headers?: Record<string, string>;
591
+ query?: Record<string, string | number>;
592
+ signal?: AbortSignal;
593
+ }): Promise<string>;
594
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
595
+ method?: string;
596
+ body?: unknown;
597
+ headers?: Record<string, string>;
598
+ query?: Record<string, string | number>;
599
+ signal?: AbortSignal;
600
+ }) => Promise<T[]>;
601
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
602
+ method?: string;
603
+ body?: unknown;
604
+ headers?: Record<string, string>;
605
+ query?: Record<string, string | number>;
606
+ signal?: AbortSignal;
607
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
608
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
609
+ custom(path: string, schema: z.ZodType, options?: {
610
+ method?: string;
611
+ body?: unknown;
612
+ headers?: Record<string, string>;
613
+ query?: Record<string, string | number>;
614
+ signal?: AbortSignal;
615
+ }): Promise<{
616
+ status: number;
617
+ body: unknown;
618
+ }>;
619
+ };
620
+ options: object;
621
+ req: import("frogbot").FrogbotRequest;
622
+ }): Promise<{
623
+ [x: string]: unknown;
624
+ id: string;
625
+ body: {
626
+ [x: string]: unknown;
627
+ content: string;
628
+ contentType: string;
629
+ };
630
+ createdDateTime?: string | null | undefined;
631
+ lastModifiedDateTime?: string | null | undefined;
632
+ chatId?: string | null | undefined;
633
+ }>;
634
+ } | {
635
+ slug: string;
636
+ description: string;
637
+ input: z.ZodObject<{
638
+ messageId: z.ZodString;
639
+ chatId: z.ZodString;
640
+ }, z.core.$strip>;
641
+ output: z.ZodObject<{
642
+ success: z.ZodLiteral<true>;
643
+ messageId: z.ZodString;
644
+ chatId: z.ZodString;
645
+ }, z.core.$strip>;
646
+ options: {
647
+ chatId: typeof import("./options.js").chats;
648
+ };
649
+ idempotent: boolean;
650
+ run({ client, input, req }: {
651
+ input: {
652
+ messageId: string;
653
+ chatId: string;
654
+ };
655
+ client: {
656
+ baseUrl: string;
657
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
658
+ method?: string;
659
+ body?: unknown;
660
+ headers?: Record<string, string>;
661
+ query?: Record<string, string | number>;
662
+ signal?: AbortSignal;
663
+ }) => Promise<T>;
664
+ text(path: string, options?: {
665
+ method?: string;
666
+ body?: unknown;
667
+ headers?: Record<string, string>;
668
+ query?: Record<string, string | number>;
669
+ signal?: AbortSignal;
670
+ }): Promise<string>;
671
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
672
+ method?: string;
673
+ body?: unknown;
674
+ headers?: Record<string, string>;
675
+ query?: Record<string, string | number>;
676
+ signal?: AbortSignal;
677
+ }) => Promise<T[]>;
678
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
679
+ method?: string;
680
+ body?: unknown;
681
+ headers?: Record<string, string>;
682
+ query?: Record<string, string | number>;
683
+ signal?: AbortSignal;
684
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
685
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
686
+ custom(path: string, schema: z.ZodType, options?: {
687
+ method?: string;
688
+ body?: unknown;
689
+ headers?: Record<string, string>;
690
+ query?: Record<string, string | number>;
691
+ signal?: AbortSignal;
692
+ }): Promise<{
693
+ status: number;
694
+ body: unknown;
695
+ }>;
696
+ };
697
+ options: object;
698
+ req: import("frogbot").FrogbotRequest;
699
+ }): Promise<{
700
+ success: boolean;
701
+ messageId: string;
702
+ chatId: string;
703
+ }>;
704
+ } | {
705
+ slug: string;
706
+ description: string;
707
+ input: z.ZodObject<{
708
+ messageId: z.ZodString;
709
+ replyId: z.ZodOptional<z.ZodString>;
710
+ channelId: z.ZodString;
711
+ teamId: z.ZodString;
712
+ }, z.core.$strip>;
713
+ output: z.ZodObject<{
714
+ id: z.ZodString;
715
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
716
+ lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
717
+ chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
718
+ body: z.ZodObject<{
719
+ content: z.ZodString;
720
+ contentType: z.ZodString;
721
+ }, z.core.$loose>;
722
+ }, z.core.$loose>;
723
+ options: {
724
+ teamId: typeof import("./options.js").teams;
725
+ channelId: typeof import("./options.js").channels;
726
+ };
727
+ idempotent: boolean;
728
+ run({ client, input, req }: {
729
+ input: {
730
+ messageId: string;
731
+ channelId: string;
732
+ teamId: string;
733
+ replyId?: string | undefined;
734
+ };
735
+ client: {
736
+ baseUrl: string;
737
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
738
+ method?: string;
739
+ body?: unknown;
740
+ headers?: Record<string, string>;
741
+ query?: Record<string, string | number>;
742
+ signal?: AbortSignal;
743
+ }) => Promise<T>;
744
+ text(path: string, options?: {
745
+ method?: string;
746
+ body?: unknown;
747
+ headers?: Record<string, string>;
748
+ query?: Record<string, string | number>;
749
+ signal?: AbortSignal;
750
+ }): Promise<string>;
751
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
752
+ method?: string;
753
+ body?: unknown;
754
+ headers?: Record<string, string>;
755
+ query?: Record<string, string | number>;
756
+ signal?: AbortSignal;
757
+ }) => Promise<T[]>;
758
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
759
+ method?: string;
760
+ body?: unknown;
761
+ headers?: Record<string, string>;
762
+ query?: Record<string, string | number>;
763
+ signal?: AbortSignal;
764
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
765
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
766
+ custom(path: string, schema: z.ZodType, options?: {
767
+ method?: string;
768
+ body?: unknown;
769
+ headers?: Record<string, string>;
770
+ query?: Record<string, string | number>;
771
+ signal?: AbortSignal;
772
+ }): Promise<{
773
+ status: number;
774
+ body: unknown;
775
+ }>;
776
+ };
777
+ options: object;
778
+ req: import("frogbot").FrogbotRequest;
779
+ }): Promise<{
780
+ [x: string]: unknown;
781
+ id: string;
782
+ body: {
783
+ [x: string]: unknown;
784
+ content: string;
785
+ contentType: string;
786
+ };
787
+ createdDateTime?: string | null | undefined;
788
+ lastModifiedDateTime?: string | null | undefined;
789
+ chatId?: string | null | undefined;
790
+ }>;
791
+ } | {
792
+ slug: string;
793
+ description: string;
794
+ input: z.ZodObject<{
795
+ channelName: z.ZodString;
796
+ teamId: z.ZodString;
797
+ }, z.core.$strip>;
798
+ output: z.ZodObject<{
799
+ found: z.ZodBoolean;
800
+ result: z.ZodArray<z.ZodObject<{
801
+ id: z.ZodString;
802
+ displayName: z.ZodString;
803
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
804
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
805
+ membershipType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
806
+ isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
807
+ }, z.core.$loose>>;
808
+ }, z.core.$strip>;
809
+ options: {
810
+ teamId: typeof import("./options.js").teams;
811
+ };
812
+ idempotent: boolean;
813
+ run({ client, input, req }: {
814
+ input: {
815
+ channelName: string;
816
+ teamId: string;
817
+ };
818
+ client: {
819
+ baseUrl: string;
820
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
821
+ method?: string;
822
+ body?: unknown;
823
+ headers?: Record<string, string>;
824
+ query?: Record<string, string | number>;
825
+ signal?: AbortSignal;
826
+ }) => Promise<T>;
827
+ text(path: string, options?: {
828
+ method?: string;
829
+ body?: unknown;
830
+ headers?: Record<string, string>;
831
+ query?: Record<string, string | number>;
832
+ signal?: AbortSignal;
833
+ }): Promise<string>;
834
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
835
+ method?: string;
836
+ body?: unknown;
837
+ headers?: Record<string, string>;
838
+ query?: Record<string, string | number>;
839
+ signal?: AbortSignal;
840
+ }) => Promise<T[]>;
841
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
842
+ method?: string;
843
+ body?: unknown;
844
+ headers?: Record<string, string>;
845
+ query?: Record<string, string | number>;
846
+ signal?: AbortSignal;
847
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
848
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
849
+ custom(path: string, schema: z.ZodType, options?: {
850
+ method?: string;
851
+ body?: unknown;
852
+ headers?: Record<string, string>;
853
+ query?: Record<string, string | number>;
854
+ signal?: AbortSignal;
855
+ }): Promise<{
856
+ status: number;
857
+ body: unknown;
858
+ }>;
859
+ };
860
+ options: object;
861
+ req: import("frogbot").FrogbotRequest;
862
+ }): Promise<{
863
+ found: boolean;
864
+ result: {
865
+ [x: string]: unknown;
866
+ id: string;
867
+ displayName: string;
868
+ description?: string | null | undefined;
869
+ createdDateTime?: string | null | undefined;
870
+ membershipType?: string | null | undefined;
871
+ isArchived?: boolean | null | undefined;
872
+ }[];
873
+ }>;
874
+ } | {
875
+ slug: string;
876
+ description: string;
877
+ input: z.ZodObject<{
878
+ searchBy: z.ZodDefault<z.ZodEnum<{
879
+ email: "email";
880
+ name: "name";
881
+ }>>;
882
+ searchValue: z.ZodString;
883
+ teamId: z.ZodString;
884
+ }, z.core.$strip>;
885
+ output: z.ZodObject<{
886
+ found: z.ZodBoolean;
887
+ result: z.ZodArray<z.ZodObject<{
888
+ id: z.ZodString;
889
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
890
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
891
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
892
+ }, z.core.$loose>>;
893
+ }, z.core.$strip>;
894
+ options: {
895
+ teamId: typeof import("./options.js").teams;
896
+ };
897
+ idempotent: boolean;
898
+ run({ client, input, req }: {
899
+ input: {
900
+ searchBy: "email" | "name";
901
+ searchValue: string;
902
+ teamId: string;
903
+ };
904
+ client: {
905
+ baseUrl: string;
906
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
907
+ method?: string;
908
+ body?: unknown;
909
+ headers?: Record<string, string>;
910
+ query?: Record<string, string | number>;
911
+ signal?: AbortSignal;
912
+ }) => Promise<T>;
913
+ text(path: string, options?: {
914
+ method?: string;
915
+ body?: unknown;
916
+ headers?: Record<string, string>;
917
+ query?: Record<string, string | number>;
918
+ signal?: AbortSignal;
919
+ }): Promise<string>;
920
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
921
+ method?: string;
922
+ body?: unknown;
923
+ headers?: Record<string, string>;
924
+ query?: Record<string, string | number>;
925
+ signal?: AbortSignal;
926
+ }) => Promise<T[]>;
927
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
928
+ method?: string;
929
+ body?: unknown;
930
+ headers?: Record<string, string>;
931
+ query?: Record<string, string | number>;
932
+ signal?: AbortSignal;
933
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
934
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
935
+ custom(path: string, schema: z.ZodType, options?: {
936
+ method?: string;
937
+ body?: unknown;
938
+ headers?: Record<string, string>;
939
+ query?: Record<string, string | number>;
940
+ signal?: AbortSignal;
941
+ }): Promise<{
942
+ status: number;
943
+ body: unknown;
944
+ }>;
945
+ };
946
+ options: object;
947
+ req: import("frogbot").FrogbotRequest;
948
+ }): Promise<{
949
+ found: boolean;
950
+ result: {
951
+ [x: string]: unknown;
952
+ id: string;
953
+ displayName?: string | null | undefined;
954
+ email?: string | null | undefined;
955
+ userId?: string | null | undefined;
956
+ }[];
957
+ }>;
958
+ } | {
959
+ slug: string;
960
+ description: string;
961
+ input: z.ZodObject<{
962
+ transcriptId: z.ZodOptional<z.ZodString>;
963
+ meetingIdentifierType: z.ZodDefault<z.ZodEnum<{
964
+ meetingId: "meetingId";
965
+ joinWebUrl: "joinWebUrl";
966
+ joinMeetingId: "joinMeetingId";
967
+ }>>;
968
+ meetingIdentifierValue: z.ZodString;
969
+ }, z.core.$strip>;
970
+ output: z.ZodUnion<readonly [z.ZodObject<{
971
+ content: z.ZodString;
972
+ }, z.core.$strip>, z.ZodType<import("./schemas.js").GraphPage<{
973
+ [x: string]: unknown;
974
+ id: string;
975
+ createdDateTime?: string | null | undefined;
976
+ }>, unknown, z.core.$ZodTypeInternals<import("./schemas.js").GraphPage<{
977
+ [x: string]: unknown;
978
+ id: string;
979
+ createdDateTime?: string | null | undefined;
980
+ }>, unknown>>]>;
981
+ idempotent: boolean;
982
+ run({ client, input, req }: {
983
+ input: {
984
+ meetingIdentifierType: "meetingId" | "joinWebUrl" | "joinMeetingId";
985
+ meetingIdentifierValue: string;
986
+ transcriptId?: string | undefined;
987
+ };
988
+ client: {
989
+ baseUrl: string;
990
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
991
+ method?: string;
992
+ body?: unknown;
993
+ headers?: Record<string, string>;
994
+ query?: Record<string, string | number>;
995
+ signal?: AbortSignal;
996
+ }) => Promise<T>;
997
+ text(path: string, options?: {
998
+ method?: string;
999
+ body?: unknown;
1000
+ headers?: Record<string, string>;
1001
+ query?: Record<string, string | number>;
1002
+ signal?: AbortSignal;
1003
+ }): Promise<string>;
1004
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
1005
+ method?: string;
1006
+ body?: unknown;
1007
+ headers?: Record<string, string>;
1008
+ query?: Record<string, string | number>;
1009
+ signal?: AbortSignal;
1010
+ }) => Promise<T[]>;
1011
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
1012
+ method?: string;
1013
+ body?: unknown;
1014
+ headers?: Record<string, string>;
1015
+ query?: Record<string, string | number>;
1016
+ signal?: AbortSignal;
1017
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
1018
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1019
+ custom(path: string, schema: z.ZodType, options?: {
1020
+ method?: string;
1021
+ body?: unknown;
1022
+ headers?: Record<string, string>;
1023
+ query?: Record<string, string | number>;
1024
+ signal?: AbortSignal;
1025
+ }): Promise<{
1026
+ status: number;
1027
+ body: unknown;
1028
+ }>;
1029
+ };
1030
+ options: object;
1031
+ req: import("frogbot").FrogbotRequest;
1032
+ }): Promise<import("./schemas.js").GraphPage<{
1033
+ [x: string]: unknown;
1034
+ id: string;
1035
+ createdDateTime?: string | null | undefined;
1036
+ }> | {
1037
+ content: string;
1038
+ }>;
1039
+ } | {
1040
+ slug: string;
1041
+ description: string;
1042
+ input: z.ZodObject<{
1043
+ recordingId: z.ZodOptional<z.ZodString>;
1044
+ meetingIdentifierType: z.ZodDefault<z.ZodEnum<{
1045
+ meetingId: "meetingId";
1046
+ joinWebUrl: "joinWebUrl";
1047
+ joinMeetingId: "joinMeetingId";
1048
+ }>>;
1049
+ meetingIdentifierValue: z.ZodString;
1050
+ }, z.core.$strip>;
1051
+ output: z.ZodUnion<readonly [z.ZodObject<{
1052
+ id: z.ZodString;
1053
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1054
+ }, z.core.$loose>, z.ZodType<import("./schemas.js").GraphPage<{
1055
+ [x: string]: unknown;
1056
+ id: string;
1057
+ createdDateTime?: string | null | undefined;
1058
+ }>, unknown, z.core.$ZodTypeInternals<import("./schemas.js").GraphPage<{
1059
+ [x: string]: unknown;
1060
+ id: string;
1061
+ createdDateTime?: string | null | undefined;
1062
+ }>, unknown>>]>;
1063
+ idempotent: boolean;
1064
+ run({ client, input, req }: {
1065
+ input: {
1066
+ meetingIdentifierType: "meetingId" | "joinWebUrl" | "joinMeetingId";
1067
+ meetingIdentifierValue: string;
1068
+ recordingId?: string | undefined;
1069
+ };
1070
+ client: {
1071
+ baseUrl: string;
1072
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1073
+ method?: string;
1074
+ body?: unknown;
1075
+ headers?: Record<string, string>;
1076
+ query?: Record<string, string | number>;
1077
+ signal?: AbortSignal;
1078
+ }) => Promise<T>;
1079
+ text(path: string, options?: {
1080
+ method?: string;
1081
+ body?: unknown;
1082
+ headers?: Record<string, string>;
1083
+ query?: Record<string, string | number>;
1084
+ signal?: AbortSignal;
1085
+ }): Promise<string>;
1086
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
1087
+ method?: string;
1088
+ body?: unknown;
1089
+ headers?: Record<string, string>;
1090
+ query?: Record<string, string | number>;
1091
+ signal?: AbortSignal;
1092
+ }) => Promise<T[]>;
1093
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
1094
+ method?: string;
1095
+ body?: unknown;
1096
+ headers?: Record<string, string>;
1097
+ query?: Record<string, string | number>;
1098
+ signal?: AbortSignal;
1099
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
1100
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1101
+ custom(path: string, schema: z.ZodType, options?: {
1102
+ method?: string;
1103
+ body?: unknown;
1104
+ headers?: Record<string, string>;
1105
+ query?: Record<string, string | number>;
1106
+ signal?: AbortSignal;
1107
+ }): Promise<{
1108
+ status: number;
1109
+ body: unknown;
1110
+ }>;
1111
+ };
1112
+ options: object;
1113
+ req: import("frogbot").FrogbotRequest;
1114
+ }): Promise<{
1115
+ [x: string]: unknown;
1116
+ id: string;
1117
+ createdDateTime?: string | null | undefined;
1118
+ } | import("./schemas.js").GraphPage<{
1119
+ [x: string]: unknown;
1120
+ id: string;
1121
+ createdDateTime?: string | null | undefined;
1122
+ }>>;
1123
+ } | {
1124
+ slug: string;
1125
+ description: string;
1126
+ input: z.ZodObject<{
1127
+ method: z.ZodEnum<{
1128
+ GET: "GET";
1129
+ POST: "POST";
1130
+ PATCH: "PATCH";
1131
+ PUT: "PUT";
1132
+ DELETE: "DELETE";
1133
+ }>;
1134
+ path: z.ZodString;
1135
+ query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
1136
+ body: z.ZodOptional<z.ZodJSONSchema>;
1137
+ }, z.core.$strip>;
1138
+ output: z.ZodObject<{
1139
+ status: z.ZodNumber;
1140
+ body: z.ZodJSONSchema;
1141
+ }, z.core.$strip>;
1142
+ idempotent: boolean;
1143
+ run({ client, input, req }: {
1144
+ input: {
1145
+ method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
1146
+ path: string;
1147
+ query?: Record<string, string | number> | undefined;
1148
+ body?: z.core.util.JSONType | undefined;
1149
+ };
1150
+ client: {
1151
+ baseUrl: string;
1152
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1153
+ method?: string;
1154
+ body?: unknown;
1155
+ headers?: Record<string, string>;
1156
+ query?: Record<string, string | number>;
1157
+ signal?: AbortSignal;
1158
+ }) => Promise<T>;
1159
+ text(path: string, options?: {
1160
+ method?: string;
1161
+ body?: unknown;
1162
+ headers?: Record<string, string>;
1163
+ query?: Record<string, string | number>;
1164
+ signal?: AbortSignal;
1165
+ }): Promise<string>;
1166
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
1167
+ method?: string;
1168
+ body?: unknown;
1169
+ headers?: Record<string, string>;
1170
+ query?: Record<string, string | number>;
1171
+ signal?: AbortSignal;
1172
+ }) => Promise<T[]>;
1173
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
1174
+ method?: string;
1175
+ body?: unknown;
1176
+ headers?: Record<string, string>;
1177
+ query?: Record<string, string | number>;
1178
+ signal?: AbortSignal;
1179
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
1180
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1181
+ custom(path: string, schema: z.ZodType, options?: {
1182
+ method?: string;
1183
+ body?: unknown;
1184
+ headers?: Record<string, string>;
1185
+ query?: Record<string, string | number>;
1186
+ signal?: AbortSignal;
1187
+ }): Promise<{
1188
+ status: number;
1189
+ body: unknown;
1190
+ }>;
1191
+ };
1192
+ options: object;
1193
+ req: import("frogbot").FrogbotRequest;
1194
+ }): Promise<{
1195
+ status: number;
1196
+ body: unknown;
1197
+ }>;
1198
+ })[];
1199
+ readonly triggers: (({
1200
+ slug: string;
1201
+ label?: string;
1202
+ description: string;
1203
+ input: z.ZodObject<{
1204
+ teamId: z.ZodString;
1205
+ }, z.core.$strip>;
1206
+ output?: z.ZodObject<{
1207
+ id: z.ZodString;
1208
+ displayName: z.ZodString;
1209
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1210
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1211
+ membershipType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1212
+ isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1213
+ }, z.core.$loose> | undefined;
1214
+ sample?: {
1215
+ [x: string]: unknown;
1216
+ id: string;
1217
+ displayName: string;
1218
+ description?: string | null | undefined;
1219
+ createdDateTime?: string | null | undefined;
1220
+ membershipType?: string | null | undefined;
1221
+ isArchived?: boolean | null | undefined;
1222
+ } | undefined;
1223
+ } & {
1224
+ type: "polling";
1225
+ schedule?: string;
1226
+ run(args: import("frogbot").PieceRunArgs<{
1227
+ teamId: string;
1228
+ }, object, {
1229
+ baseUrl: string;
1230
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1231
+ method?: string;
1232
+ body?: unknown;
1233
+ headers?: Record<string, string>;
1234
+ query?: Record<string, string | number>;
1235
+ signal?: AbortSignal;
1236
+ }) => Promise<T>;
1237
+ text(path: string, options?: {
1238
+ method?: string;
1239
+ body?: unknown;
1240
+ headers?: Record<string, string>;
1241
+ query?: Record<string, string | number>;
1242
+ signal?: AbortSignal;
1243
+ }): Promise<string>;
1244
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
1245
+ method?: string;
1246
+ body?: unknown;
1247
+ headers?: Record<string, string>;
1248
+ query?: Record<string, string | number>;
1249
+ signal?: AbortSignal;
1250
+ }) => Promise<T[]>;
1251
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
1252
+ method?: string;
1253
+ body?: unknown;
1254
+ headers?: Record<string, string>;
1255
+ query?: Record<string, string | number>;
1256
+ signal?: AbortSignal;
1257
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
1258
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1259
+ custom(path: string, schema: z.ZodType, options?: {
1260
+ method?: string;
1261
+ body?: unknown;
1262
+ headers?: Record<string, string>;
1263
+ query?: Record<string, string | number>;
1264
+ signal?: AbortSignal;
1265
+ }): Promise<{
1266
+ status: number;
1267
+ body: unknown;
1268
+ }>;
1269
+ }> & {
1270
+ cursor?: ({
1271
+ since: string;
1272
+ } | {
1273
+ since: string;
1274
+ deltaLink: string;
1275
+ }) | undefined;
1276
+ }): Promise<{
1277
+ events: {
1278
+ [x: string]: unknown;
1279
+ id: string;
1280
+ displayName: string;
1281
+ description?: string | null | undefined;
1282
+ createdDateTime?: string | null | undefined;
1283
+ membershipType?: string | null | undefined;
1284
+ isArchived?: boolean | null | undefined;
1285
+ }[];
1286
+ cursor?: ({
1287
+ since: string;
1288
+ } | {
1289
+ since: string;
1290
+ deltaLink: string;
1291
+ }) | undefined;
1292
+ }>;
1293
+ } & {
1294
+ options: {
1295
+ teamId: typeof import("./options.js").teams;
1296
+ };
1297
+ }) | ({
1298
+ slug: string;
1299
+ label?: string;
1300
+ description: string;
1301
+ input: z.ZodObject<{
1302
+ teamId: z.ZodString;
1303
+ channelId: z.ZodString;
1304
+ }, z.core.$strip>;
1305
+ output?: z.ZodObject<{
1306
+ id: z.ZodString;
1307
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1308
+ lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1309
+ chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1310
+ body: z.ZodObject<{
1311
+ content: z.ZodString;
1312
+ contentType: z.ZodString;
1313
+ }, z.core.$loose>;
1314
+ }, z.core.$loose> | undefined;
1315
+ sample?: {
1316
+ [x: string]: unknown;
1317
+ id: string;
1318
+ body: {
1319
+ [x: string]: unknown;
1320
+ content: string;
1321
+ contentType: string;
1322
+ };
1323
+ createdDateTime?: string | null | undefined;
1324
+ lastModifiedDateTime?: string | null | undefined;
1325
+ chatId?: string | null | undefined;
1326
+ } | undefined;
1327
+ } & {
1328
+ type: "polling";
1329
+ schedule?: string;
1330
+ run(args: import("frogbot").PieceRunArgs<{
1331
+ teamId: string;
1332
+ channelId: string;
1333
+ }, object, {
1334
+ baseUrl: string;
1335
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1336
+ method?: string;
1337
+ body?: unknown;
1338
+ headers?: Record<string, string>;
1339
+ query?: Record<string, string | number>;
1340
+ signal?: AbortSignal;
1341
+ }) => Promise<T>;
1342
+ text(path: string, options?: {
1343
+ method?: string;
1344
+ body?: unknown;
1345
+ headers?: Record<string, string>;
1346
+ query?: Record<string, string | number>;
1347
+ signal?: AbortSignal;
1348
+ }): Promise<string>;
1349
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
1350
+ method?: string;
1351
+ body?: unknown;
1352
+ headers?: Record<string, string>;
1353
+ query?: Record<string, string | number>;
1354
+ signal?: AbortSignal;
1355
+ }) => Promise<T[]>;
1356
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
1357
+ method?: string;
1358
+ body?: unknown;
1359
+ headers?: Record<string, string>;
1360
+ query?: Record<string, string | number>;
1361
+ signal?: AbortSignal;
1362
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
1363
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1364
+ custom(path: string, schema: z.ZodType, options?: {
1365
+ method?: string;
1366
+ body?: unknown;
1367
+ headers?: Record<string, string>;
1368
+ query?: Record<string, string | number>;
1369
+ signal?: AbortSignal;
1370
+ }): Promise<{
1371
+ status: number;
1372
+ body: unknown;
1373
+ }>;
1374
+ }> & {
1375
+ cursor?: ({
1376
+ since: string;
1377
+ } | {
1378
+ since: string;
1379
+ deltaLink: string;
1380
+ }) | undefined;
1381
+ }): Promise<{
1382
+ events: {
1383
+ [x: string]: unknown;
1384
+ id: string;
1385
+ body: {
1386
+ [x: string]: unknown;
1387
+ content: string;
1388
+ contentType: string;
1389
+ };
1390
+ createdDateTime?: string | null | undefined;
1391
+ lastModifiedDateTime?: string | null | undefined;
1392
+ chatId?: string | null | undefined;
1393
+ }[];
1394
+ cursor?: ({
1395
+ since: string;
1396
+ } | {
1397
+ since: string;
1398
+ deltaLink: string;
1399
+ }) | undefined;
1400
+ }>;
1401
+ } & {
1402
+ options: {
1403
+ teamId: typeof import("./options.js").teams;
1404
+ channelId: typeof import("./options.js").channels;
1405
+ };
1406
+ }) | import("frogbot").PiecePollingTrigger<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
1407
+ id: z.ZodString;
1408
+ topic: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1409
+ chatType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1410
+ oneOnOne: "oneOnOne";
1411
+ group: "group";
1412
+ meeting: "meeting";
1413
+ unknownFutureValue: "unknownFutureValue";
1414
+ }>>>;
1415
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1416
+ lastUpdatedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1417
+ members: z.ZodOptional<z.ZodArray<z.ZodObject<{
1418
+ id: z.ZodString;
1419
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1420
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1421
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1422
+ }, z.core.$loose>>>;
1423
+ }, z.core.$loose>, object, {
1424
+ baseUrl: string;
1425
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1426
+ method?: string;
1427
+ body?: unknown;
1428
+ headers?: Record<string, string>;
1429
+ query?: Record<string, string | number>;
1430
+ signal?: AbortSignal;
1431
+ }) => Promise<T>;
1432
+ text(path: string, options?: {
1433
+ method?: string;
1434
+ body?: unknown;
1435
+ headers?: Record<string, string>;
1436
+ query?: Record<string, string | number>;
1437
+ signal?: AbortSignal;
1438
+ }): Promise<string>;
1439
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
1440
+ method?: string;
1441
+ body?: unknown;
1442
+ headers?: Record<string, string>;
1443
+ query?: Record<string, string | number>;
1444
+ signal?: AbortSignal;
1445
+ }) => Promise<T[]>;
1446
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
1447
+ method?: string;
1448
+ body?: unknown;
1449
+ headers?: Record<string, string>;
1450
+ query?: Record<string, string | number>;
1451
+ signal?: AbortSignal;
1452
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
1453
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1454
+ custom(path: string, schema: z.ZodType, options?: {
1455
+ method?: string;
1456
+ body?: unknown;
1457
+ headers?: Record<string, string>;
1458
+ query?: Record<string, string | number>;
1459
+ signal?: AbortSignal;
1460
+ }): Promise<{
1461
+ status: number;
1462
+ body: unknown;
1463
+ }>;
1464
+ }, {
1465
+ since: string;
1466
+ } | {
1467
+ since: string;
1468
+ deltaLink: string;
1469
+ }> | ({
1470
+ slug: string;
1471
+ label?: string;
1472
+ description: string;
1473
+ input: z.ZodObject<{
1474
+ chatId: z.ZodString;
1475
+ }, z.core.$strip>;
1476
+ output?: z.ZodObject<{
1477
+ id: z.ZodString;
1478
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1479
+ lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1480
+ chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1481
+ body: z.ZodObject<{
1482
+ content: z.ZodString;
1483
+ contentType: z.ZodString;
1484
+ }, z.core.$loose>;
1485
+ }, z.core.$loose> | undefined;
1486
+ sample?: {
1487
+ [x: string]: unknown;
1488
+ id: string;
1489
+ body: {
1490
+ [x: string]: unknown;
1491
+ content: string;
1492
+ contentType: string;
1493
+ };
1494
+ createdDateTime?: string | null | undefined;
1495
+ lastModifiedDateTime?: string | null | undefined;
1496
+ chatId?: string | null | undefined;
1497
+ } | undefined;
1498
+ } & {
1499
+ type: "polling";
1500
+ schedule?: string;
1501
+ run(args: import("frogbot").PieceRunArgs<{
1502
+ chatId: string;
1503
+ }, object, {
1504
+ baseUrl: string;
1505
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1506
+ method?: string;
1507
+ body?: unknown;
1508
+ headers?: Record<string, string>;
1509
+ query?: Record<string, string | number>;
1510
+ signal?: AbortSignal;
1511
+ }) => Promise<T>;
1512
+ text(path: string, options?: {
1513
+ method?: string;
1514
+ body?: unknown;
1515
+ headers?: Record<string, string>;
1516
+ query?: Record<string, string | number>;
1517
+ signal?: AbortSignal;
1518
+ }): Promise<string>;
1519
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
1520
+ method?: string;
1521
+ body?: unknown;
1522
+ headers?: Record<string, string>;
1523
+ query?: Record<string, string | number>;
1524
+ signal?: AbortSignal;
1525
+ }) => Promise<T[]>;
1526
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
1527
+ method?: string;
1528
+ body?: unknown;
1529
+ headers?: Record<string, string>;
1530
+ query?: Record<string, string | number>;
1531
+ signal?: AbortSignal;
1532
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
1533
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1534
+ custom(path: string, schema: z.ZodType, options?: {
1535
+ method?: string;
1536
+ body?: unknown;
1537
+ headers?: Record<string, string>;
1538
+ query?: Record<string, string | number>;
1539
+ signal?: AbortSignal;
1540
+ }): Promise<{
1541
+ status: number;
1542
+ body: unknown;
1543
+ }>;
1544
+ }> & {
1545
+ cursor?: ({
1546
+ since: string;
1547
+ } | {
1548
+ since: string;
1549
+ deltaLink: string;
1550
+ }) | undefined;
1551
+ }): Promise<{
1552
+ events: {
1553
+ [x: string]: unknown;
1554
+ id: string;
1555
+ body: {
1556
+ [x: string]: unknown;
1557
+ content: string;
1558
+ contentType: string;
1559
+ };
1560
+ createdDateTime?: string | null | undefined;
1561
+ lastModifiedDateTime?: string | null | undefined;
1562
+ chatId?: string | null | undefined;
1563
+ }[];
1564
+ cursor?: ({
1565
+ since: string;
1566
+ } | {
1567
+ since: string;
1568
+ deltaLink: string;
1569
+ }) | undefined;
1570
+ }>;
1571
+ } & {
1572
+ options: {
1573
+ chatId: typeof import("./options.js").chats;
1574
+ };
1575
+ }) | import("frogbot").PieceAppTrigger)[];
1576
+ }>;
1577
+ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
1578
+ readonly slug: "microsoft-teams";
1579
+ readonly label: "Microsoft Teams";
1580
+ readonly admin: {
1581
+ readonly description: "Manage Teams channels, chats, messages, meetings, and bot activities";
1582
+ readonly group: "Communication";
1583
+ };
1584
+ readonly auth: z.ZodObject<{
1585
+ accessToken: z.ZodOptional<z.ZodString>;
1586
+ appId: z.ZodOptional<z.ZodString>;
1587
+ appPassword: z.ZodOptional<z.ZodString>;
1588
+ cloud: z.ZodDefault<z.ZodLiteral<string>>;
1589
+ tenantId: z.ZodDefault<z.ZodLiteral<string>>;
1590
+ }, z.core.$strip>;
1591
+ readonly options: z.ZodObject<{
1592
+ botAppType: z.ZodDefault<z.ZodEnum<{
1593
+ MultiTenant: "MultiTenant";
1594
+ SingleTenant: "SingleTenant";
1595
+ }>>;
1596
+ botTenantId: z.ZodOptional<z.ZodString>;
1597
+ botApiUrl: z.ZodOptional<z.ZodURL>;
1598
+ botUsername: z.ZodDefault<z.ZodString>;
1599
+ }, z.core.$strip>;
1600
+ readonly client: typeof createMicrosoftTeamsClient;
1601
+ readonly oauth: {
1602
+ authorizationUrl: string;
1603
+ tokenUrl: string;
1604
+ scopes: string[];
1605
+ params: {
1606
+ prompt: string;
1607
+ };
1608
+ toAuth: ({ tokens }: {
1609
+ tokens: import("frogbot").OAuthTokens;
1610
+ }) => {
1611
+ accessToken: string;
1612
+ cloud: string;
1613
+ tenantId: string;
1614
+ };
1615
+ account({ client }: {
1616
+ tokens: import("frogbot").OAuthTokens;
1617
+ client: {
1618
+ baseUrl: string;
1619
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1620
+ method?: string;
1621
+ body?: unknown;
1622
+ headers?: Record<string, string>;
1623
+ query?: Record<string, string | number>;
1624
+ signal?: AbortSignal;
1625
+ }) => Promise<T>;
1626
+ text(path: string, options?: {
1627
+ method?: string;
1628
+ body?: unknown;
1629
+ headers?: Record<string, string>;
1630
+ query?: Record<string, string | number>;
1631
+ signal?: AbortSignal;
1632
+ }): Promise<string>;
1633
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
1634
+ method?: string;
1635
+ body?: unknown;
1636
+ headers?: Record<string, string>;
1637
+ query?: Record<string, string | number>;
1638
+ signal?: AbortSignal;
1639
+ }) => Promise<T[]>;
1640
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
1641
+ method?: string;
1642
+ body?: unknown;
1643
+ headers?: Record<string, string>;
1644
+ query?: Record<string, string | number>;
1645
+ signal?: AbortSignal;
1646
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
1647
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1648
+ custom(path: string, schema: z.ZodType, options?: {
1649
+ method?: string;
1650
+ body?: unknown;
1651
+ headers?: Record<string, string>;
1652
+ query?: Record<string, string | number>;
1653
+ signal?: AbortSignal;
1654
+ }): Promise<{
1655
+ status: number;
1656
+ body: unknown;
1657
+ }>;
1658
+ };
1659
+ req: import("frogbot").FrogbotRequest;
1660
+ }): Promise<{
1661
+ id: string;
1662
+ label: string;
1663
+ email: string;
1664
+ }>;
1665
+ };
1666
+ readonly webhook: {
1667
+ parse({ req }: {
1668
+ req: import("frogbot").FrogbotRequest;
1669
+ }): {
1670
+ event: string;
1671
+ };
1672
+ };
1673
+ readonly channel: {
1674
+ adapter({ auth, options }: {
1675
+ auth: {
1676
+ cloud: string;
1677
+ tenantId: string;
1678
+ accessToken?: string | undefined;
1679
+ appId?: string | undefined;
1680
+ appPassword?: string | undefined;
1681
+ };
1682
+ options: {
1683
+ botAppType: "MultiTenant" | "SingleTenant";
1684
+ botUsername: string;
1685
+ botTenantId?: string | undefined;
1686
+ botApiUrl?: string | undefined;
1687
+ };
1688
+ }): import("@chat-adapter/teams").TeamsAdapter;
1689
+ identity({ author, req }: {
1690
+ author: import("chat").Author;
1691
+ client: {
1692
+ baseUrl: string;
1693
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1694
+ method?: string;
1695
+ body?: unknown;
1696
+ headers?: Record<string, string>;
1697
+ query?: Record<string, string | number>;
1698
+ signal?: AbortSignal;
1699
+ }) => Promise<T>;
1700
+ text(path: string, options?: {
1701
+ method?: string;
1702
+ body?: unknown;
1703
+ headers?: Record<string, string>;
1704
+ query?: Record<string, string | number>;
1705
+ signal?: AbortSignal;
1706
+ }): Promise<string>;
1707
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
1708
+ method?: string;
1709
+ body?: unknown;
1710
+ headers?: Record<string, string>;
1711
+ query?: Record<string, string | number>;
1712
+ signal?: AbortSignal;
1713
+ }) => Promise<T[]>;
1714
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
1715
+ method?: string;
1716
+ body?: unknown;
1717
+ headers?: Record<string, string>;
1718
+ query?: Record<string, string | number>;
1719
+ signal?: AbortSignal;
1720
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
1721
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1722
+ custom(path: string, schema: z.ZodType, options?: {
1723
+ method?: string;
1724
+ body?: unknown;
1725
+ headers?: Record<string, string>;
1726
+ query?: Record<string, string | number>;
1727
+ signal?: AbortSignal;
1728
+ }): Promise<{
1729
+ status: number;
1730
+ body: unknown;
1731
+ }>;
1732
+ };
1733
+ req: import("frogbot").FrogbotRequest;
1734
+ }): Promise<{
1735
+ collection: string;
1736
+ id: string | number;
1737
+ } | null>;
1738
+ };
1739
+ readonly actions: ({
1740
+ slug: string;
1741
+ description: string;
1742
+ input: z.ZodObject<{
1743
+ channelDisplayName: z.ZodString;
1744
+ channelDescription: z.ZodOptional<z.ZodString>;
1745
+ teamId: z.ZodString;
1746
+ }, z.core.$strip>;
1747
+ output: z.ZodObject<{
1748
+ id: z.ZodString;
1749
+ displayName: z.ZodString;
1750
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1751
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1752
+ membershipType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1753
+ isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1754
+ }, z.core.$loose>;
1755
+ options: {
1756
+ teamId: typeof import("./options.js").teams;
1757
+ };
1758
+ idempotent: boolean;
1759
+ run({ client, input, req }: {
1760
+ input: {
1761
+ channelDisplayName: string;
1762
+ teamId: string;
1763
+ channelDescription?: string | undefined;
1764
+ };
1765
+ client: {
1766
+ baseUrl: string;
1767
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1768
+ method?: string;
1769
+ body?: unknown;
1770
+ headers?: Record<string, string>;
1771
+ query?: Record<string, string | number>;
1772
+ signal?: AbortSignal;
1773
+ }) => Promise<T>;
1774
+ text(path: string, options?: {
1775
+ method?: string;
1776
+ body?: unknown;
1777
+ headers?: Record<string, string>;
1778
+ query?: Record<string, string | number>;
1779
+ signal?: AbortSignal;
1780
+ }): Promise<string>;
1781
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
1782
+ method?: string;
1783
+ body?: unknown;
1784
+ headers?: Record<string, string>;
1785
+ query?: Record<string, string | number>;
1786
+ signal?: AbortSignal;
1787
+ }) => Promise<T[]>;
1788
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
1789
+ method?: string;
1790
+ body?: unknown;
1791
+ headers?: Record<string, string>;
1792
+ query?: Record<string, string | number>;
1793
+ signal?: AbortSignal;
1794
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
1795
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1796
+ custom(path: string, schema: z.ZodType, options?: {
1797
+ method?: string;
1798
+ body?: unknown;
1799
+ headers?: Record<string, string>;
1800
+ query?: Record<string, string | number>;
1801
+ signal?: AbortSignal;
1802
+ }): Promise<{
1803
+ status: number;
1804
+ body: unknown;
1805
+ }>;
1806
+ };
1807
+ options: object;
1808
+ req: import("frogbot").FrogbotRequest;
1809
+ }): Promise<{
1810
+ [x: string]: unknown;
1811
+ id: string;
1812
+ displayName: string;
1813
+ description?: string | null | undefined;
1814
+ createdDateTime?: string | null | undefined;
1815
+ membershipType?: string | null | undefined;
1816
+ isArchived?: boolean | null | undefined;
1817
+ }>;
1818
+ } | {
1819
+ slug: string;
1820
+ description: string;
1821
+ input: z.ZodObject<{
1822
+ contentType: z.ZodDefault<z.ZodEnum<{
1823
+ text: "text";
1824
+ html: "html";
1825
+ }>>;
1826
+ content: z.ZodString;
1827
+ channelId: z.ZodString;
1828
+ teamId: z.ZodString;
1829
+ }, z.core.$strip>;
1830
+ output: z.ZodObject<{
1831
+ id: z.ZodString;
1832
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1833
+ lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1834
+ chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1835
+ body: z.ZodObject<{
1836
+ content: z.ZodString;
1837
+ contentType: z.ZodString;
1838
+ }, z.core.$loose>;
1839
+ }, z.core.$loose>;
1840
+ options: {
1841
+ teamId: typeof import("./options.js").teams;
1842
+ channelId: typeof import("./options.js").channels;
1843
+ };
1844
+ idempotent: boolean;
1845
+ run({ client, input, req }: {
1846
+ input: {
1847
+ contentType: "text" | "html";
1848
+ content: string;
1849
+ channelId: string;
1850
+ teamId: string;
1851
+ };
1852
+ client: {
1853
+ baseUrl: string;
1854
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1855
+ method?: string;
1856
+ body?: unknown;
1857
+ headers?: Record<string, string>;
1858
+ query?: Record<string, string | number>;
1859
+ signal?: AbortSignal;
1860
+ }) => Promise<T>;
1861
+ text(path: string, options?: {
1862
+ method?: string;
1863
+ body?: unknown;
1864
+ headers?: Record<string, string>;
1865
+ query?: Record<string, string | number>;
1866
+ signal?: AbortSignal;
1867
+ }): Promise<string>;
1868
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
1869
+ method?: string;
1870
+ body?: unknown;
1871
+ headers?: Record<string, string>;
1872
+ query?: Record<string, string | number>;
1873
+ signal?: AbortSignal;
1874
+ }) => Promise<T[]>;
1875
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
1876
+ method?: string;
1877
+ body?: unknown;
1878
+ headers?: Record<string, string>;
1879
+ query?: Record<string, string | number>;
1880
+ signal?: AbortSignal;
1881
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
1882
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1883
+ custom(path: string, schema: z.ZodType, options?: {
1884
+ method?: string;
1885
+ body?: unknown;
1886
+ headers?: Record<string, string>;
1887
+ query?: Record<string, string | number>;
1888
+ signal?: AbortSignal;
1889
+ }): Promise<{
1890
+ status: number;
1891
+ body: unknown;
1892
+ }>;
1893
+ };
1894
+ options: object;
1895
+ req: import("frogbot").FrogbotRequest;
1896
+ }): Promise<{
1897
+ [x: string]: unknown;
1898
+ id: string;
1899
+ body: {
1900
+ [x: string]: unknown;
1901
+ content: string;
1902
+ contentType: string;
1903
+ };
1904
+ createdDateTime?: string | null | undefined;
1905
+ lastModifiedDateTime?: string | null | undefined;
1906
+ chatId?: string | null | undefined;
1907
+ }>;
1908
+ } | {
1909
+ slug: string;
1910
+ description: string;
1911
+ input: z.ZodObject<{
1912
+ contentType: z.ZodDefault<z.ZodEnum<{
1913
+ text: "text";
1914
+ html: "html";
1915
+ }>>;
1916
+ content: z.ZodString;
1917
+ chatId: z.ZodString;
1918
+ }, z.core.$strip>;
1919
+ output: z.ZodObject<{
1920
+ id: z.ZodString;
1921
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1922
+ lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1923
+ chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1924
+ body: z.ZodObject<{
1925
+ content: z.ZodString;
1926
+ contentType: z.ZodString;
1927
+ }, z.core.$loose>;
1928
+ }, z.core.$loose>;
1929
+ options: {
1930
+ chatId: typeof import("./options.js").chats;
1931
+ };
1932
+ idempotent: boolean;
1933
+ run({ client, input, req }: {
1934
+ input: {
1935
+ contentType: "text" | "html";
1936
+ content: string;
1937
+ chatId: string;
1938
+ };
1939
+ client: {
1940
+ baseUrl: string;
1941
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1942
+ method?: string;
1943
+ body?: unknown;
1944
+ headers?: Record<string, string>;
1945
+ query?: Record<string, string | number>;
1946
+ signal?: AbortSignal;
1947
+ }) => Promise<T>;
1948
+ text(path: string, options?: {
1949
+ method?: string;
1950
+ body?: unknown;
1951
+ headers?: Record<string, string>;
1952
+ query?: Record<string, string | number>;
1953
+ signal?: AbortSignal;
1954
+ }): Promise<string>;
1955
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
1956
+ method?: string;
1957
+ body?: unknown;
1958
+ headers?: Record<string, string>;
1959
+ query?: Record<string, string | number>;
1960
+ signal?: AbortSignal;
1961
+ }) => Promise<T[]>;
1962
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
1963
+ method?: string;
1964
+ body?: unknown;
1965
+ headers?: Record<string, string>;
1966
+ query?: Record<string, string | number>;
1967
+ signal?: AbortSignal;
1968
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
1969
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1970
+ custom(path: string, schema: z.ZodType, options?: {
1971
+ method?: string;
1972
+ body?: unknown;
1973
+ headers?: Record<string, string>;
1974
+ query?: Record<string, string | number>;
1975
+ signal?: AbortSignal;
1976
+ }): Promise<{
1977
+ status: number;
1978
+ body: unknown;
1979
+ }>;
1980
+ };
1981
+ options: object;
1982
+ req: import("frogbot").FrogbotRequest;
1983
+ }): Promise<{
1984
+ [x: string]: unknown;
1985
+ id: string;
1986
+ body: {
1987
+ [x: string]: unknown;
1988
+ content: string;
1989
+ contentType: string;
1990
+ };
1991
+ createdDateTime?: string | null | undefined;
1992
+ lastModifiedDateTime?: string | null | undefined;
1993
+ chatId?: string | null | undefined;
1994
+ }>;
1995
+ } | {
1996
+ slug: string;
1997
+ description: string;
1998
+ input: z.ZodObject<{
1999
+ contentType: z.ZodDefault<z.ZodEnum<{
2000
+ text: "text";
2001
+ html: "html";
2002
+ }>>;
2003
+ content: z.ZodString;
2004
+ members: z.ZodArray<z.ZodString>;
2005
+ teamId: z.ZodString;
2006
+ }, z.core.$strip>;
2007
+ output: z.ZodObject<{
2008
+ chat: z.ZodObject<{
2009
+ id: z.ZodString;
2010
+ topic: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2011
+ chatType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2012
+ oneOnOne: "oneOnOne";
2013
+ group: "group";
2014
+ meeting: "meeting";
2015
+ unknownFutureValue: "unknownFutureValue";
2016
+ }>>>;
2017
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2018
+ lastUpdatedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2019
+ members: z.ZodOptional<z.ZodArray<z.ZodObject<{
2020
+ id: z.ZodString;
2021
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2022
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2023
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2024
+ }, z.core.$loose>>>;
2025
+ }, z.core.$loose>;
2026
+ message: z.ZodObject<{
2027
+ id: z.ZodString;
2028
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2029
+ lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2030
+ chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2031
+ body: z.ZodObject<{
2032
+ content: z.ZodString;
2033
+ contentType: z.ZodString;
2034
+ }, z.core.$loose>;
2035
+ }, z.core.$loose>;
2036
+ }, z.core.$strip>;
2037
+ options: {
2038
+ teamId: typeof import("./options.js").teams;
2039
+ members: typeof import("./options.js").members;
2040
+ };
2041
+ idempotent: boolean;
2042
+ run({ client, input, req }: {
2043
+ input: {
2044
+ contentType: "text" | "html";
2045
+ content: string;
2046
+ members: string[];
2047
+ teamId: string;
2048
+ };
2049
+ client: {
2050
+ baseUrl: string;
2051
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
2052
+ method?: string;
2053
+ body?: unknown;
2054
+ headers?: Record<string, string>;
2055
+ query?: Record<string, string | number>;
2056
+ signal?: AbortSignal;
2057
+ }) => Promise<T>;
2058
+ text(path: string, options?: {
2059
+ method?: string;
2060
+ body?: unknown;
2061
+ headers?: Record<string, string>;
2062
+ query?: Record<string, string | number>;
2063
+ signal?: AbortSignal;
2064
+ }): Promise<string>;
2065
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
2066
+ method?: string;
2067
+ body?: unknown;
2068
+ headers?: Record<string, string>;
2069
+ query?: Record<string, string | number>;
2070
+ signal?: AbortSignal;
2071
+ }) => Promise<T[]>;
2072
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
2073
+ method?: string;
2074
+ body?: unknown;
2075
+ headers?: Record<string, string>;
2076
+ query?: Record<string, string | number>;
2077
+ signal?: AbortSignal;
2078
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
2079
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
2080
+ custom(path: string, schema: z.ZodType, options?: {
2081
+ method?: string;
2082
+ body?: unknown;
2083
+ headers?: Record<string, string>;
2084
+ query?: Record<string, string | number>;
2085
+ signal?: AbortSignal;
2086
+ }): Promise<{
2087
+ status: number;
2088
+ body: unknown;
2089
+ }>;
2090
+ };
2091
+ options: object;
2092
+ req: import("frogbot").FrogbotRequest;
2093
+ }): Promise<{
2094
+ chat: {
2095
+ [x: string]: unknown;
2096
+ id: string;
2097
+ topic?: string | null | undefined;
2098
+ chatType?: "oneOnOne" | "group" | "meeting" | "unknownFutureValue" | null | undefined;
2099
+ createdDateTime?: string | null | undefined;
2100
+ lastUpdatedDateTime?: string | null | undefined;
2101
+ members?: {
2102
+ [x: string]: unknown;
2103
+ id: string;
2104
+ displayName?: string | null | undefined;
2105
+ email?: string | null | undefined;
2106
+ userId?: string | null | undefined;
2107
+ }[] | undefined;
2108
+ };
2109
+ message: {
2110
+ [x: string]: unknown;
2111
+ id: string;
2112
+ body: {
2113
+ [x: string]: unknown;
2114
+ content: string;
2115
+ contentType: string;
2116
+ };
2117
+ createdDateTime?: string | null | undefined;
2118
+ lastModifiedDateTime?: string | null | undefined;
2119
+ chatId?: string | null | undefined;
2120
+ };
2121
+ }>;
2122
+ } | {
2123
+ slug: string;
2124
+ description: string;
2125
+ input: z.ZodObject<{
2126
+ messageId: z.ZodString;
2127
+ chatId: z.ZodString;
2128
+ }, z.core.$strip>;
2129
+ output: z.ZodObject<{
2130
+ id: z.ZodString;
2131
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2132
+ lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2133
+ chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2134
+ body: z.ZodObject<{
2135
+ content: z.ZodString;
2136
+ contentType: z.ZodString;
2137
+ }, z.core.$loose>;
2138
+ }, z.core.$loose>;
2139
+ options: {
2140
+ chatId: typeof import("./options.js").chats;
2141
+ };
2142
+ idempotent: boolean;
2143
+ run({ client, input, req }: {
2144
+ input: {
2145
+ messageId: string;
2146
+ chatId: string;
2147
+ };
2148
+ client: {
2149
+ baseUrl: string;
2150
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
2151
+ method?: string;
2152
+ body?: unknown;
2153
+ headers?: Record<string, string>;
2154
+ query?: Record<string, string | number>;
2155
+ signal?: AbortSignal;
2156
+ }) => Promise<T>;
2157
+ text(path: string, options?: {
2158
+ method?: string;
2159
+ body?: unknown;
2160
+ headers?: Record<string, string>;
2161
+ query?: Record<string, string | number>;
2162
+ signal?: AbortSignal;
2163
+ }): Promise<string>;
2164
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
2165
+ method?: string;
2166
+ body?: unknown;
2167
+ headers?: Record<string, string>;
2168
+ query?: Record<string, string | number>;
2169
+ signal?: AbortSignal;
2170
+ }) => Promise<T[]>;
2171
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
2172
+ method?: string;
2173
+ body?: unknown;
2174
+ headers?: Record<string, string>;
2175
+ query?: Record<string, string | number>;
2176
+ signal?: AbortSignal;
2177
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
2178
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
2179
+ custom(path: string, schema: z.ZodType, options?: {
2180
+ method?: string;
2181
+ body?: unknown;
2182
+ headers?: Record<string, string>;
2183
+ query?: Record<string, string | number>;
2184
+ signal?: AbortSignal;
2185
+ }): Promise<{
2186
+ status: number;
2187
+ body: unknown;
2188
+ }>;
2189
+ };
2190
+ options: object;
2191
+ req: import("frogbot").FrogbotRequest;
2192
+ }): Promise<{
2193
+ [x: string]: unknown;
2194
+ id: string;
2195
+ body: {
2196
+ [x: string]: unknown;
2197
+ content: string;
2198
+ contentType: string;
2199
+ };
2200
+ createdDateTime?: string | null | undefined;
2201
+ lastModifiedDateTime?: string | null | undefined;
2202
+ chatId?: string | null | undefined;
2203
+ }>;
2204
+ } | {
2205
+ slug: string;
2206
+ description: string;
2207
+ input: z.ZodObject<{
2208
+ messageId: z.ZodString;
2209
+ chatId: z.ZodString;
2210
+ }, z.core.$strip>;
2211
+ output: z.ZodObject<{
2212
+ success: z.ZodLiteral<true>;
2213
+ messageId: z.ZodString;
2214
+ chatId: z.ZodString;
2215
+ }, z.core.$strip>;
2216
+ options: {
2217
+ chatId: typeof import("./options.js").chats;
2218
+ };
2219
+ idempotent: boolean;
2220
+ run({ client, input, req }: {
2221
+ input: {
2222
+ messageId: string;
2223
+ chatId: string;
2224
+ };
2225
+ client: {
2226
+ baseUrl: string;
2227
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
2228
+ method?: string;
2229
+ body?: unknown;
2230
+ headers?: Record<string, string>;
2231
+ query?: Record<string, string | number>;
2232
+ signal?: AbortSignal;
2233
+ }) => Promise<T>;
2234
+ text(path: string, options?: {
2235
+ method?: string;
2236
+ body?: unknown;
2237
+ headers?: Record<string, string>;
2238
+ query?: Record<string, string | number>;
2239
+ signal?: AbortSignal;
2240
+ }): Promise<string>;
2241
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
2242
+ method?: string;
2243
+ body?: unknown;
2244
+ headers?: Record<string, string>;
2245
+ query?: Record<string, string | number>;
2246
+ signal?: AbortSignal;
2247
+ }) => Promise<T[]>;
2248
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
2249
+ method?: string;
2250
+ body?: unknown;
2251
+ headers?: Record<string, string>;
2252
+ query?: Record<string, string | number>;
2253
+ signal?: AbortSignal;
2254
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
2255
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
2256
+ custom(path: string, schema: z.ZodType, options?: {
2257
+ method?: string;
2258
+ body?: unknown;
2259
+ headers?: Record<string, string>;
2260
+ query?: Record<string, string | number>;
2261
+ signal?: AbortSignal;
2262
+ }): Promise<{
2263
+ status: number;
2264
+ body: unknown;
2265
+ }>;
2266
+ };
2267
+ options: object;
2268
+ req: import("frogbot").FrogbotRequest;
2269
+ }): Promise<{
2270
+ success: boolean;
2271
+ messageId: string;
2272
+ chatId: string;
2273
+ }>;
2274
+ } | {
2275
+ slug: string;
2276
+ description: string;
2277
+ input: z.ZodObject<{
2278
+ messageId: z.ZodString;
2279
+ replyId: z.ZodOptional<z.ZodString>;
2280
+ channelId: z.ZodString;
2281
+ teamId: z.ZodString;
2282
+ }, z.core.$strip>;
2283
+ output: z.ZodObject<{
2284
+ id: z.ZodString;
2285
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2286
+ lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2287
+ chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2288
+ body: z.ZodObject<{
2289
+ content: z.ZodString;
2290
+ contentType: z.ZodString;
2291
+ }, z.core.$loose>;
2292
+ }, z.core.$loose>;
2293
+ options: {
2294
+ teamId: typeof import("./options.js").teams;
2295
+ channelId: typeof import("./options.js").channels;
2296
+ };
2297
+ idempotent: boolean;
2298
+ run({ client, input, req }: {
2299
+ input: {
2300
+ messageId: string;
2301
+ channelId: string;
2302
+ teamId: string;
2303
+ replyId?: string | undefined;
2304
+ };
2305
+ client: {
2306
+ baseUrl: string;
2307
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
2308
+ method?: string;
2309
+ body?: unknown;
2310
+ headers?: Record<string, string>;
2311
+ query?: Record<string, string | number>;
2312
+ signal?: AbortSignal;
2313
+ }) => Promise<T>;
2314
+ text(path: string, options?: {
2315
+ method?: string;
2316
+ body?: unknown;
2317
+ headers?: Record<string, string>;
2318
+ query?: Record<string, string | number>;
2319
+ signal?: AbortSignal;
2320
+ }): Promise<string>;
2321
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
2322
+ method?: string;
2323
+ body?: unknown;
2324
+ headers?: Record<string, string>;
2325
+ query?: Record<string, string | number>;
2326
+ signal?: AbortSignal;
2327
+ }) => Promise<T[]>;
2328
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
2329
+ method?: string;
2330
+ body?: unknown;
2331
+ headers?: Record<string, string>;
2332
+ query?: Record<string, string | number>;
2333
+ signal?: AbortSignal;
2334
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
2335
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
2336
+ custom(path: string, schema: z.ZodType, options?: {
2337
+ method?: string;
2338
+ body?: unknown;
2339
+ headers?: Record<string, string>;
2340
+ query?: Record<string, string | number>;
2341
+ signal?: AbortSignal;
2342
+ }): Promise<{
2343
+ status: number;
2344
+ body: unknown;
2345
+ }>;
2346
+ };
2347
+ options: object;
2348
+ req: import("frogbot").FrogbotRequest;
2349
+ }): Promise<{
2350
+ [x: string]: unknown;
2351
+ id: string;
2352
+ body: {
2353
+ [x: string]: unknown;
2354
+ content: string;
2355
+ contentType: string;
2356
+ };
2357
+ createdDateTime?: string | null | undefined;
2358
+ lastModifiedDateTime?: string | null | undefined;
2359
+ chatId?: string | null | undefined;
2360
+ }>;
2361
+ } | {
2362
+ slug: string;
2363
+ description: string;
2364
+ input: z.ZodObject<{
2365
+ channelName: z.ZodString;
2366
+ teamId: z.ZodString;
2367
+ }, z.core.$strip>;
2368
+ output: z.ZodObject<{
2369
+ found: z.ZodBoolean;
2370
+ result: z.ZodArray<z.ZodObject<{
2371
+ id: z.ZodString;
2372
+ displayName: z.ZodString;
2373
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2374
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2375
+ membershipType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2376
+ isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2377
+ }, z.core.$loose>>;
2378
+ }, z.core.$strip>;
2379
+ options: {
2380
+ teamId: typeof import("./options.js").teams;
2381
+ };
2382
+ idempotent: boolean;
2383
+ run({ client, input, req }: {
2384
+ input: {
2385
+ channelName: string;
2386
+ teamId: string;
2387
+ };
2388
+ client: {
2389
+ baseUrl: string;
2390
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
2391
+ method?: string;
2392
+ body?: unknown;
2393
+ headers?: Record<string, string>;
2394
+ query?: Record<string, string | number>;
2395
+ signal?: AbortSignal;
2396
+ }) => Promise<T>;
2397
+ text(path: string, options?: {
2398
+ method?: string;
2399
+ body?: unknown;
2400
+ headers?: Record<string, string>;
2401
+ query?: Record<string, string | number>;
2402
+ signal?: AbortSignal;
2403
+ }): Promise<string>;
2404
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
2405
+ method?: string;
2406
+ body?: unknown;
2407
+ headers?: Record<string, string>;
2408
+ query?: Record<string, string | number>;
2409
+ signal?: AbortSignal;
2410
+ }) => Promise<T[]>;
2411
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
2412
+ method?: string;
2413
+ body?: unknown;
2414
+ headers?: Record<string, string>;
2415
+ query?: Record<string, string | number>;
2416
+ signal?: AbortSignal;
2417
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
2418
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
2419
+ custom(path: string, schema: z.ZodType, options?: {
2420
+ method?: string;
2421
+ body?: unknown;
2422
+ headers?: Record<string, string>;
2423
+ query?: Record<string, string | number>;
2424
+ signal?: AbortSignal;
2425
+ }): Promise<{
2426
+ status: number;
2427
+ body: unknown;
2428
+ }>;
2429
+ };
2430
+ options: object;
2431
+ req: import("frogbot").FrogbotRequest;
2432
+ }): Promise<{
2433
+ found: boolean;
2434
+ result: {
2435
+ [x: string]: unknown;
2436
+ id: string;
2437
+ displayName: string;
2438
+ description?: string | null | undefined;
2439
+ createdDateTime?: string | null | undefined;
2440
+ membershipType?: string | null | undefined;
2441
+ isArchived?: boolean | null | undefined;
2442
+ }[];
2443
+ }>;
2444
+ } | {
2445
+ slug: string;
2446
+ description: string;
2447
+ input: z.ZodObject<{
2448
+ searchBy: z.ZodDefault<z.ZodEnum<{
2449
+ email: "email";
2450
+ name: "name";
2451
+ }>>;
2452
+ searchValue: z.ZodString;
2453
+ teamId: z.ZodString;
2454
+ }, z.core.$strip>;
2455
+ output: z.ZodObject<{
2456
+ found: z.ZodBoolean;
2457
+ result: z.ZodArray<z.ZodObject<{
2458
+ id: z.ZodString;
2459
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2460
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2461
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2462
+ }, z.core.$loose>>;
2463
+ }, z.core.$strip>;
2464
+ options: {
2465
+ teamId: typeof import("./options.js").teams;
2466
+ };
2467
+ idempotent: boolean;
2468
+ run({ client, input, req }: {
2469
+ input: {
2470
+ searchBy: "email" | "name";
2471
+ searchValue: string;
2472
+ teamId: string;
2473
+ };
2474
+ client: {
2475
+ baseUrl: string;
2476
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
2477
+ method?: string;
2478
+ body?: unknown;
2479
+ headers?: Record<string, string>;
2480
+ query?: Record<string, string | number>;
2481
+ signal?: AbortSignal;
2482
+ }) => Promise<T>;
2483
+ text(path: string, options?: {
2484
+ method?: string;
2485
+ body?: unknown;
2486
+ headers?: Record<string, string>;
2487
+ query?: Record<string, string | number>;
2488
+ signal?: AbortSignal;
2489
+ }): Promise<string>;
2490
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
2491
+ method?: string;
2492
+ body?: unknown;
2493
+ headers?: Record<string, string>;
2494
+ query?: Record<string, string | number>;
2495
+ signal?: AbortSignal;
2496
+ }) => Promise<T[]>;
2497
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
2498
+ method?: string;
2499
+ body?: unknown;
2500
+ headers?: Record<string, string>;
2501
+ query?: Record<string, string | number>;
2502
+ signal?: AbortSignal;
2503
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
2504
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
2505
+ custom(path: string, schema: z.ZodType, options?: {
2506
+ method?: string;
2507
+ body?: unknown;
2508
+ headers?: Record<string, string>;
2509
+ query?: Record<string, string | number>;
2510
+ signal?: AbortSignal;
2511
+ }): Promise<{
2512
+ status: number;
2513
+ body: unknown;
2514
+ }>;
2515
+ };
2516
+ options: object;
2517
+ req: import("frogbot").FrogbotRequest;
2518
+ }): Promise<{
2519
+ found: boolean;
2520
+ result: {
2521
+ [x: string]: unknown;
2522
+ id: string;
2523
+ displayName?: string | null | undefined;
2524
+ email?: string | null | undefined;
2525
+ userId?: string | null | undefined;
2526
+ }[];
2527
+ }>;
2528
+ } | {
2529
+ slug: string;
2530
+ description: string;
2531
+ input: z.ZodObject<{
2532
+ transcriptId: z.ZodOptional<z.ZodString>;
2533
+ meetingIdentifierType: z.ZodDefault<z.ZodEnum<{
2534
+ meetingId: "meetingId";
2535
+ joinWebUrl: "joinWebUrl";
2536
+ joinMeetingId: "joinMeetingId";
2537
+ }>>;
2538
+ meetingIdentifierValue: z.ZodString;
2539
+ }, z.core.$strip>;
2540
+ output: z.ZodUnion<readonly [z.ZodObject<{
2541
+ content: z.ZodString;
2542
+ }, z.core.$strip>, z.ZodType<import("./schemas.js").GraphPage<{
2543
+ [x: string]: unknown;
2544
+ id: string;
2545
+ createdDateTime?: string | null | undefined;
2546
+ }>, unknown, z.core.$ZodTypeInternals<import("./schemas.js").GraphPage<{
2547
+ [x: string]: unknown;
2548
+ id: string;
2549
+ createdDateTime?: string | null | undefined;
2550
+ }>, unknown>>]>;
2551
+ idempotent: boolean;
2552
+ run({ client, input, req }: {
2553
+ input: {
2554
+ meetingIdentifierType: "meetingId" | "joinWebUrl" | "joinMeetingId";
2555
+ meetingIdentifierValue: string;
2556
+ transcriptId?: string | undefined;
2557
+ };
2558
+ client: {
2559
+ baseUrl: string;
2560
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
2561
+ method?: string;
2562
+ body?: unknown;
2563
+ headers?: Record<string, string>;
2564
+ query?: Record<string, string | number>;
2565
+ signal?: AbortSignal;
2566
+ }) => Promise<T>;
2567
+ text(path: string, options?: {
2568
+ method?: string;
2569
+ body?: unknown;
2570
+ headers?: Record<string, string>;
2571
+ query?: Record<string, string | number>;
2572
+ signal?: AbortSignal;
2573
+ }): Promise<string>;
2574
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
2575
+ method?: string;
2576
+ body?: unknown;
2577
+ headers?: Record<string, string>;
2578
+ query?: Record<string, string | number>;
2579
+ signal?: AbortSignal;
2580
+ }) => Promise<T[]>;
2581
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
2582
+ method?: string;
2583
+ body?: unknown;
2584
+ headers?: Record<string, string>;
2585
+ query?: Record<string, string | number>;
2586
+ signal?: AbortSignal;
2587
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
2588
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
2589
+ custom(path: string, schema: z.ZodType, options?: {
2590
+ method?: string;
2591
+ body?: unknown;
2592
+ headers?: Record<string, string>;
2593
+ query?: Record<string, string | number>;
2594
+ signal?: AbortSignal;
2595
+ }): Promise<{
2596
+ status: number;
2597
+ body: unknown;
2598
+ }>;
2599
+ };
2600
+ options: object;
2601
+ req: import("frogbot").FrogbotRequest;
2602
+ }): Promise<import("./schemas.js").GraphPage<{
2603
+ [x: string]: unknown;
2604
+ id: string;
2605
+ createdDateTime?: string | null | undefined;
2606
+ }> | {
2607
+ content: string;
2608
+ }>;
2609
+ } | {
2610
+ slug: string;
2611
+ description: string;
2612
+ input: z.ZodObject<{
2613
+ recordingId: z.ZodOptional<z.ZodString>;
2614
+ meetingIdentifierType: z.ZodDefault<z.ZodEnum<{
2615
+ meetingId: "meetingId";
2616
+ joinWebUrl: "joinWebUrl";
2617
+ joinMeetingId: "joinMeetingId";
2618
+ }>>;
2619
+ meetingIdentifierValue: z.ZodString;
2620
+ }, z.core.$strip>;
2621
+ output: z.ZodUnion<readonly [z.ZodObject<{
2622
+ id: z.ZodString;
2623
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2624
+ }, z.core.$loose>, z.ZodType<import("./schemas.js").GraphPage<{
2625
+ [x: string]: unknown;
2626
+ id: string;
2627
+ createdDateTime?: string | null | undefined;
2628
+ }>, unknown, z.core.$ZodTypeInternals<import("./schemas.js").GraphPage<{
2629
+ [x: string]: unknown;
2630
+ id: string;
2631
+ createdDateTime?: string | null | undefined;
2632
+ }>, unknown>>]>;
2633
+ idempotent: boolean;
2634
+ run({ client, input, req }: {
2635
+ input: {
2636
+ meetingIdentifierType: "meetingId" | "joinWebUrl" | "joinMeetingId";
2637
+ meetingIdentifierValue: string;
2638
+ recordingId?: string | undefined;
2639
+ };
2640
+ client: {
2641
+ baseUrl: string;
2642
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
2643
+ method?: string;
2644
+ body?: unknown;
2645
+ headers?: Record<string, string>;
2646
+ query?: Record<string, string | number>;
2647
+ signal?: AbortSignal;
2648
+ }) => Promise<T>;
2649
+ text(path: string, options?: {
2650
+ method?: string;
2651
+ body?: unknown;
2652
+ headers?: Record<string, string>;
2653
+ query?: Record<string, string | number>;
2654
+ signal?: AbortSignal;
2655
+ }): Promise<string>;
2656
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
2657
+ method?: string;
2658
+ body?: unknown;
2659
+ headers?: Record<string, string>;
2660
+ query?: Record<string, string | number>;
2661
+ signal?: AbortSignal;
2662
+ }) => Promise<T[]>;
2663
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
2664
+ method?: string;
2665
+ body?: unknown;
2666
+ headers?: Record<string, string>;
2667
+ query?: Record<string, string | number>;
2668
+ signal?: AbortSignal;
2669
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
2670
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
2671
+ custom(path: string, schema: z.ZodType, options?: {
2672
+ method?: string;
2673
+ body?: unknown;
2674
+ headers?: Record<string, string>;
2675
+ query?: Record<string, string | number>;
2676
+ signal?: AbortSignal;
2677
+ }): Promise<{
2678
+ status: number;
2679
+ body: unknown;
2680
+ }>;
2681
+ };
2682
+ options: object;
2683
+ req: import("frogbot").FrogbotRequest;
2684
+ }): Promise<{
2685
+ [x: string]: unknown;
2686
+ id: string;
2687
+ createdDateTime?: string | null | undefined;
2688
+ } | import("./schemas.js").GraphPage<{
2689
+ [x: string]: unknown;
2690
+ id: string;
2691
+ createdDateTime?: string | null | undefined;
2692
+ }>>;
2693
+ } | {
2694
+ slug: string;
2695
+ description: string;
2696
+ input: z.ZodObject<{
2697
+ method: z.ZodEnum<{
2698
+ GET: "GET";
2699
+ POST: "POST";
2700
+ PATCH: "PATCH";
2701
+ PUT: "PUT";
2702
+ DELETE: "DELETE";
2703
+ }>;
2704
+ path: z.ZodString;
2705
+ query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
2706
+ body: z.ZodOptional<z.ZodJSONSchema>;
2707
+ }, z.core.$strip>;
2708
+ output: z.ZodObject<{
2709
+ status: z.ZodNumber;
2710
+ body: z.ZodJSONSchema;
2711
+ }, z.core.$strip>;
2712
+ idempotent: boolean;
2713
+ run({ client, input, req }: {
2714
+ input: {
2715
+ method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
2716
+ path: string;
2717
+ query?: Record<string, string | number> | undefined;
2718
+ body?: z.core.util.JSONType | undefined;
2719
+ };
2720
+ client: {
2721
+ baseUrl: string;
2722
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
2723
+ method?: string;
2724
+ body?: unknown;
2725
+ headers?: Record<string, string>;
2726
+ query?: Record<string, string | number>;
2727
+ signal?: AbortSignal;
2728
+ }) => Promise<T>;
2729
+ text(path: string, options?: {
2730
+ method?: string;
2731
+ body?: unknown;
2732
+ headers?: Record<string, string>;
2733
+ query?: Record<string, string | number>;
2734
+ signal?: AbortSignal;
2735
+ }): Promise<string>;
2736
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
2737
+ method?: string;
2738
+ body?: unknown;
2739
+ headers?: Record<string, string>;
2740
+ query?: Record<string, string | number>;
2741
+ signal?: AbortSignal;
2742
+ }) => Promise<T[]>;
2743
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
2744
+ method?: string;
2745
+ body?: unknown;
2746
+ headers?: Record<string, string>;
2747
+ query?: Record<string, string | number>;
2748
+ signal?: AbortSignal;
2749
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
2750
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
2751
+ custom(path: string, schema: z.ZodType, options?: {
2752
+ method?: string;
2753
+ body?: unknown;
2754
+ headers?: Record<string, string>;
2755
+ query?: Record<string, string | number>;
2756
+ signal?: AbortSignal;
2757
+ }): Promise<{
2758
+ status: number;
2759
+ body: unknown;
2760
+ }>;
2761
+ };
2762
+ options: object;
2763
+ req: import("frogbot").FrogbotRequest;
2764
+ }): Promise<{
2765
+ status: number;
2766
+ body: unknown;
2767
+ }>;
2768
+ })[];
2769
+ readonly triggers: (({
2770
+ slug: string;
2771
+ label?: string;
2772
+ description: string;
2773
+ input: z.ZodObject<{
2774
+ teamId: z.ZodString;
2775
+ }, z.core.$strip>;
2776
+ output?: z.ZodObject<{
2777
+ id: z.ZodString;
2778
+ displayName: z.ZodString;
2779
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2780
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2781
+ membershipType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2782
+ isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2783
+ }, z.core.$loose> | undefined;
2784
+ sample?: {
2785
+ [x: string]: unknown;
2786
+ id: string;
2787
+ displayName: string;
2788
+ description?: string | null | undefined;
2789
+ createdDateTime?: string | null | undefined;
2790
+ membershipType?: string | null | undefined;
2791
+ isArchived?: boolean | null | undefined;
2792
+ } | undefined;
2793
+ } & {
2794
+ type: "polling";
2795
+ schedule?: string;
2796
+ run(args: import("frogbot").PieceRunArgs<{
2797
+ teamId: string;
2798
+ }, object, {
2799
+ baseUrl: string;
2800
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
2801
+ method?: string;
2802
+ body?: unknown;
2803
+ headers?: Record<string, string>;
2804
+ query?: Record<string, string | number>;
2805
+ signal?: AbortSignal;
2806
+ }) => Promise<T>;
2807
+ text(path: string, options?: {
2808
+ method?: string;
2809
+ body?: unknown;
2810
+ headers?: Record<string, string>;
2811
+ query?: Record<string, string | number>;
2812
+ signal?: AbortSignal;
2813
+ }): Promise<string>;
2814
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
2815
+ method?: string;
2816
+ body?: unknown;
2817
+ headers?: Record<string, string>;
2818
+ query?: Record<string, string | number>;
2819
+ signal?: AbortSignal;
2820
+ }) => Promise<T[]>;
2821
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
2822
+ method?: string;
2823
+ body?: unknown;
2824
+ headers?: Record<string, string>;
2825
+ query?: Record<string, string | number>;
2826
+ signal?: AbortSignal;
2827
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
2828
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
2829
+ custom(path: string, schema: z.ZodType, options?: {
2830
+ method?: string;
2831
+ body?: unknown;
2832
+ headers?: Record<string, string>;
2833
+ query?: Record<string, string | number>;
2834
+ signal?: AbortSignal;
2835
+ }): Promise<{
2836
+ status: number;
2837
+ body: unknown;
2838
+ }>;
2839
+ }> & {
2840
+ cursor?: ({
2841
+ since: string;
2842
+ } | {
2843
+ since: string;
2844
+ deltaLink: string;
2845
+ }) | undefined;
2846
+ }): Promise<{
2847
+ events: {
2848
+ [x: string]: unknown;
2849
+ id: string;
2850
+ displayName: string;
2851
+ description?: string | null | undefined;
2852
+ createdDateTime?: string | null | undefined;
2853
+ membershipType?: string | null | undefined;
2854
+ isArchived?: boolean | null | undefined;
2855
+ }[];
2856
+ cursor?: ({
2857
+ since: string;
2858
+ } | {
2859
+ since: string;
2860
+ deltaLink: string;
2861
+ }) | undefined;
2862
+ }>;
2863
+ } & {
2864
+ options: {
2865
+ teamId: typeof import("./options.js").teams;
2866
+ };
2867
+ }) | ({
2868
+ slug: string;
2869
+ label?: string;
2870
+ description: string;
2871
+ input: z.ZodObject<{
2872
+ teamId: z.ZodString;
2873
+ channelId: z.ZodString;
2874
+ }, z.core.$strip>;
2875
+ output?: z.ZodObject<{
2876
+ id: z.ZodString;
2877
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2878
+ lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2879
+ chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2880
+ body: z.ZodObject<{
2881
+ content: z.ZodString;
2882
+ contentType: z.ZodString;
2883
+ }, z.core.$loose>;
2884
+ }, z.core.$loose> | undefined;
2885
+ sample?: {
2886
+ [x: string]: unknown;
2887
+ id: string;
2888
+ body: {
2889
+ [x: string]: unknown;
2890
+ content: string;
2891
+ contentType: string;
2892
+ };
2893
+ createdDateTime?: string | null | undefined;
2894
+ lastModifiedDateTime?: string | null | undefined;
2895
+ chatId?: string | null | undefined;
2896
+ } | undefined;
2897
+ } & {
2898
+ type: "polling";
2899
+ schedule?: string;
2900
+ run(args: import("frogbot").PieceRunArgs<{
2901
+ teamId: string;
2902
+ channelId: string;
2903
+ }, object, {
2904
+ baseUrl: string;
2905
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
2906
+ method?: string;
2907
+ body?: unknown;
2908
+ headers?: Record<string, string>;
2909
+ query?: Record<string, string | number>;
2910
+ signal?: AbortSignal;
2911
+ }) => Promise<T>;
2912
+ text(path: string, options?: {
2913
+ method?: string;
2914
+ body?: unknown;
2915
+ headers?: Record<string, string>;
2916
+ query?: Record<string, string | number>;
2917
+ signal?: AbortSignal;
2918
+ }): Promise<string>;
2919
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
2920
+ method?: string;
2921
+ body?: unknown;
2922
+ headers?: Record<string, string>;
2923
+ query?: Record<string, string | number>;
2924
+ signal?: AbortSignal;
2925
+ }) => Promise<T[]>;
2926
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
2927
+ method?: string;
2928
+ body?: unknown;
2929
+ headers?: Record<string, string>;
2930
+ query?: Record<string, string | number>;
2931
+ signal?: AbortSignal;
2932
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
2933
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
2934
+ custom(path: string, schema: z.ZodType, options?: {
2935
+ method?: string;
2936
+ body?: unknown;
2937
+ headers?: Record<string, string>;
2938
+ query?: Record<string, string | number>;
2939
+ signal?: AbortSignal;
2940
+ }): Promise<{
2941
+ status: number;
2942
+ body: unknown;
2943
+ }>;
2944
+ }> & {
2945
+ cursor?: ({
2946
+ since: string;
2947
+ } | {
2948
+ since: string;
2949
+ deltaLink: string;
2950
+ }) | undefined;
2951
+ }): Promise<{
2952
+ events: {
2953
+ [x: string]: unknown;
2954
+ id: string;
2955
+ body: {
2956
+ [x: string]: unknown;
2957
+ content: string;
2958
+ contentType: string;
2959
+ };
2960
+ createdDateTime?: string | null | undefined;
2961
+ lastModifiedDateTime?: string | null | undefined;
2962
+ chatId?: string | null | undefined;
2963
+ }[];
2964
+ cursor?: ({
2965
+ since: string;
2966
+ } | {
2967
+ since: string;
2968
+ deltaLink: string;
2969
+ }) | undefined;
2970
+ }>;
2971
+ } & {
2972
+ options: {
2973
+ teamId: typeof import("./options.js").teams;
2974
+ channelId: typeof import("./options.js").channels;
2975
+ };
2976
+ }) | import("frogbot").PiecePollingTrigger<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
2977
+ id: z.ZodString;
2978
+ topic: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2979
+ chatType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2980
+ oneOnOne: "oneOnOne";
2981
+ group: "group";
2982
+ meeting: "meeting";
2983
+ unknownFutureValue: "unknownFutureValue";
2984
+ }>>>;
2985
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2986
+ lastUpdatedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2987
+ members: z.ZodOptional<z.ZodArray<z.ZodObject<{
2988
+ id: z.ZodString;
2989
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2990
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2991
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2992
+ }, z.core.$loose>>>;
2993
+ }, z.core.$loose>, object, {
2994
+ baseUrl: string;
2995
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
2996
+ method?: string;
2997
+ body?: unknown;
2998
+ headers?: Record<string, string>;
2999
+ query?: Record<string, string | number>;
3000
+ signal?: AbortSignal;
3001
+ }) => Promise<T>;
3002
+ text(path: string, options?: {
3003
+ method?: string;
3004
+ body?: unknown;
3005
+ headers?: Record<string, string>;
3006
+ query?: Record<string, string | number>;
3007
+ signal?: AbortSignal;
3008
+ }): Promise<string>;
3009
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
3010
+ method?: string;
3011
+ body?: unknown;
3012
+ headers?: Record<string, string>;
3013
+ query?: Record<string, string | number>;
3014
+ signal?: AbortSignal;
3015
+ }) => Promise<T[]>;
3016
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
3017
+ method?: string;
3018
+ body?: unknown;
3019
+ headers?: Record<string, string>;
3020
+ query?: Record<string, string | number>;
3021
+ signal?: AbortSignal;
3022
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
3023
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
3024
+ custom(path: string, schema: z.ZodType, options?: {
3025
+ method?: string;
3026
+ body?: unknown;
3027
+ headers?: Record<string, string>;
3028
+ query?: Record<string, string | number>;
3029
+ signal?: AbortSignal;
3030
+ }): Promise<{
3031
+ status: number;
3032
+ body: unknown;
3033
+ }>;
3034
+ }, {
3035
+ since: string;
3036
+ } | {
3037
+ since: string;
3038
+ deltaLink: string;
3039
+ }> | ({
3040
+ slug: string;
3041
+ label?: string;
3042
+ description: string;
3043
+ input: z.ZodObject<{
3044
+ chatId: z.ZodString;
3045
+ }, z.core.$strip>;
3046
+ output?: z.ZodObject<{
3047
+ id: z.ZodString;
3048
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3049
+ lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3050
+ chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3051
+ body: z.ZodObject<{
3052
+ content: z.ZodString;
3053
+ contentType: z.ZodString;
3054
+ }, z.core.$loose>;
3055
+ }, z.core.$loose> | undefined;
3056
+ sample?: {
3057
+ [x: string]: unknown;
3058
+ id: string;
3059
+ body: {
3060
+ [x: string]: unknown;
3061
+ content: string;
3062
+ contentType: string;
3063
+ };
3064
+ createdDateTime?: string | null | undefined;
3065
+ lastModifiedDateTime?: string | null | undefined;
3066
+ chatId?: string | null | undefined;
3067
+ } | undefined;
3068
+ } & {
3069
+ type: "polling";
3070
+ schedule?: string;
3071
+ run(args: import("frogbot").PieceRunArgs<{
3072
+ chatId: string;
3073
+ }, object, {
3074
+ baseUrl: string;
3075
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
3076
+ method?: string;
3077
+ body?: unknown;
3078
+ headers?: Record<string, string>;
3079
+ query?: Record<string, string | number>;
3080
+ signal?: AbortSignal;
3081
+ }) => Promise<T>;
3082
+ text(path: string, options?: {
3083
+ method?: string;
3084
+ body?: unknown;
3085
+ headers?: Record<string, string>;
3086
+ query?: Record<string, string | number>;
3087
+ signal?: AbortSignal;
3088
+ }): Promise<string>;
3089
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
3090
+ method?: string;
3091
+ body?: unknown;
3092
+ headers?: Record<string, string>;
3093
+ query?: Record<string, string | number>;
3094
+ signal?: AbortSignal;
3095
+ }) => Promise<T[]>;
3096
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
3097
+ method?: string;
3098
+ body?: unknown;
3099
+ headers?: Record<string, string>;
3100
+ query?: Record<string, string | number>;
3101
+ signal?: AbortSignal;
3102
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
3103
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
3104
+ custom(path: string, schema: z.ZodType, options?: {
3105
+ method?: string;
3106
+ body?: unknown;
3107
+ headers?: Record<string, string>;
3108
+ query?: Record<string, string | number>;
3109
+ signal?: AbortSignal;
3110
+ }): Promise<{
3111
+ status: number;
3112
+ body: unknown;
3113
+ }>;
3114
+ }> & {
3115
+ cursor?: ({
3116
+ since: string;
3117
+ } | {
3118
+ since: string;
3119
+ deltaLink: string;
3120
+ }) | undefined;
3121
+ }): Promise<{
3122
+ events: {
3123
+ [x: string]: unknown;
3124
+ id: string;
3125
+ body: {
3126
+ [x: string]: unknown;
3127
+ content: string;
3128
+ contentType: string;
3129
+ };
3130
+ createdDateTime?: string | null | undefined;
3131
+ lastModifiedDateTime?: string | null | undefined;
3132
+ chatId?: string | null | undefined;
3133
+ }[];
3134
+ cursor?: ({
3135
+ since: string;
3136
+ } | {
3137
+ since: string;
3138
+ deltaLink: string;
3139
+ }) | undefined;
3140
+ }>;
3141
+ } & {
3142
+ options: {
3143
+ chatId: typeof import("./options.js").chats;
3144
+ };
3145
+ }) | import("frogbot").PieceAppTrigger)[];
3146
+ }>;
38
3147
  //# sourceMappingURL=index.d.ts.map