@frogbotai/piece-microsoft-teams 0.21.0 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1040 @@
1
+ import type { PieceRunArgs } from 'frogbot/pieces';
2
+ import { z } from 'zod';
3
+ import type { MicrosoftTeamsClient } from './client.js';
4
+ import { channels, chats, members, teams } from './options.js';
5
+ type Run<T extends z.ZodType> = PieceRunArgs<z.output<T>, object, MicrosoftTeamsClient>;
6
+ declare const createChannelInput: z.ZodObject<{
7
+ channelDisplayName: z.ZodString;
8
+ channelDescription: z.ZodOptional<z.ZodString>;
9
+ teamId: z.ZodString;
10
+ }, z.core.$strip>;
11
+ export declare const createChannel: {
12
+ slug: string;
13
+ description: string;
14
+ input: z.ZodObject<{
15
+ channelDisplayName: z.ZodString;
16
+ channelDescription: z.ZodOptional<z.ZodString>;
17
+ teamId: z.ZodString;
18
+ }, z.core.$strip>;
19
+ output: z.ZodObject<{
20
+ id: z.ZodString;
21
+ displayName: z.ZodString;
22
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ membershipType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
26
+ }, z.core.$loose>;
27
+ options: {
28
+ teamId: typeof teams;
29
+ };
30
+ idempotent: boolean;
31
+ run({ client, input, req }: Run<typeof createChannelInput>): Promise<{
32
+ [x: string]: unknown;
33
+ id: string;
34
+ displayName: string;
35
+ description?: string | null | undefined;
36
+ createdDateTime?: string | null | undefined;
37
+ membershipType?: string | null | undefined;
38
+ isArchived?: boolean | null | undefined;
39
+ }>;
40
+ };
41
+ export declare const createPrivateChannel: {
42
+ slug: string;
43
+ description: string;
44
+ run({ client, input, req }: Run<typeof createChannelInput>): Promise<{
45
+ [x: string]: unknown;
46
+ id: string;
47
+ displayName: string;
48
+ description?: string | null | undefined;
49
+ createdDateTime?: string | null | undefined;
50
+ membershipType?: string | null | undefined;
51
+ isArchived?: boolean | null | undefined;
52
+ }>;
53
+ input: z.ZodObject<{
54
+ channelDisplayName: z.ZodString;
55
+ channelDescription: z.ZodOptional<z.ZodString>;
56
+ teamId: z.ZodString;
57
+ }, z.core.$strip>;
58
+ output: z.ZodObject<{
59
+ id: z.ZodString;
60
+ displayName: z.ZodString;
61
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
62
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
63
+ membershipType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
64
+ isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
65
+ }, z.core.$loose>;
66
+ options: {
67
+ teamId: typeof teams;
68
+ };
69
+ idempotent: boolean;
70
+ };
71
+ declare const sendChannelMessageInput: z.ZodObject<{
72
+ contentType: z.ZodDefault<z.ZodEnum<{
73
+ text: "text";
74
+ html: "html";
75
+ }>>;
76
+ content: z.ZodString;
77
+ channelId: z.ZodString;
78
+ teamId: z.ZodString;
79
+ }, z.core.$strip>;
80
+ export declare const sendChannelMessage: {
81
+ slug: string;
82
+ description: string;
83
+ input: z.ZodObject<{
84
+ contentType: z.ZodDefault<z.ZodEnum<{
85
+ text: "text";
86
+ html: "html";
87
+ }>>;
88
+ content: z.ZodString;
89
+ channelId: z.ZodString;
90
+ teamId: z.ZodString;
91
+ }, z.core.$strip>;
92
+ output: z.ZodObject<{
93
+ id: z.ZodString;
94
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
95
+ lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
96
+ chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
97
+ body: z.ZodObject<{
98
+ content: z.ZodString;
99
+ contentType: z.ZodString;
100
+ }, z.core.$loose>;
101
+ }, z.core.$loose>;
102
+ options: {
103
+ teamId: typeof teams;
104
+ channelId: typeof channels;
105
+ };
106
+ idempotent: boolean;
107
+ run({ client, input, req }: Run<typeof sendChannelMessageInput>): Promise<{
108
+ [x: string]: unknown;
109
+ id: string;
110
+ body: {
111
+ [x: string]: unknown;
112
+ content: string;
113
+ contentType: string;
114
+ };
115
+ createdDateTime?: string | null | undefined;
116
+ lastModifiedDateTime?: string | null | undefined;
117
+ chatId?: string | null | undefined;
118
+ }>;
119
+ };
120
+ declare const sendChatMessageInput: z.ZodObject<{
121
+ contentType: z.ZodDefault<z.ZodEnum<{
122
+ text: "text";
123
+ html: "html";
124
+ }>>;
125
+ content: z.ZodString;
126
+ chatId: z.ZodString;
127
+ }, z.core.$strip>;
128
+ export declare const sendChatMessage: {
129
+ slug: string;
130
+ description: string;
131
+ input: z.ZodObject<{
132
+ contentType: z.ZodDefault<z.ZodEnum<{
133
+ text: "text";
134
+ html: "html";
135
+ }>>;
136
+ content: z.ZodString;
137
+ chatId: z.ZodString;
138
+ }, z.core.$strip>;
139
+ output: z.ZodObject<{
140
+ id: z.ZodString;
141
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
142
+ lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
143
+ chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
144
+ body: z.ZodObject<{
145
+ content: z.ZodString;
146
+ contentType: z.ZodString;
147
+ }, z.core.$loose>;
148
+ }, z.core.$loose>;
149
+ options: {
150
+ chatId: typeof chats;
151
+ };
152
+ idempotent: boolean;
153
+ run({ client, input, req }: Run<typeof sendChatMessageInput>): Promise<{
154
+ [x: string]: unknown;
155
+ id: string;
156
+ body: {
157
+ [x: string]: unknown;
158
+ content: string;
159
+ contentType: string;
160
+ };
161
+ createdDateTime?: string | null | undefined;
162
+ lastModifiedDateTime?: string | null | undefined;
163
+ chatId?: string | null | undefined;
164
+ }>;
165
+ };
166
+ declare const replyInput: z.ZodObject<{
167
+ contentType: z.ZodDefault<z.ZodEnum<{
168
+ text: "text";
169
+ html: "html";
170
+ }>>;
171
+ content: z.ZodString;
172
+ messageId: z.ZodString;
173
+ channelId: z.ZodString;
174
+ teamId: z.ZodString;
175
+ }, z.core.$strip>;
176
+ export declare const replyToChannelMessage: {
177
+ slug: string;
178
+ description: string;
179
+ input: z.ZodObject<{
180
+ contentType: z.ZodDefault<z.ZodEnum<{
181
+ text: "text";
182
+ html: "html";
183
+ }>>;
184
+ content: z.ZodString;
185
+ messageId: z.ZodString;
186
+ channelId: z.ZodString;
187
+ teamId: z.ZodString;
188
+ }, z.core.$strip>;
189
+ output: z.ZodObject<{
190
+ id: z.ZodString;
191
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
192
+ lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
193
+ chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
194
+ body: z.ZodObject<{
195
+ content: z.ZodString;
196
+ contentType: z.ZodString;
197
+ }, z.core.$loose>;
198
+ }, z.core.$loose>;
199
+ options: {
200
+ teamId: typeof teams;
201
+ channelId: typeof channels;
202
+ };
203
+ idempotent: boolean;
204
+ run({ client, input, req }: Run<typeof replyInput>): Promise<{
205
+ [x: string]: unknown;
206
+ id: string;
207
+ body: {
208
+ [x: string]: unknown;
209
+ content: string;
210
+ contentType: string;
211
+ };
212
+ createdDateTime?: string | null | undefined;
213
+ lastModifiedDateTime?: string | null | undefined;
214
+ chatId?: string | null | undefined;
215
+ }>;
216
+ };
217
+ declare const createChatInput: z.ZodObject<{
218
+ contentType: z.ZodDefault<z.ZodEnum<{
219
+ text: "text";
220
+ html: "html";
221
+ }>>;
222
+ content: z.ZodString;
223
+ members: z.ZodArray<z.ZodString>;
224
+ teamId: z.ZodString;
225
+ }, z.core.$strip>;
226
+ export declare const createChatAndSendMessage: {
227
+ slug: string;
228
+ description: string;
229
+ input: z.ZodObject<{
230
+ contentType: z.ZodDefault<z.ZodEnum<{
231
+ text: "text";
232
+ html: "html";
233
+ }>>;
234
+ content: z.ZodString;
235
+ members: z.ZodArray<z.ZodString>;
236
+ teamId: z.ZodString;
237
+ }, z.core.$strip>;
238
+ output: z.ZodObject<{
239
+ chat: z.ZodObject<{
240
+ id: z.ZodString;
241
+ topic: z.ZodOptional<z.ZodNullable<z.ZodString>>;
242
+ chatType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
243
+ oneOnOne: "oneOnOne";
244
+ group: "group";
245
+ meeting: "meeting";
246
+ unknownFutureValue: "unknownFutureValue";
247
+ }>>>;
248
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
249
+ lastUpdatedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
250
+ members: z.ZodOptional<z.ZodArray<z.ZodObject<{
251
+ id: z.ZodString;
252
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
253
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
254
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
255
+ }, z.core.$loose>>>;
256
+ }, z.core.$loose>;
257
+ message: z.ZodObject<{
258
+ id: z.ZodString;
259
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
260
+ lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
261
+ chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
262
+ body: z.ZodObject<{
263
+ content: z.ZodString;
264
+ contentType: z.ZodString;
265
+ }, z.core.$loose>;
266
+ }, z.core.$loose>;
267
+ }, z.core.$strip>;
268
+ options: {
269
+ teamId: typeof teams;
270
+ members: typeof members;
271
+ };
272
+ idempotent: boolean;
273
+ run({ client, input, req }: Run<typeof createChatInput>): Promise<{
274
+ chat: {
275
+ [x: string]: unknown;
276
+ id: string;
277
+ topic?: string | null | undefined;
278
+ chatType?: "oneOnOne" | "group" | "meeting" | "unknownFutureValue" | null | undefined;
279
+ createdDateTime?: string | null | undefined;
280
+ lastUpdatedDateTime?: string | null | undefined;
281
+ members?: {
282
+ [x: string]: unknown;
283
+ id: string;
284
+ displayName?: string | null | undefined;
285
+ email?: string | null | undefined;
286
+ userId?: string | null | undefined;
287
+ }[] | undefined;
288
+ };
289
+ message: {
290
+ [x: string]: unknown;
291
+ id: string;
292
+ body: {
293
+ [x: string]: unknown;
294
+ content: string;
295
+ contentType: string;
296
+ };
297
+ createdDateTime?: string | null | undefined;
298
+ lastModifiedDateTime?: string | null | undefined;
299
+ chatId?: string | null | undefined;
300
+ };
301
+ }>;
302
+ };
303
+ declare const getChatMessageInput: z.ZodObject<{
304
+ messageId: z.ZodString;
305
+ chatId: z.ZodString;
306
+ }, z.core.$strip>;
307
+ export declare const getChatMessage: {
308
+ slug: string;
309
+ description: string;
310
+ input: z.ZodObject<{
311
+ messageId: z.ZodString;
312
+ chatId: z.ZodString;
313
+ }, z.core.$strip>;
314
+ output: z.ZodObject<{
315
+ id: z.ZodString;
316
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
317
+ lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
318
+ chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
319
+ body: z.ZodObject<{
320
+ content: z.ZodString;
321
+ contentType: z.ZodString;
322
+ }, z.core.$loose>;
323
+ }, z.core.$loose>;
324
+ options: {
325
+ chatId: typeof chats;
326
+ };
327
+ idempotent: boolean;
328
+ run({ client, input, req }: Run<typeof getChatMessageInput>): Promise<{
329
+ [x: string]: unknown;
330
+ id: string;
331
+ body: {
332
+ [x: string]: unknown;
333
+ content: string;
334
+ contentType: string;
335
+ };
336
+ createdDateTime?: string | null | undefined;
337
+ lastModifiedDateTime?: string | null | undefined;
338
+ chatId?: string | null | undefined;
339
+ }>;
340
+ };
341
+ export declare const deleteChatMessage: {
342
+ slug: string;
343
+ description: string;
344
+ input: z.ZodObject<{
345
+ messageId: z.ZodString;
346
+ chatId: z.ZodString;
347
+ }, z.core.$strip>;
348
+ output: z.ZodObject<{
349
+ success: z.ZodLiteral<true>;
350
+ messageId: z.ZodString;
351
+ chatId: z.ZodString;
352
+ }, z.core.$strip>;
353
+ options: {
354
+ chatId: typeof chats;
355
+ };
356
+ idempotent: boolean;
357
+ run({ client, input, req }: Run<typeof getChatMessageInput>): Promise<{
358
+ success: boolean;
359
+ messageId: string;
360
+ chatId: string;
361
+ }>;
362
+ };
363
+ declare const getChannelMessageInput: z.ZodObject<{
364
+ messageId: z.ZodString;
365
+ replyId: z.ZodOptional<z.ZodString>;
366
+ channelId: z.ZodString;
367
+ teamId: z.ZodString;
368
+ }, z.core.$strip>;
369
+ export declare const getChannelMessage: {
370
+ slug: string;
371
+ description: string;
372
+ input: z.ZodObject<{
373
+ messageId: z.ZodString;
374
+ replyId: z.ZodOptional<z.ZodString>;
375
+ channelId: z.ZodString;
376
+ teamId: z.ZodString;
377
+ }, z.core.$strip>;
378
+ output: z.ZodObject<{
379
+ id: z.ZodString;
380
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
381
+ lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
382
+ chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
383
+ body: z.ZodObject<{
384
+ content: z.ZodString;
385
+ contentType: z.ZodString;
386
+ }, z.core.$loose>;
387
+ }, z.core.$loose>;
388
+ options: {
389
+ teamId: typeof teams;
390
+ channelId: typeof channels;
391
+ };
392
+ idempotent: boolean;
393
+ run({ client, input, req }: Run<typeof getChannelMessageInput>): Promise<{
394
+ [x: string]: unknown;
395
+ id: string;
396
+ body: {
397
+ [x: string]: unknown;
398
+ content: string;
399
+ contentType: string;
400
+ };
401
+ createdDateTime?: string | null | undefined;
402
+ lastModifiedDateTime?: string | null | undefined;
403
+ chatId?: string | null | undefined;
404
+ }>;
405
+ };
406
+ declare const findChannelInput: z.ZodObject<{
407
+ channelName: z.ZodString;
408
+ teamId: z.ZodString;
409
+ }, z.core.$strip>;
410
+ export declare const findChannel: {
411
+ slug: string;
412
+ description: string;
413
+ input: z.ZodObject<{
414
+ channelName: z.ZodString;
415
+ teamId: z.ZodString;
416
+ }, z.core.$strip>;
417
+ output: z.ZodObject<{
418
+ found: z.ZodBoolean;
419
+ result: z.ZodArray<z.ZodObject<{
420
+ id: z.ZodString;
421
+ displayName: z.ZodString;
422
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
423
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
424
+ membershipType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
425
+ isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
426
+ }, z.core.$loose>>;
427
+ }, z.core.$strip>;
428
+ options: {
429
+ teamId: typeof teams;
430
+ };
431
+ idempotent: boolean;
432
+ run({ client, input, req }: Run<typeof findChannelInput>): Promise<{
433
+ found: boolean;
434
+ result: {
435
+ [x: string]: unknown;
436
+ id: string;
437
+ displayName: string;
438
+ description?: string | null | undefined;
439
+ createdDateTime?: string | null | undefined;
440
+ membershipType?: string | null | undefined;
441
+ isArchived?: boolean | null | undefined;
442
+ }[];
443
+ }>;
444
+ };
445
+ declare const findMemberInput: z.ZodObject<{
446
+ searchBy: z.ZodDefault<z.ZodEnum<{
447
+ email: "email";
448
+ name: "name";
449
+ }>>;
450
+ searchValue: z.ZodString;
451
+ teamId: z.ZodString;
452
+ }, z.core.$strip>;
453
+ export declare const findTeamMember: {
454
+ slug: string;
455
+ description: string;
456
+ input: z.ZodObject<{
457
+ searchBy: z.ZodDefault<z.ZodEnum<{
458
+ email: "email";
459
+ name: "name";
460
+ }>>;
461
+ searchValue: z.ZodString;
462
+ teamId: z.ZodString;
463
+ }, z.core.$strip>;
464
+ output: z.ZodObject<{
465
+ found: z.ZodBoolean;
466
+ result: z.ZodArray<z.ZodObject<{
467
+ id: z.ZodString;
468
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
469
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
470
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
471
+ }, z.core.$loose>>;
472
+ }, z.core.$strip>;
473
+ options: {
474
+ teamId: typeof teams;
475
+ };
476
+ idempotent: boolean;
477
+ run({ client, input, req }: Run<typeof findMemberInput>): Promise<{
478
+ found: boolean;
479
+ result: {
480
+ [x: string]: unknown;
481
+ id: string;
482
+ displayName?: string | null | undefined;
483
+ email?: string | null | undefined;
484
+ userId?: string | null | undefined;
485
+ }[];
486
+ }>;
487
+ };
488
+ declare const transcriptInput: z.ZodObject<{
489
+ transcriptId: z.ZodOptional<z.ZodString>;
490
+ meetingIdentifierType: z.ZodDefault<z.ZodEnum<{
491
+ meetingId: "meetingId";
492
+ joinWebUrl: "joinWebUrl";
493
+ joinMeetingId: "joinMeetingId";
494
+ }>>;
495
+ meetingIdentifierValue: z.ZodString;
496
+ }, z.core.$strip>;
497
+ export declare const getMeetingTranscript: {
498
+ slug: string;
499
+ description: string;
500
+ input: z.ZodObject<{
501
+ transcriptId: z.ZodOptional<z.ZodString>;
502
+ meetingIdentifierType: z.ZodDefault<z.ZodEnum<{
503
+ meetingId: "meetingId";
504
+ joinWebUrl: "joinWebUrl";
505
+ joinMeetingId: "joinMeetingId";
506
+ }>>;
507
+ meetingIdentifierValue: z.ZodString;
508
+ }, z.core.$strip>;
509
+ output: z.ZodUnion<readonly [z.ZodObject<{
510
+ content: z.ZodString;
511
+ }, z.core.$strip>, z.ZodType<import("./schemas.js").GraphPage<{
512
+ [x: string]: unknown;
513
+ id: string;
514
+ createdDateTime?: string | null | undefined;
515
+ }>, unknown, z.core.$ZodTypeInternals<import("./schemas.js").GraphPage<{
516
+ [x: string]: unknown;
517
+ id: string;
518
+ createdDateTime?: string | null | undefined;
519
+ }>, unknown>>]>;
520
+ idempotent: boolean;
521
+ run({ client, input, req }: Run<typeof transcriptInput>): Promise<import("./schemas.js").GraphPage<{
522
+ [x: string]: unknown;
523
+ id: string;
524
+ createdDateTime?: string | null | undefined;
525
+ }> | {
526
+ content: string;
527
+ }>;
528
+ };
529
+ declare const recordingInput: z.ZodObject<{
530
+ recordingId: z.ZodOptional<z.ZodString>;
531
+ meetingIdentifierType: z.ZodDefault<z.ZodEnum<{
532
+ meetingId: "meetingId";
533
+ joinWebUrl: "joinWebUrl";
534
+ joinMeetingId: "joinMeetingId";
535
+ }>>;
536
+ meetingIdentifierValue: z.ZodString;
537
+ }, z.core.$strip>;
538
+ export declare const getMeetingRecording: {
539
+ slug: string;
540
+ description: string;
541
+ input: z.ZodObject<{
542
+ recordingId: z.ZodOptional<z.ZodString>;
543
+ meetingIdentifierType: z.ZodDefault<z.ZodEnum<{
544
+ meetingId: "meetingId";
545
+ joinWebUrl: "joinWebUrl";
546
+ joinMeetingId: "joinMeetingId";
547
+ }>>;
548
+ meetingIdentifierValue: z.ZodString;
549
+ }, z.core.$strip>;
550
+ output: z.ZodUnion<readonly [z.ZodObject<{
551
+ id: z.ZodString;
552
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
553
+ }, z.core.$loose>, z.ZodType<import("./schemas.js").GraphPage<{
554
+ [x: string]: unknown;
555
+ id: string;
556
+ createdDateTime?: string | null | undefined;
557
+ }>, unknown, z.core.$ZodTypeInternals<import("./schemas.js").GraphPage<{
558
+ [x: string]: unknown;
559
+ id: string;
560
+ createdDateTime?: string | null | undefined;
561
+ }>, unknown>>]>;
562
+ idempotent: boolean;
563
+ run({ client, input, req }: Run<typeof recordingInput>): Promise<{
564
+ [x: string]: unknown;
565
+ id: string;
566
+ createdDateTime?: string | null | undefined;
567
+ } | import("./schemas.js").GraphPage<{
568
+ [x: string]: unknown;
569
+ id: string;
570
+ createdDateTime?: string | null | undefined;
571
+ }>>;
572
+ };
573
+ declare const customInput: z.ZodObject<{
574
+ method: z.ZodEnum<{
575
+ GET: "GET";
576
+ POST: "POST";
577
+ PATCH: "PATCH";
578
+ PUT: "PUT";
579
+ DELETE: "DELETE";
580
+ }>;
581
+ path: z.ZodString;
582
+ query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
583
+ body: z.ZodOptional<z.ZodJSONSchema>;
584
+ }, z.core.$strip>;
585
+ export declare const customApiCall: {
586
+ slug: string;
587
+ description: string;
588
+ input: z.ZodObject<{
589
+ method: z.ZodEnum<{
590
+ GET: "GET";
591
+ POST: "POST";
592
+ PATCH: "PATCH";
593
+ PUT: "PUT";
594
+ DELETE: "DELETE";
595
+ }>;
596
+ path: z.ZodString;
597
+ query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
598
+ body: z.ZodOptional<z.ZodJSONSchema>;
599
+ }, z.core.$strip>;
600
+ output: z.ZodObject<{
601
+ status: z.ZodNumber;
602
+ body: z.ZodJSONSchema;
603
+ }, z.core.$strip>;
604
+ idempotent: boolean;
605
+ run({ client, input, req }: Run<typeof customInput>): Promise<{
606
+ status: number;
607
+ body: unknown;
608
+ }>;
609
+ };
610
+ export declare const microsoftTeamsActionDefinitions: ({
611
+ slug: string;
612
+ description: string;
613
+ input: z.ZodObject<{
614
+ channelDisplayName: z.ZodString;
615
+ channelDescription: z.ZodOptional<z.ZodString>;
616
+ teamId: z.ZodString;
617
+ }, z.core.$strip>;
618
+ output: z.ZodObject<{
619
+ id: z.ZodString;
620
+ displayName: z.ZodString;
621
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
622
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
623
+ membershipType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
624
+ isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
625
+ }, z.core.$loose>;
626
+ options: {
627
+ teamId: typeof teams;
628
+ };
629
+ idempotent: boolean;
630
+ run({ client, input, req }: Run<typeof createChannelInput>): Promise<{
631
+ [x: string]: unknown;
632
+ id: string;
633
+ displayName: string;
634
+ description?: string | null | undefined;
635
+ createdDateTime?: string | null | undefined;
636
+ membershipType?: string | null | undefined;
637
+ isArchived?: boolean | null | undefined;
638
+ }>;
639
+ } | {
640
+ slug: string;
641
+ description: string;
642
+ input: z.ZodObject<{
643
+ contentType: z.ZodDefault<z.ZodEnum<{
644
+ text: "text";
645
+ html: "html";
646
+ }>>;
647
+ content: z.ZodString;
648
+ channelId: z.ZodString;
649
+ teamId: z.ZodString;
650
+ }, z.core.$strip>;
651
+ output: z.ZodObject<{
652
+ id: z.ZodString;
653
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
654
+ lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
655
+ chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
656
+ body: z.ZodObject<{
657
+ content: z.ZodString;
658
+ contentType: z.ZodString;
659
+ }, z.core.$loose>;
660
+ }, z.core.$loose>;
661
+ options: {
662
+ teamId: typeof teams;
663
+ channelId: typeof channels;
664
+ };
665
+ idempotent: boolean;
666
+ run({ client, input, req }: Run<typeof sendChannelMessageInput>): Promise<{
667
+ [x: string]: unknown;
668
+ id: string;
669
+ body: {
670
+ [x: string]: unknown;
671
+ content: string;
672
+ contentType: string;
673
+ };
674
+ createdDateTime?: string | null | undefined;
675
+ lastModifiedDateTime?: string | null | undefined;
676
+ chatId?: string | null | undefined;
677
+ }>;
678
+ } | {
679
+ slug: string;
680
+ description: string;
681
+ input: z.ZodObject<{
682
+ contentType: z.ZodDefault<z.ZodEnum<{
683
+ text: "text";
684
+ html: "html";
685
+ }>>;
686
+ content: z.ZodString;
687
+ chatId: z.ZodString;
688
+ }, z.core.$strip>;
689
+ output: z.ZodObject<{
690
+ id: z.ZodString;
691
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
692
+ lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
693
+ chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
694
+ body: z.ZodObject<{
695
+ content: z.ZodString;
696
+ contentType: z.ZodString;
697
+ }, z.core.$loose>;
698
+ }, z.core.$loose>;
699
+ options: {
700
+ chatId: typeof chats;
701
+ };
702
+ idempotent: boolean;
703
+ run({ client, input, req }: Run<typeof sendChatMessageInput>): Promise<{
704
+ [x: string]: unknown;
705
+ id: string;
706
+ body: {
707
+ [x: string]: unknown;
708
+ content: string;
709
+ contentType: string;
710
+ };
711
+ createdDateTime?: string | null | undefined;
712
+ lastModifiedDateTime?: string | null | undefined;
713
+ chatId?: string | null | undefined;
714
+ }>;
715
+ } | {
716
+ slug: string;
717
+ description: string;
718
+ input: z.ZodObject<{
719
+ contentType: z.ZodDefault<z.ZodEnum<{
720
+ text: "text";
721
+ html: "html";
722
+ }>>;
723
+ content: z.ZodString;
724
+ members: z.ZodArray<z.ZodString>;
725
+ teamId: z.ZodString;
726
+ }, z.core.$strip>;
727
+ output: z.ZodObject<{
728
+ chat: z.ZodObject<{
729
+ id: z.ZodString;
730
+ topic: z.ZodOptional<z.ZodNullable<z.ZodString>>;
731
+ chatType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
732
+ oneOnOne: "oneOnOne";
733
+ group: "group";
734
+ meeting: "meeting";
735
+ unknownFutureValue: "unknownFutureValue";
736
+ }>>>;
737
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
738
+ lastUpdatedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
739
+ members: z.ZodOptional<z.ZodArray<z.ZodObject<{
740
+ id: z.ZodString;
741
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
742
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
743
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
744
+ }, z.core.$loose>>>;
745
+ }, z.core.$loose>;
746
+ message: z.ZodObject<{
747
+ id: z.ZodString;
748
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
749
+ lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
750
+ chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
751
+ body: z.ZodObject<{
752
+ content: z.ZodString;
753
+ contentType: z.ZodString;
754
+ }, z.core.$loose>;
755
+ }, z.core.$loose>;
756
+ }, z.core.$strip>;
757
+ options: {
758
+ teamId: typeof teams;
759
+ members: typeof members;
760
+ };
761
+ idempotent: boolean;
762
+ run({ client, input, req }: Run<typeof createChatInput>): Promise<{
763
+ chat: {
764
+ [x: string]: unknown;
765
+ id: string;
766
+ topic?: string | null | undefined;
767
+ chatType?: "oneOnOne" | "group" | "meeting" | "unknownFutureValue" | null | undefined;
768
+ createdDateTime?: string | null | undefined;
769
+ lastUpdatedDateTime?: string | null | undefined;
770
+ members?: {
771
+ [x: string]: unknown;
772
+ id: string;
773
+ displayName?: string | null | undefined;
774
+ email?: string | null | undefined;
775
+ userId?: string | null | undefined;
776
+ }[] | undefined;
777
+ };
778
+ message: {
779
+ [x: string]: unknown;
780
+ id: string;
781
+ body: {
782
+ [x: string]: unknown;
783
+ content: string;
784
+ contentType: string;
785
+ };
786
+ createdDateTime?: string | null | undefined;
787
+ lastModifiedDateTime?: string | null | undefined;
788
+ chatId?: string | null | undefined;
789
+ };
790
+ }>;
791
+ } | {
792
+ slug: string;
793
+ description: string;
794
+ input: z.ZodObject<{
795
+ messageId: z.ZodString;
796
+ chatId: z.ZodString;
797
+ }, z.core.$strip>;
798
+ output: z.ZodObject<{
799
+ id: z.ZodString;
800
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
801
+ lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
802
+ chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
803
+ body: z.ZodObject<{
804
+ content: z.ZodString;
805
+ contentType: z.ZodString;
806
+ }, z.core.$loose>;
807
+ }, z.core.$loose>;
808
+ options: {
809
+ chatId: typeof chats;
810
+ };
811
+ idempotent: boolean;
812
+ run({ client, input, req }: Run<typeof getChatMessageInput>): Promise<{
813
+ [x: string]: unknown;
814
+ id: string;
815
+ body: {
816
+ [x: string]: unknown;
817
+ content: string;
818
+ contentType: string;
819
+ };
820
+ createdDateTime?: string | null | undefined;
821
+ lastModifiedDateTime?: string | null | undefined;
822
+ chatId?: string | null | undefined;
823
+ }>;
824
+ } | {
825
+ slug: string;
826
+ description: string;
827
+ input: z.ZodObject<{
828
+ messageId: z.ZodString;
829
+ chatId: z.ZodString;
830
+ }, z.core.$strip>;
831
+ output: z.ZodObject<{
832
+ success: z.ZodLiteral<true>;
833
+ messageId: z.ZodString;
834
+ chatId: z.ZodString;
835
+ }, z.core.$strip>;
836
+ options: {
837
+ chatId: typeof chats;
838
+ };
839
+ idempotent: boolean;
840
+ run({ client, input, req }: Run<typeof getChatMessageInput>): Promise<{
841
+ success: boolean;
842
+ messageId: string;
843
+ chatId: string;
844
+ }>;
845
+ } | {
846
+ slug: string;
847
+ description: string;
848
+ input: z.ZodObject<{
849
+ messageId: z.ZodString;
850
+ replyId: z.ZodOptional<z.ZodString>;
851
+ channelId: z.ZodString;
852
+ teamId: z.ZodString;
853
+ }, z.core.$strip>;
854
+ output: z.ZodObject<{
855
+ id: z.ZodString;
856
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
857
+ lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
858
+ chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
859
+ body: z.ZodObject<{
860
+ content: z.ZodString;
861
+ contentType: z.ZodString;
862
+ }, z.core.$loose>;
863
+ }, z.core.$loose>;
864
+ options: {
865
+ teamId: typeof teams;
866
+ channelId: typeof channels;
867
+ };
868
+ idempotent: boolean;
869
+ run({ client, input, req }: Run<typeof getChannelMessageInput>): Promise<{
870
+ [x: string]: unknown;
871
+ id: string;
872
+ body: {
873
+ [x: string]: unknown;
874
+ content: string;
875
+ contentType: string;
876
+ };
877
+ createdDateTime?: string | null | undefined;
878
+ lastModifiedDateTime?: string | null | undefined;
879
+ chatId?: string | null | undefined;
880
+ }>;
881
+ } | {
882
+ slug: string;
883
+ description: string;
884
+ input: z.ZodObject<{
885
+ channelName: z.ZodString;
886
+ teamId: z.ZodString;
887
+ }, z.core.$strip>;
888
+ output: z.ZodObject<{
889
+ found: z.ZodBoolean;
890
+ result: z.ZodArray<z.ZodObject<{
891
+ id: z.ZodString;
892
+ displayName: z.ZodString;
893
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
894
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
895
+ membershipType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
896
+ isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
897
+ }, z.core.$loose>>;
898
+ }, z.core.$strip>;
899
+ options: {
900
+ teamId: typeof teams;
901
+ };
902
+ idempotent: boolean;
903
+ run({ client, input, req }: Run<typeof findChannelInput>): Promise<{
904
+ found: boolean;
905
+ result: {
906
+ [x: string]: unknown;
907
+ id: string;
908
+ displayName: string;
909
+ description?: string | null | undefined;
910
+ createdDateTime?: string | null | undefined;
911
+ membershipType?: string | null | undefined;
912
+ isArchived?: boolean | null | undefined;
913
+ }[];
914
+ }>;
915
+ } | {
916
+ slug: string;
917
+ description: string;
918
+ input: z.ZodObject<{
919
+ searchBy: z.ZodDefault<z.ZodEnum<{
920
+ email: "email";
921
+ name: "name";
922
+ }>>;
923
+ searchValue: z.ZodString;
924
+ teamId: z.ZodString;
925
+ }, z.core.$strip>;
926
+ output: z.ZodObject<{
927
+ found: z.ZodBoolean;
928
+ result: z.ZodArray<z.ZodObject<{
929
+ id: z.ZodString;
930
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
931
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
932
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
933
+ }, z.core.$loose>>;
934
+ }, z.core.$strip>;
935
+ options: {
936
+ teamId: typeof teams;
937
+ };
938
+ idempotent: boolean;
939
+ run({ client, input, req }: Run<typeof findMemberInput>): Promise<{
940
+ found: boolean;
941
+ result: {
942
+ [x: string]: unknown;
943
+ id: string;
944
+ displayName?: string | null | undefined;
945
+ email?: string | null | undefined;
946
+ userId?: string | null | undefined;
947
+ }[];
948
+ }>;
949
+ } | {
950
+ slug: string;
951
+ description: string;
952
+ input: z.ZodObject<{
953
+ transcriptId: z.ZodOptional<z.ZodString>;
954
+ meetingIdentifierType: z.ZodDefault<z.ZodEnum<{
955
+ meetingId: "meetingId";
956
+ joinWebUrl: "joinWebUrl";
957
+ joinMeetingId: "joinMeetingId";
958
+ }>>;
959
+ meetingIdentifierValue: z.ZodString;
960
+ }, z.core.$strip>;
961
+ output: z.ZodUnion<readonly [z.ZodObject<{
962
+ content: z.ZodString;
963
+ }, z.core.$strip>, z.ZodType<import("./schemas.js").GraphPage<{
964
+ [x: string]: unknown;
965
+ id: string;
966
+ createdDateTime?: string | null | undefined;
967
+ }>, unknown, z.core.$ZodTypeInternals<import("./schemas.js").GraphPage<{
968
+ [x: string]: unknown;
969
+ id: string;
970
+ createdDateTime?: string | null | undefined;
971
+ }>, unknown>>]>;
972
+ idempotent: boolean;
973
+ run({ client, input, req }: Run<typeof transcriptInput>): Promise<import("./schemas.js").GraphPage<{
974
+ [x: string]: unknown;
975
+ id: string;
976
+ createdDateTime?: string | null | undefined;
977
+ }> | {
978
+ content: string;
979
+ }>;
980
+ } | {
981
+ slug: string;
982
+ description: string;
983
+ input: z.ZodObject<{
984
+ recordingId: z.ZodOptional<z.ZodString>;
985
+ meetingIdentifierType: z.ZodDefault<z.ZodEnum<{
986
+ meetingId: "meetingId";
987
+ joinWebUrl: "joinWebUrl";
988
+ joinMeetingId: "joinMeetingId";
989
+ }>>;
990
+ meetingIdentifierValue: z.ZodString;
991
+ }, z.core.$strip>;
992
+ output: z.ZodUnion<readonly [z.ZodObject<{
993
+ id: z.ZodString;
994
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
995
+ }, z.core.$loose>, z.ZodType<import("./schemas.js").GraphPage<{
996
+ [x: string]: unknown;
997
+ id: string;
998
+ createdDateTime?: string | null | undefined;
999
+ }>, unknown, z.core.$ZodTypeInternals<import("./schemas.js").GraphPage<{
1000
+ [x: string]: unknown;
1001
+ id: string;
1002
+ createdDateTime?: string | null | undefined;
1003
+ }>, unknown>>]>;
1004
+ idempotent: boolean;
1005
+ run({ client, input, req }: Run<typeof recordingInput>): Promise<{
1006
+ [x: string]: unknown;
1007
+ id: string;
1008
+ createdDateTime?: string | null | undefined;
1009
+ } | import("./schemas.js").GraphPage<{
1010
+ [x: string]: unknown;
1011
+ id: string;
1012
+ createdDateTime?: string | null | undefined;
1013
+ }>>;
1014
+ } | {
1015
+ slug: string;
1016
+ description: string;
1017
+ input: z.ZodObject<{
1018
+ method: z.ZodEnum<{
1019
+ GET: "GET";
1020
+ POST: "POST";
1021
+ PATCH: "PATCH";
1022
+ PUT: "PUT";
1023
+ DELETE: "DELETE";
1024
+ }>;
1025
+ path: z.ZodString;
1026
+ query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
1027
+ body: z.ZodOptional<z.ZodJSONSchema>;
1028
+ }, z.core.$strip>;
1029
+ output: z.ZodObject<{
1030
+ status: z.ZodNumber;
1031
+ body: z.ZodJSONSchema;
1032
+ }, z.core.$strip>;
1033
+ idempotent: boolean;
1034
+ run({ client, input, req }: Run<typeof customInput>): Promise<{
1035
+ status: number;
1036
+ body: unknown;
1037
+ }>;
1038
+ })[];
1039
+ export {};
1040
+ //# sourceMappingURL=actions.d.ts.map