@frogbotai/piece-microsoft-teams 0.26.0 → 0.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,50 +1,6 @@
1
- import type { PieceAppTrigger, PiecePollingTrigger, PieceRunArgs } from 'frogbot/pieces';
1
+ import type { PieceJSON } from 'frogbot/pieces';
2
2
  import { z } from 'zod';
3
- import type { MicrosoftTeamsClient } from './client.js';
4
- import { channels, chats, teams } from './options.js';
5
- import { channel, chat, message } from './schemas.js';
6
- type Cursor = {
7
- since: string;
8
- } | {
9
- since: string;
10
- deltaLink: string;
11
- };
12
- declare const newChannelInput: z.ZodObject<{
13
- teamId: z.ZodString;
14
- }, z.core.$strip>;
15
- export declare const channelCreated: PiecePollingTrigger<typeof newChannelInput, typeof channel, object, MicrosoftTeamsClient, Cursor> & {
16
- options: {
17
- teamId: typeof teams;
18
- };
19
- };
20
- declare const newChannelMessageInput: z.ZodObject<{
21
- teamId: z.ZodString;
22
- channelId: z.ZodString;
23
- }, z.core.$strip>;
24
- export declare const channelMessageCreated: PiecePollingTrigger<typeof newChannelMessageInput, typeof message, object, MicrosoftTeamsClient, Cursor> & {
25
- options: {
26
- teamId: typeof teams;
27
- channelId: typeof channels;
28
- };
29
- };
30
- declare const noInput: z.ZodObject<{}, z.core.$strip>;
31
- export declare const chatCreated: PiecePollingTrigger<typeof noInput, typeof chat, object, MicrosoftTeamsClient, Cursor>;
32
- declare const newChatMessageInput: z.ZodObject<{
33
- chatId: z.ZodString;
34
- }, z.core.$strip>;
35
- export declare const chatMessageCreated: PiecePollingTrigger<typeof newChatMessageInput, typeof message, object, MicrosoftTeamsClient, Cursor> & {
36
- options: {
37
- chatId: typeof chats;
38
- };
39
- };
40
- export declare const messageReceived: PieceAppTrigger;
41
- export declare const messageReactionReceived: PieceAppTrigger;
42
- export declare const cardActionReceived: PieceAppTrigger;
43
- export declare const conversationUpdated: PieceAppTrigger;
44
- export declare const installationUpdated: PieceAppTrigger;
45
- export declare const dialogOpened: PieceAppTrigger;
46
- export declare const dialogSubmitted: PieceAppTrigger;
47
- export declare const microsoftTeamsTriggerDefinitions: (({
3
+ export declare const channelCreated: {
48
4
  slug: string;
49
5
  label?: string;
50
6
  description: string;
@@ -71,9 +27,14 @@ export declare const microsoftTeamsTriggerDefinitions: (({
71
27
  } & {
72
28
  type: "polling";
73
29
  schedule?: string;
74
- run(args: PieceRunArgs<{
30
+ run(args: import("frogbot").PieceRunArgs<{
75
31
  teamId: string;
76
- }, object, {
32
+ }, {
33
+ botAppType: "MultiTenant" | "SingleTenant";
34
+ botUsername: string;
35
+ botTenantId?: string | undefined;
36
+ botApiUrl?: string | undefined;
37
+ }, {
77
38
  baseUrl: string;
78
39
  request: <T>(path: string, schema: z.ZodType<T>, options?: {
79
40
  method?: string;
@@ -104,7 +65,7 @@ export declare const microsoftTeamsTriggerDefinitions: (({
104
65
  signal?: AbortSignal;
105
66
  }) => Promise<import("./schemas.js").GraphPage<T>>;
106
67
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
107
- custom(path: string, schema: z.ZodType, options?: {
68
+ custom<T>(path: string, schema: z.ZodType<T>, options?: {
108
69
  method?: string;
109
70
  body?: unknown;
110
71
  headers?: Record<string, string>;
@@ -112,10 +73,10 @@ export declare const microsoftTeamsTriggerDefinitions: (({
112
73
  signal?: AbortSignal;
113
74
  }): Promise<{
114
75
  status: number;
115
- body: unknown;
76
+ body: T;
116
77
  }>;
117
78
  }> & {
118
- cursor?: Cursor | undefined;
79
+ cursor?: PieceJSON | undefined;
119
80
  }): Promise<{
120
81
  events: {
121
82
  [x: string]: unknown;
@@ -126,13 +87,12 @@ export declare const microsoftTeamsTriggerDefinitions: (({
126
87
  membershipType?: string | null | undefined;
127
88
  isArchived?: boolean | null | undefined;
128
89
  }[];
129
- cursor?: Cursor | undefined;
90
+ cursor?: PieceJSON | undefined;
130
91
  }>;
131
92
  } & {
132
- options: {
133
- teamId: typeof teams;
134
- };
135
- }) | ({
93
+ slug: "channelCreated";
94
+ };
95
+ export declare const channelMessageCreated: {
136
96
  slug: string;
137
97
  label?: string;
138
98
  description: string;
@@ -165,10 +125,15 @@ export declare const microsoftTeamsTriggerDefinitions: (({
165
125
  } & {
166
126
  type: "polling";
167
127
  schedule?: string;
168
- run(args: PieceRunArgs<{
128
+ run(args: import("frogbot").PieceRunArgs<{
169
129
  teamId: string;
170
130
  channelId: string;
171
- }, object, {
131
+ }, {
132
+ botAppType: "MultiTenant" | "SingleTenant";
133
+ botUsername: string;
134
+ botTenantId?: string | undefined;
135
+ botApiUrl?: string | undefined;
136
+ }, {
172
137
  baseUrl: string;
173
138
  request: <T>(path: string, schema: z.ZodType<T>, options?: {
174
139
  method?: string;
@@ -199,7 +164,7 @@ export declare const microsoftTeamsTriggerDefinitions: (({
199
164
  signal?: AbortSignal;
200
165
  }) => Promise<import("./schemas.js").GraphPage<T>>;
201
166
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
202
- custom(path: string, schema: z.ZodType, options?: {
167
+ custom<T>(path: string, schema: z.ZodType<T>, options?: {
203
168
  method?: string;
204
169
  body?: unknown;
205
170
  headers?: Record<string, string>;
@@ -207,10 +172,10 @@ export declare const microsoftTeamsTriggerDefinitions: (({
207
172
  signal?: AbortSignal;
208
173
  }): Promise<{
209
174
  status: number;
210
- body: unknown;
175
+ body: T;
211
176
  }>;
212
177
  }> & {
213
- cursor?: Cursor | undefined;
178
+ cursor?: PieceJSON | undefined;
214
179
  }): Promise<{
215
180
  events: {
216
181
  [x: string]: unknown;
@@ -224,72 +189,122 @@ export declare const microsoftTeamsTriggerDefinitions: (({
224
189
  lastModifiedDateTime?: string | null | undefined;
225
190
  chatId?: string | null | undefined;
226
191
  }[];
227
- cursor?: Cursor | undefined;
192
+ cursor?: PieceJSON | undefined;
228
193
  }>;
229
194
  } & {
230
- options: {
231
- teamId: typeof teams;
232
- channelId: typeof channels;
233
- };
234
- }) | PiecePollingTrigger<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
235
- id: z.ZodString;
236
- topic: z.ZodOptional<z.ZodNullable<z.ZodString>>;
237
- chatType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
238
- oneOnOne: "oneOnOne";
239
- group: "group";
240
- meeting: "meeting";
241
- unknownFutureValue: "unknownFutureValue";
242
- }>>>;
243
- createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
244
- lastUpdatedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
245
- members: z.ZodOptional<z.ZodArray<z.ZodObject<{
195
+ slug: "channelMessageCreated";
196
+ };
197
+ export declare const chatCreated: {
198
+ slug: string;
199
+ label?: string;
200
+ description: string;
201
+ input: z.ZodObject<{}, z.core.$strip>;
202
+ output?: z.ZodObject<{
246
203
  id: z.ZodString;
247
- displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
248
- email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
249
- userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
250
- }, z.core.$loose>>>;
251
- }, z.core.$loose>, object, {
252
- baseUrl: string;
253
- request: <T>(path: string, schema: z.ZodType<T>, options?: {
254
- method?: string;
255
- body?: unknown;
256
- headers?: Record<string, string>;
257
- query?: Record<string, string | number>;
258
- signal?: AbortSignal;
259
- }) => Promise<T>;
260
- text(path: string, options?: {
261
- method?: string;
262
- body?: unknown;
263
- headers?: Record<string, string>;
264
- query?: Record<string, string | number>;
265
- signal?: AbortSignal;
266
- }): Promise<string>;
267
- list: <T>(path: string, schema: z.ZodType<T>, options?: {
268
- method?: string;
269
- body?: unknown;
270
- headers?: Record<string, string>;
271
- query?: Record<string, string | number>;
272
- signal?: AbortSignal;
273
- }) => Promise<T[]>;
274
- page: <T>(path: string, schema: z.ZodType<T>, options?: {
275
- method?: string;
276
- body?: unknown;
277
- headers?: Record<string, string>;
278
- query?: Record<string, string | number>;
279
- signal?: AbortSignal;
280
- }) => Promise<import("./schemas.js").GraphPage<T>>;
281
- meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
282
- custom(path: string, schema: z.ZodType, options?: {
283
- method?: string;
284
- body?: unknown;
285
- headers?: Record<string, string>;
286
- query?: Record<string, string | number>;
287
- signal?: AbortSignal;
204
+ topic: z.ZodOptional<z.ZodNullable<z.ZodString>>;
205
+ chatType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
206
+ oneOnOne: "oneOnOne";
207
+ group: "group";
208
+ meeting: "meeting";
209
+ unknownFutureValue: "unknownFutureValue";
210
+ }>>>;
211
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
212
+ lastUpdatedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
213
+ members: z.ZodOptional<z.ZodArray<z.ZodObject<{
214
+ id: z.ZodString;
215
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
216
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
217
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
218
+ }, z.core.$loose>>>;
219
+ }, z.core.$loose> | undefined;
220
+ sample?: {
221
+ [x: string]: unknown;
222
+ id: string;
223
+ topic?: string | null | undefined;
224
+ chatType?: "oneOnOne" | "group" | "meeting" | "unknownFutureValue" | null | undefined;
225
+ createdDateTime?: string | null | undefined;
226
+ lastUpdatedDateTime?: string | null | undefined;
227
+ members?: {
228
+ [x: string]: unknown;
229
+ id: string;
230
+ displayName?: string | null | undefined;
231
+ email?: string | null | undefined;
232
+ userId?: string | null | undefined;
233
+ }[] | undefined;
234
+ } | undefined;
235
+ } & {
236
+ type: "polling";
237
+ schedule?: string;
238
+ run(args: import("frogbot").PieceRunArgs<Record<string, never>, {
239
+ botAppType: "MultiTenant" | "SingleTenant";
240
+ botUsername: string;
241
+ botTenantId?: string | undefined;
242
+ botApiUrl?: string | undefined;
243
+ }, {
244
+ baseUrl: string;
245
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
246
+ method?: string;
247
+ body?: unknown;
248
+ headers?: Record<string, string>;
249
+ query?: Record<string, string | number>;
250
+ signal?: AbortSignal;
251
+ }) => Promise<T>;
252
+ text(path: string, options?: {
253
+ method?: string;
254
+ body?: unknown;
255
+ headers?: Record<string, string>;
256
+ query?: Record<string, string | number>;
257
+ signal?: AbortSignal;
258
+ }): Promise<string>;
259
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
260
+ method?: string;
261
+ body?: unknown;
262
+ headers?: Record<string, string>;
263
+ query?: Record<string, string | number>;
264
+ signal?: AbortSignal;
265
+ }) => Promise<T[]>;
266
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
267
+ method?: string;
268
+ body?: unknown;
269
+ headers?: Record<string, string>;
270
+ query?: Record<string, string | number>;
271
+ signal?: AbortSignal;
272
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
273
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
274
+ custom<T>(path: string, schema: z.ZodType<T>, options?: {
275
+ method?: string;
276
+ body?: unknown;
277
+ headers?: Record<string, string>;
278
+ query?: Record<string, string | number>;
279
+ signal?: AbortSignal;
280
+ }): Promise<{
281
+ status: number;
282
+ body: T;
283
+ }>;
284
+ }> & {
285
+ cursor?: PieceJSON | undefined;
288
286
  }): Promise<{
289
- status: number;
290
- body: unknown;
287
+ events: {
288
+ [x: string]: unknown;
289
+ id: string;
290
+ topic?: string | null | undefined;
291
+ chatType?: "oneOnOne" | "group" | "meeting" | "unknownFutureValue" | null | undefined;
292
+ createdDateTime?: string | null | undefined;
293
+ lastUpdatedDateTime?: string | null | undefined;
294
+ members?: {
295
+ [x: string]: unknown;
296
+ id: string;
297
+ displayName?: string | null | undefined;
298
+ email?: string | null | undefined;
299
+ userId?: string | null | undefined;
300
+ }[] | undefined;
301
+ }[];
302
+ cursor?: PieceJSON | undefined;
291
303
  }>;
292
- }, Cursor> | ({
304
+ } & {
305
+ slug: "chatCreated";
306
+ };
307
+ export declare const chatMessageCreated: {
293
308
  slug: string;
294
309
  label?: string;
295
310
  description: string;
@@ -321,9 +336,14 @@ export declare const microsoftTeamsTriggerDefinitions: (({
321
336
  } & {
322
337
  type: "polling";
323
338
  schedule?: string;
324
- run(args: PieceRunArgs<{
339
+ run(args: import("frogbot").PieceRunArgs<{
325
340
  chatId: string;
326
- }, object, {
341
+ }, {
342
+ botAppType: "MultiTenant" | "SingleTenant";
343
+ botUsername: string;
344
+ botTenantId?: string | undefined;
345
+ botApiUrl?: string | undefined;
346
+ }, {
327
347
  baseUrl: string;
328
348
  request: <T>(path: string, schema: z.ZodType<T>, options?: {
329
349
  method?: string;
@@ -354,7 +374,7 @@ export declare const microsoftTeamsTriggerDefinitions: (({
354
374
  signal?: AbortSignal;
355
375
  }) => Promise<import("./schemas.js").GraphPage<T>>;
356
376
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
357
- custom(path: string, schema: z.ZodType, options?: {
377
+ custom<T>(path: string, schema: z.ZodType<T>, options?: {
358
378
  method?: string;
359
379
  body?: unknown;
360
380
  headers?: Record<string, string>;
@@ -362,10 +382,10 @@ export declare const microsoftTeamsTriggerDefinitions: (({
362
382
  signal?: AbortSignal;
363
383
  }): Promise<{
364
384
  status: number;
365
- body: unknown;
385
+ body: T;
366
386
  }>;
367
387
  }> & {
368
- cursor?: Cursor | undefined;
388
+ cursor?: PieceJSON | undefined;
369
389
  }): Promise<{
370
390
  events: {
371
391
  [x: string]: unknown;
@@ -379,12 +399,1243 @@ export declare const microsoftTeamsTriggerDefinitions: (({
379
399
  lastModifiedDateTime?: string | null | undefined;
380
400
  chatId?: string | null | undefined;
381
401
  }[];
382
- cursor?: Cursor | undefined;
402
+ cursor?: PieceJSON | undefined;
383
403
  }>;
384
404
  } & {
385
- options: {
386
- chatId: typeof chats;
387
- };
388
- }) | PieceAppTrigger)[];
389
- export {};
405
+ slug: "chatMessageCreated";
406
+ };
407
+ export declare const messageReceived: {
408
+ slug: string;
409
+ label?: string;
410
+ description: string;
411
+ input: z.ZodObject<{}, z.core.$strip>;
412
+ output?: z.ZodRecord<z.ZodString, z.ZodUnknown> | undefined;
413
+ sample?: Record<string, unknown> | undefined;
414
+ } & {
415
+ type: "app";
416
+ event: string;
417
+ run(args: import("frogbot").PieceRunArgs<Record<string, never>, {
418
+ botAppType: "MultiTenant" | "SingleTenant";
419
+ botUsername: string;
420
+ botTenantId?: string | undefined;
421
+ botApiUrl?: string | undefined;
422
+ }, {
423
+ baseUrl: string;
424
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
425
+ method?: string;
426
+ body?: unknown;
427
+ headers?: Record<string, string>;
428
+ query?: Record<string, string | number>;
429
+ signal?: AbortSignal;
430
+ }) => Promise<T>;
431
+ text(path: string, options?: {
432
+ method?: string;
433
+ body?: unknown;
434
+ headers?: Record<string, string>;
435
+ query?: Record<string, string | number>;
436
+ signal?: AbortSignal;
437
+ }): Promise<string>;
438
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
439
+ method?: string;
440
+ body?: unknown;
441
+ headers?: Record<string, string>;
442
+ query?: Record<string, string | number>;
443
+ signal?: AbortSignal;
444
+ }) => Promise<T[]>;
445
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
446
+ method?: string;
447
+ body?: unknown;
448
+ headers?: Record<string, string>;
449
+ query?: Record<string, string | number>;
450
+ signal?: AbortSignal;
451
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
452
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
453
+ custom<T>(path: string, schema: z.ZodType<T>, options?: {
454
+ method?: string;
455
+ body?: unknown;
456
+ headers?: Record<string, string>;
457
+ query?: Record<string, string | number>;
458
+ signal?: AbortSignal;
459
+ }): Promise<{
460
+ status: number;
461
+ body: T;
462
+ }>;
463
+ }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
464
+ } & {
465
+ slug: "messageReceived";
466
+ };
467
+ export declare const messageReactionReceived: {
468
+ slug: string;
469
+ label?: string;
470
+ description: string;
471
+ input: z.ZodObject<{}, z.core.$strip>;
472
+ output?: z.ZodRecord<z.ZodString, z.ZodUnknown> | undefined;
473
+ sample?: Record<string, unknown> | undefined;
474
+ } & {
475
+ type: "app";
476
+ event: string;
477
+ run(args: import("frogbot").PieceRunArgs<Record<string, never>, {
478
+ botAppType: "MultiTenant" | "SingleTenant";
479
+ botUsername: string;
480
+ botTenantId?: string | undefined;
481
+ botApiUrl?: string | undefined;
482
+ }, {
483
+ baseUrl: string;
484
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
485
+ method?: string;
486
+ body?: unknown;
487
+ headers?: Record<string, string>;
488
+ query?: Record<string, string | number>;
489
+ signal?: AbortSignal;
490
+ }) => Promise<T>;
491
+ text(path: string, options?: {
492
+ method?: string;
493
+ body?: unknown;
494
+ headers?: Record<string, string>;
495
+ query?: Record<string, string | number>;
496
+ signal?: AbortSignal;
497
+ }): Promise<string>;
498
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
499
+ method?: string;
500
+ body?: unknown;
501
+ headers?: Record<string, string>;
502
+ query?: Record<string, string | number>;
503
+ signal?: AbortSignal;
504
+ }) => Promise<T[]>;
505
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
506
+ method?: string;
507
+ body?: unknown;
508
+ headers?: Record<string, string>;
509
+ query?: Record<string, string | number>;
510
+ signal?: AbortSignal;
511
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
512
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
513
+ custom<T>(path: string, schema: z.ZodType<T>, options?: {
514
+ method?: string;
515
+ body?: unknown;
516
+ headers?: Record<string, string>;
517
+ query?: Record<string, string | number>;
518
+ signal?: AbortSignal;
519
+ }): Promise<{
520
+ status: number;
521
+ body: T;
522
+ }>;
523
+ }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
524
+ } & {
525
+ slug: "messageReactionReceived";
526
+ };
527
+ export declare const cardActionReceived: {
528
+ slug: string;
529
+ label?: string;
530
+ description: string;
531
+ input: z.ZodObject<{}, z.core.$strip>;
532
+ output?: z.ZodRecord<z.ZodString, z.ZodUnknown> | undefined;
533
+ sample?: Record<string, unknown> | undefined;
534
+ } & {
535
+ type: "app";
536
+ event: string;
537
+ run(args: import("frogbot").PieceRunArgs<Record<string, never>, {
538
+ botAppType: "MultiTenant" | "SingleTenant";
539
+ botUsername: string;
540
+ botTenantId?: string | undefined;
541
+ botApiUrl?: string | undefined;
542
+ }, {
543
+ baseUrl: string;
544
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
545
+ method?: string;
546
+ body?: unknown;
547
+ headers?: Record<string, string>;
548
+ query?: Record<string, string | number>;
549
+ signal?: AbortSignal;
550
+ }) => Promise<T>;
551
+ text(path: string, options?: {
552
+ method?: string;
553
+ body?: unknown;
554
+ headers?: Record<string, string>;
555
+ query?: Record<string, string | number>;
556
+ signal?: AbortSignal;
557
+ }): Promise<string>;
558
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
559
+ method?: string;
560
+ body?: unknown;
561
+ headers?: Record<string, string>;
562
+ query?: Record<string, string | number>;
563
+ signal?: AbortSignal;
564
+ }) => Promise<T[]>;
565
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
566
+ method?: string;
567
+ body?: unknown;
568
+ headers?: Record<string, string>;
569
+ query?: Record<string, string | number>;
570
+ signal?: AbortSignal;
571
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
572
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
573
+ custom<T>(path: string, schema: z.ZodType<T>, options?: {
574
+ method?: string;
575
+ body?: unknown;
576
+ headers?: Record<string, string>;
577
+ query?: Record<string, string | number>;
578
+ signal?: AbortSignal;
579
+ }): Promise<{
580
+ status: number;
581
+ body: T;
582
+ }>;
583
+ }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
584
+ } & {
585
+ slug: "cardActionReceived";
586
+ };
587
+ export declare const conversationUpdated: {
588
+ slug: string;
589
+ label?: string;
590
+ description: string;
591
+ input: z.ZodObject<{}, z.core.$strip>;
592
+ output?: z.ZodRecord<z.ZodString, z.ZodUnknown> | undefined;
593
+ sample?: Record<string, unknown> | undefined;
594
+ } & {
595
+ type: "app";
596
+ event: string;
597
+ run(args: import("frogbot").PieceRunArgs<Record<string, never>, {
598
+ botAppType: "MultiTenant" | "SingleTenant";
599
+ botUsername: string;
600
+ botTenantId?: string | undefined;
601
+ botApiUrl?: string | undefined;
602
+ }, {
603
+ baseUrl: string;
604
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
605
+ method?: string;
606
+ body?: unknown;
607
+ headers?: Record<string, string>;
608
+ query?: Record<string, string | number>;
609
+ signal?: AbortSignal;
610
+ }) => Promise<T>;
611
+ text(path: string, options?: {
612
+ method?: string;
613
+ body?: unknown;
614
+ headers?: Record<string, string>;
615
+ query?: Record<string, string | number>;
616
+ signal?: AbortSignal;
617
+ }): Promise<string>;
618
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
619
+ method?: string;
620
+ body?: unknown;
621
+ headers?: Record<string, string>;
622
+ query?: Record<string, string | number>;
623
+ signal?: AbortSignal;
624
+ }) => Promise<T[]>;
625
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
626
+ method?: string;
627
+ body?: unknown;
628
+ headers?: Record<string, string>;
629
+ query?: Record<string, string | number>;
630
+ signal?: AbortSignal;
631
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
632
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
633
+ custom<T>(path: string, schema: z.ZodType<T>, options?: {
634
+ method?: string;
635
+ body?: unknown;
636
+ headers?: Record<string, string>;
637
+ query?: Record<string, string | number>;
638
+ signal?: AbortSignal;
639
+ }): Promise<{
640
+ status: number;
641
+ body: T;
642
+ }>;
643
+ }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
644
+ } & {
645
+ slug: "conversationUpdated";
646
+ };
647
+ export declare const installationUpdated: {
648
+ slug: string;
649
+ label?: string;
650
+ description: string;
651
+ input: z.ZodObject<{}, z.core.$strip>;
652
+ output?: z.ZodRecord<z.ZodString, z.ZodUnknown> | undefined;
653
+ sample?: Record<string, unknown> | undefined;
654
+ } & {
655
+ type: "app";
656
+ event: string;
657
+ run(args: import("frogbot").PieceRunArgs<Record<string, never>, {
658
+ botAppType: "MultiTenant" | "SingleTenant";
659
+ botUsername: string;
660
+ botTenantId?: string | undefined;
661
+ botApiUrl?: string | undefined;
662
+ }, {
663
+ baseUrl: string;
664
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
665
+ method?: string;
666
+ body?: unknown;
667
+ headers?: Record<string, string>;
668
+ query?: Record<string, string | number>;
669
+ signal?: AbortSignal;
670
+ }) => Promise<T>;
671
+ text(path: string, options?: {
672
+ method?: string;
673
+ body?: unknown;
674
+ headers?: Record<string, string>;
675
+ query?: Record<string, string | number>;
676
+ signal?: AbortSignal;
677
+ }): Promise<string>;
678
+ list: <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<T[]>;
685
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
686
+ method?: string;
687
+ body?: unknown;
688
+ headers?: Record<string, string>;
689
+ query?: Record<string, string | number>;
690
+ signal?: AbortSignal;
691
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
692
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
693
+ custom<T>(path: string, schema: z.ZodType<T>, options?: {
694
+ method?: string;
695
+ body?: unknown;
696
+ headers?: Record<string, string>;
697
+ query?: Record<string, string | number>;
698
+ signal?: AbortSignal;
699
+ }): Promise<{
700
+ status: number;
701
+ body: T;
702
+ }>;
703
+ }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
704
+ } & {
705
+ slug: "installationUpdated";
706
+ };
707
+ export declare const dialogOpened: {
708
+ slug: string;
709
+ label?: string;
710
+ description: string;
711
+ input: z.ZodObject<{}, z.core.$strip>;
712
+ output?: z.ZodRecord<z.ZodString, z.ZodUnknown> | undefined;
713
+ sample?: Record<string, unknown> | undefined;
714
+ } & {
715
+ type: "app";
716
+ event: string;
717
+ run(args: import("frogbot").PieceRunArgs<Record<string, never>, {
718
+ botAppType: "MultiTenant" | "SingleTenant";
719
+ botUsername: string;
720
+ botTenantId?: string | undefined;
721
+ botApiUrl?: string | undefined;
722
+ }, {
723
+ baseUrl: string;
724
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
725
+ method?: string;
726
+ body?: unknown;
727
+ headers?: Record<string, string>;
728
+ query?: Record<string, string | number>;
729
+ signal?: AbortSignal;
730
+ }) => Promise<T>;
731
+ text(path: string, options?: {
732
+ method?: string;
733
+ body?: unknown;
734
+ headers?: Record<string, string>;
735
+ query?: Record<string, string | number>;
736
+ signal?: AbortSignal;
737
+ }): Promise<string>;
738
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
739
+ method?: string;
740
+ body?: unknown;
741
+ headers?: Record<string, string>;
742
+ query?: Record<string, string | number>;
743
+ signal?: AbortSignal;
744
+ }) => Promise<T[]>;
745
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
746
+ method?: string;
747
+ body?: unknown;
748
+ headers?: Record<string, string>;
749
+ query?: Record<string, string | number>;
750
+ signal?: AbortSignal;
751
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
752
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
753
+ custom<T>(path: string, schema: z.ZodType<T>, options?: {
754
+ method?: string;
755
+ body?: unknown;
756
+ headers?: Record<string, string>;
757
+ query?: Record<string, string | number>;
758
+ signal?: AbortSignal;
759
+ }): Promise<{
760
+ status: number;
761
+ body: T;
762
+ }>;
763
+ }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
764
+ } & {
765
+ slug: "dialogOpened";
766
+ };
767
+ export declare const dialogSubmitted: {
768
+ slug: string;
769
+ label?: string;
770
+ description: string;
771
+ input: z.ZodObject<{}, z.core.$strip>;
772
+ output?: z.ZodRecord<z.ZodString, z.ZodUnknown> | undefined;
773
+ sample?: Record<string, unknown> | undefined;
774
+ } & {
775
+ type: "app";
776
+ event: string;
777
+ run(args: import("frogbot").PieceRunArgs<Record<string, never>, {
778
+ botAppType: "MultiTenant" | "SingleTenant";
779
+ botUsername: string;
780
+ botTenantId?: string | undefined;
781
+ botApiUrl?: string | undefined;
782
+ }, {
783
+ baseUrl: string;
784
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
785
+ method?: string;
786
+ body?: unknown;
787
+ headers?: Record<string, string>;
788
+ query?: Record<string, string | number>;
789
+ signal?: AbortSignal;
790
+ }) => Promise<T>;
791
+ text(path: string, options?: {
792
+ method?: string;
793
+ body?: unknown;
794
+ headers?: Record<string, string>;
795
+ query?: Record<string, string | number>;
796
+ signal?: AbortSignal;
797
+ }): Promise<string>;
798
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
799
+ method?: string;
800
+ body?: unknown;
801
+ headers?: Record<string, string>;
802
+ query?: Record<string, string | number>;
803
+ signal?: AbortSignal;
804
+ }) => Promise<T[]>;
805
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
806
+ method?: string;
807
+ body?: unknown;
808
+ headers?: Record<string, string>;
809
+ query?: Record<string, string | number>;
810
+ signal?: AbortSignal;
811
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
812
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
813
+ custom<T>(path: string, schema: z.ZodType<T>, options?: {
814
+ method?: string;
815
+ body?: unknown;
816
+ headers?: Record<string, string>;
817
+ query?: Record<string, string | number>;
818
+ signal?: AbortSignal;
819
+ }): Promise<{
820
+ status: number;
821
+ body: T;
822
+ }>;
823
+ }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
824
+ } & {
825
+ slug: "dialogSubmitted";
826
+ };
827
+ export declare const microsoftTeamsTriggerDefinitions: (({
828
+ slug: string;
829
+ label?: string;
830
+ description: string;
831
+ input: z.ZodObject<{
832
+ teamId: z.ZodString;
833
+ }, z.core.$strip>;
834
+ output?: z.ZodObject<{
835
+ id: z.ZodString;
836
+ displayName: z.ZodString;
837
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
838
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
839
+ membershipType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
840
+ isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
841
+ }, z.core.$loose> | undefined;
842
+ sample?: {
843
+ [x: string]: unknown;
844
+ id: string;
845
+ displayName: string;
846
+ description?: string | null | undefined;
847
+ createdDateTime?: string | null | undefined;
848
+ membershipType?: string | null | undefined;
849
+ isArchived?: boolean | null | undefined;
850
+ } | undefined;
851
+ } & {
852
+ type: "polling";
853
+ schedule?: string;
854
+ run(args: import("frogbot").PieceRunArgs<{
855
+ teamId: string;
856
+ }, {
857
+ botAppType: "MultiTenant" | "SingleTenant";
858
+ botUsername: string;
859
+ botTenantId?: string | undefined;
860
+ botApiUrl?: string | undefined;
861
+ }, {
862
+ baseUrl: string;
863
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
864
+ method?: string;
865
+ body?: unknown;
866
+ headers?: Record<string, string>;
867
+ query?: Record<string, string | number>;
868
+ signal?: AbortSignal;
869
+ }) => Promise<T>;
870
+ text(path: string, options?: {
871
+ method?: string;
872
+ body?: unknown;
873
+ headers?: Record<string, string>;
874
+ query?: Record<string, string | number>;
875
+ signal?: AbortSignal;
876
+ }): Promise<string>;
877
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
878
+ method?: string;
879
+ body?: unknown;
880
+ headers?: Record<string, string>;
881
+ query?: Record<string, string | number>;
882
+ signal?: AbortSignal;
883
+ }) => Promise<T[]>;
884
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
885
+ method?: string;
886
+ body?: unknown;
887
+ headers?: Record<string, string>;
888
+ query?: Record<string, string | number>;
889
+ signal?: AbortSignal;
890
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
891
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
892
+ custom<T>(path: string, schema: z.ZodType<T>, options?: {
893
+ method?: string;
894
+ body?: unknown;
895
+ headers?: Record<string, string>;
896
+ query?: Record<string, string | number>;
897
+ signal?: AbortSignal;
898
+ }): Promise<{
899
+ status: number;
900
+ body: T;
901
+ }>;
902
+ }> & {
903
+ cursor?: PieceJSON | undefined;
904
+ }): Promise<{
905
+ events: {
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
+ cursor?: PieceJSON | undefined;
915
+ }>;
916
+ } & {
917
+ slug: "channelCreated";
918
+ }) | ({
919
+ slug: string;
920
+ label?: string;
921
+ description: string;
922
+ input: z.ZodObject<{
923
+ teamId: z.ZodString;
924
+ channelId: z.ZodString;
925
+ }, z.core.$strip>;
926
+ output?: z.ZodObject<{
927
+ id: z.ZodString;
928
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
929
+ lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
930
+ chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
931
+ body: z.ZodObject<{
932
+ content: z.ZodString;
933
+ contentType: z.ZodString;
934
+ }, z.core.$loose>;
935
+ }, z.core.$loose> | undefined;
936
+ sample?: {
937
+ [x: string]: unknown;
938
+ id: string;
939
+ body: {
940
+ [x: string]: unknown;
941
+ content: string;
942
+ contentType: string;
943
+ };
944
+ createdDateTime?: string | null | undefined;
945
+ lastModifiedDateTime?: string | null | undefined;
946
+ chatId?: string | null | undefined;
947
+ } | undefined;
948
+ } & {
949
+ type: "polling";
950
+ schedule?: string;
951
+ run(args: import("frogbot").PieceRunArgs<{
952
+ teamId: string;
953
+ channelId: string;
954
+ }, {
955
+ botAppType: "MultiTenant" | "SingleTenant";
956
+ botUsername: string;
957
+ botTenantId?: string | undefined;
958
+ botApiUrl?: string | undefined;
959
+ }, {
960
+ baseUrl: string;
961
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
962
+ method?: string;
963
+ body?: unknown;
964
+ headers?: Record<string, string>;
965
+ query?: Record<string, string | number>;
966
+ signal?: AbortSignal;
967
+ }) => Promise<T>;
968
+ text(path: string, options?: {
969
+ method?: string;
970
+ body?: unknown;
971
+ headers?: Record<string, string>;
972
+ query?: Record<string, string | number>;
973
+ signal?: AbortSignal;
974
+ }): Promise<string>;
975
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
976
+ method?: string;
977
+ body?: unknown;
978
+ headers?: Record<string, string>;
979
+ query?: Record<string, string | number>;
980
+ signal?: AbortSignal;
981
+ }) => Promise<T[]>;
982
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
983
+ method?: string;
984
+ body?: unknown;
985
+ headers?: Record<string, string>;
986
+ query?: Record<string, string | number>;
987
+ signal?: AbortSignal;
988
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
989
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
990
+ custom<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<{
997
+ status: number;
998
+ body: T;
999
+ }>;
1000
+ }> & {
1001
+ cursor?: PieceJSON | undefined;
1002
+ }): Promise<{
1003
+ events: {
1004
+ [x: string]: unknown;
1005
+ id: string;
1006
+ body: {
1007
+ [x: string]: unknown;
1008
+ content: string;
1009
+ contentType: string;
1010
+ };
1011
+ createdDateTime?: string | null | undefined;
1012
+ lastModifiedDateTime?: string | null | undefined;
1013
+ chatId?: string | null | undefined;
1014
+ }[];
1015
+ cursor?: PieceJSON | undefined;
1016
+ }>;
1017
+ } & {
1018
+ slug: "channelMessageCreated";
1019
+ }) | ({
1020
+ slug: string;
1021
+ label?: string;
1022
+ description: string;
1023
+ input: z.ZodObject<{}, z.core.$strip>;
1024
+ output?: z.ZodObject<{
1025
+ id: z.ZodString;
1026
+ topic: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1027
+ chatType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1028
+ oneOnOne: "oneOnOne";
1029
+ group: "group";
1030
+ meeting: "meeting";
1031
+ unknownFutureValue: "unknownFutureValue";
1032
+ }>>>;
1033
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1034
+ lastUpdatedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1035
+ members: z.ZodOptional<z.ZodArray<z.ZodObject<{
1036
+ id: z.ZodString;
1037
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1038
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1039
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1040
+ }, z.core.$loose>>>;
1041
+ }, z.core.$loose> | undefined;
1042
+ sample?: {
1043
+ [x: string]: unknown;
1044
+ id: string;
1045
+ topic?: string | null | undefined;
1046
+ chatType?: "oneOnOne" | "group" | "meeting" | "unknownFutureValue" | null | undefined;
1047
+ createdDateTime?: string | null | undefined;
1048
+ lastUpdatedDateTime?: string | null | undefined;
1049
+ members?: {
1050
+ [x: string]: unknown;
1051
+ id: string;
1052
+ displayName?: string | null | undefined;
1053
+ email?: string | null | undefined;
1054
+ userId?: string | null | undefined;
1055
+ }[] | undefined;
1056
+ } | undefined;
1057
+ } & {
1058
+ type: "polling";
1059
+ schedule?: string;
1060
+ run(args: import("frogbot").PieceRunArgs<Record<string, never>, {
1061
+ botAppType: "MultiTenant" | "SingleTenant";
1062
+ botUsername: string;
1063
+ botTenantId?: string | undefined;
1064
+ botApiUrl?: string | undefined;
1065
+ }, {
1066
+ baseUrl: string;
1067
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1068
+ method?: string;
1069
+ body?: unknown;
1070
+ headers?: Record<string, string>;
1071
+ query?: Record<string, string | number>;
1072
+ signal?: AbortSignal;
1073
+ }) => Promise<T>;
1074
+ text(path: string, options?: {
1075
+ method?: string;
1076
+ body?: unknown;
1077
+ headers?: Record<string, string>;
1078
+ query?: Record<string, string | number>;
1079
+ signal?: AbortSignal;
1080
+ }): Promise<string>;
1081
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
1082
+ method?: string;
1083
+ body?: unknown;
1084
+ headers?: Record<string, string>;
1085
+ query?: Record<string, string | number>;
1086
+ signal?: AbortSignal;
1087
+ }) => Promise<T[]>;
1088
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
1089
+ method?: string;
1090
+ body?: unknown;
1091
+ headers?: Record<string, string>;
1092
+ query?: Record<string, string | number>;
1093
+ signal?: AbortSignal;
1094
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
1095
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1096
+ custom<T>(path: string, schema: z.ZodType<T>, options?: {
1097
+ method?: string;
1098
+ body?: unknown;
1099
+ headers?: Record<string, string>;
1100
+ query?: Record<string, string | number>;
1101
+ signal?: AbortSignal;
1102
+ }): Promise<{
1103
+ status: number;
1104
+ body: T;
1105
+ }>;
1106
+ }> & {
1107
+ cursor?: PieceJSON | undefined;
1108
+ }): Promise<{
1109
+ events: {
1110
+ [x: string]: unknown;
1111
+ id: string;
1112
+ topic?: string | null | undefined;
1113
+ chatType?: "oneOnOne" | "group" | "meeting" | "unknownFutureValue" | null | undefined;
1114
+ createdDateTime?: string | null | undefined;
1115
+ lastUpdatedDateTime?: string | null | undefined;
1116
+ members?: {
1117
+ [x: string]: unknown;
1118
+ id: string;
1119
+ displayName?: string | null | undefined;
1120
+ email?: string | null | undefined;
1121
+ userId?: string | null | undefined;
1122
+ }[] | undefined;
1123
+ }[];
1124
+ cursor?: PieceJSON | undefined;
1125
+ }>;
1126
+ } & {
1127
+ slug: "chatCreated";
1128
+ }) | ({
1129
+ slug: string;
1130
+ label?: string;
1131
+ description: string;
1132
+ input: z.ZodObject<{
1133
+ chatId: z.ZodString;
1134
+ }, z.core.$strip>;
1135
+ output?: z.ZodObject<{
1136
+ id: z.ZodString;
1137
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1138
+ lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1139
+ chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1140
+ body: z.ZodObject<{
1141
+ content: z.ZodString;
1142
+ contentType: z.ZodString;
1143
+ }, z.core.$loose>;
1144
+ }, z.core.$loose> | undefined;
1145
+ sample?: {
1146
+ [x: string]: unknown;
1147
+ id: string;
1148
+ body: {
1149
+ [x: string]: unknown;
1150
+ content: string;
1151
+ contentType: string;
1152
+ };
1153
+ createdDateTime?: string | null | undefined;
1154
+ lastModifiedDateTime?: string | null | undefined;
1155
+ chatId?: string | null | undefined;
1156
+ } | undefined;
1157
+ } & {
1158
+ type: "polling";
1159
+ schedule?: string;
1160
+ run(args: import("frogbot").PieceRunArgs<{
1161
+ chatId: string;
1162
+ }, {
1163
+ botAppType: "MultiTenant" | "SingleTenant";
1164
+ botUsername: string;
1165
+ botTenantId?: string | undefined;
1166
+ botApiUrl?: string | undefined;
1167
+ }, {
1168
+ baseUrl: string;
1169
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1170
+ method?: string;
1171
+ body?: unknown;
1172
+ headers?: Record<string, string>;
1173
+ query?: Record<string, string | number>;
1174
+ signal?: AbortSignal;
1175
+ }) => Promise<T>;
1176
+ text(path: string, options?: {
1177
+ method?: string;
1178
+ body?: unknown;
1179
+ headers?: Record<string, string>;
1180
+ query?: Record<string, string | number>;
1181
+ signal?: AbortSignal;
1182
+ }): Promise<string>;
1183
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
1184
+ method?: string;
1185
+ body?: unknown;
1186
+ headers?: Record<string, string>;
1187
+ query?: Record<string, string | number>;
1188
+ signal?: AbortSignal;
1189
+ }) => Promise<T[]>;
1190
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
1191
+ method?: string;
1192
+ body?: unknown;
1193
+ headers?: Record<string, string>;
1194
+ query?: Record<string, string | number>;
1195
+ signal?: AbortSignal;
1196
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
1197
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1198
+ custom<T>(path: string, schema: z.ZodType<T>, options?: {
1199
+ method?: string;
1200
+ body?: unknown;
1201
+ headers?: Record<string, string>;
1202
+ query?: Record<string, string | number>;
1203
+ signal?: AbortSignal;
1204
+ }): Promise<{
1205
+ status: number;
1206
+ body: T;
1207
+ }>;
1208
+ }> & {
1209
+ cursor?: PieceJSON | undefined;
1210
+ }): Promise<{
1211
+ events: {
1212
+ [x: string]: unknown;
1213
+ id: string;
1214
+ body: {
1215
+ [x: string]: unknown;
1216
+ content: string;
1217
+ contentType: string;
1218
+ };
1219
+ createdDateTime?: string | null | undefined;
1220
+ lastModifiedDateTime?: string | null | undefined;
1221
+ chatId?: string | null | undefined;
1222
+ }[];
1223
+ cursor?: PieceJSON | undefined;
1224
+ }>;
1225
+ } & {
1226
+ slug: "chatMessageCreated";
1227
+ }) | ({
1228
+ slug: string;
1229
+ label?: string;
1230
+ description: string;
1231
+ input: z.ZodObject<{}, z.core.$strip>;
1232
+ output?: z.ZodRecord<z.ZodString, z.ZodUnknown> | undefined;
1233
+ sample?: Record<string, unknown> | undefined;
1234
+ } & {
1235
+ type: "app";
1236
+ event: string;
1237
+ run(args: import("frogbot").PieceRunArgs<Record<string, never>, {
1238
+ botAppType: "MultiTenant" | "SingleTenant";
1239
+ botUsername: string;
1240
+ botTenantId?: string | undefined;
1241
+ botApiUrl?: string | undefined;
1242
+ }, {
1243
+ baseUrl: string;
1244
+ request: <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
+ text(path: string, options?: {
1252
+ method?: string;
1253
+ body?: unknown;
1254
+ headers?: Record<string, string>;
1255
+ query?: Record<string, string | number>;
1256
+ signal?: AbortSignal;
1257
+ }): Promise<string>;
1258
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
1259
+ method?: string;
1260
+ body?: unknown;
1261
+ headers?: Record<string, string>;
1262
+ query?: Record<string, string | number>;
1263
+ signal?: AbortSignal;
1264
+ }) => Promise<T[]>;
1265
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
1266
+ method?: string;
1267
+ body?: unknown;
1268
+ headers?: Record<string, string>;
1269
+ query?: Record<string, string | number>;
1270
+ signal?: AbortSignal;
1271
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
1272
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1273
+ custom<T>(path: string, schema: z.ZodType<T>, options?: {
1274
+ method?: string;
1275
+ body?: unknown;
1276
+ headers?: Record<string, string>;
1277
+ query?: Record<string, string | number>;
1278
+ signal?: AbortSignal;
1279
+ }): Promise<{
1280
+ status: number;
1281
+ body: T;
1282
+ }>;
1283
+ }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1284
+ } & {
1285
+ slug: "messageReceived";
1286
+ }) | ({
1287
+ slug: string;
1288
+ label?: string;
1289
+ description: string;
1290
+ input: z.ZodObject<{}, z.core.$strip>;
1291
+ output?: z.ZodRecord<z.ZodString, z.ZodUnknown> | undefined;
1292
+ sample?: Record<string, unknown> | undefined;
1293
+ } & {
1294
+ type: "app";
1295
+ event: string;
1296
+ run(args: import("frogbot").PieceRunArgs<Record<string, never>, {
1297
+ botAppType: "MultiTenant" | "SingleTenant";
1298
+ botUsername: string;
1299
+ botTenantId?: string | undefined;
1300
+ botApiUrl?: string | undefined;
1301
+ }, {
1302
+ baseUrl: string;
1303
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1304
+ method?: string;
1305
+ body?: unknown;
1306
+ headers?: Record<string, string>;
1307
+ query?: Record<string, string | number>;
1308
+ signal?: AbortSignal;
1309
+ }) => Promise<T>;
1310
+ text(path: string, options?: {
1311
+ method?: string;
1312
+ body?: unknown;
1313
+ headers?: Record<string, string>;
1314
+ query?: Record<string, string | number>;
1315
+ signal?: AbortSignal;
1316
+ }): Promise<string>;
1317
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
1318
+ method?: string;
1319
+ body?: unknown;
1320
+ headers?: Record<string, string>;
1321
+ query?: Record<string, string | number>;
1322
+ signal?: AbortSignal;
1323
+ }) => Promise<T[]>;
1324
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
1325
+ method?: string;
1326
+ body?: unknown;
1327
+ headers?: Record<string, string>;
1328
+ query?: Record<string, string | number>;
1329
+ signal?: AbortSignal;
1330
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
1331
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1332
+ custom<T>(path: string, schema: z.ZodType<T>, options?: {
1333
+ method?: string;
1334
+ body?: unknown;
1335
+ headers?: Record<string, string>;
1336
+ query?: Record<string, string | number>;
1337
+ signal?: AbortSignal;
1338
+ }): Promise<{
1339
+ status: number;
1340
+ body: T;
1341
+ }>;
1342
+ }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1343
+ } & {
1344
+ slug: "messageReactionReceived";
1345
+ }) | ({
1346
+ slug: string;
1347
+ label?: string;
1348
+ description: string;
1349
+ input: z.ZodObject<{}, z.core.$strip>;
1350
+ output?: z.ZodRecord<z.ZodString, z.ZodUnknown> | undefined;
1351
+ sample?: Record<string, unknown> | undefined;
1352
+ } & {
1353
+ type: "app";
1354
+ event: string;
1355
+ run(args: import("frogbot").PieceRunArgs<Record<string, never>, {
1356
+ botAppType: "MultiTenant" | "SingleTenant";
1357
+ botUsername: string;
1358
+ botTenantId?: string | undefined;
1359
+ botApiUrl?: string | undefined;
1360
+ }, {
1361
+ baseUrl: string;
1362
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1363
+ method?: string;
1364
+ body?: unknown;
1365
+ headers?: Record<string, string>;
1366
+ query?: Record<string, string | number>;
1367
+ signal?: AbortSignal;
1368
+ }) => Promise<T>;
1369
+ text(path: string, options?: {
1370
+ method?: string;
1371
+ body?: unknown;
1372
+ headers?: Record<string, string>;
1373
+ query?: Record<string, string | number>;
1374
+ signal?: AbortSignal;
1375
+ }): Promise<string>;
1376
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
1377
+ method?: string;
1378
+ body?: unknown;
1379
+ headers?: Record<string, string>;
1380
+ query?: Record<string, string | number>;
1381
+ signal?: AbortSignal;
1382
+ }) => Promise<T[]>;
1383
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
1384
+ method?: string;
1385
+ body?: unknown;
1386
+ headers?: Record<string, string>;
1387
+ query?: Record<string, string | number>;
1388
+ signal?: AbortSignal;
1389
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
1390
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1391
+ custom<T>(path: string, schema: z.ZodType<T>, options?: {
1392
+ method?: string;
1393
+ body?: unknown;
1394
+ headers?: Record<string, string>;
1395
+ query?: Record<string, string | number>;
1396
+ signal?: AbortSignal;
1397
+ }): Promise<{
1398
+ status: number;
1399
+ body: T;
1400
+ }>;
1401
+ }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1402
+ } & {
1403
+ slug: "cardActionReceived";
1404
+ }) | ({
1405
+ slug: string;
1406
+ label?: string;
1407
+ description: string;
1408
+ input: z.ZodObject<{}, z.core.$strip>;
1409
+ output?: z.ZodRecord<z.ZodString, z.ZodUnknown> | undefined;
1410
+ sample?: Record<string, unknown> | undefined;
1411
+ } & {
1412
+ type: "app";
1413
+ event: string;
1414
+ run(args: import("frogbot").PieceRunArgs<Record<string, never>, {
1415
+ botAppType: "MultiTenant" | "SingleTenant";
1416
+ botUsername: string;
1417
+ botTenantId?: string | undefined;
1418
+ botApiUrl?: string | undefined;
1419
+ }, {
1420
+ baseUrl: string;
1421
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1422
+ method?: string;
1423
+ body?: unknown;
1424
+ headers?: Record<string, string>;
1425
+ query?: Record<string, string | number>;
1426
+ signal?: AbortSignal;
1427
+ }) => Promise<T>;
1428
+ text(path: string, options?: {
1429
+ method?: string;
1430
+ body?: unknown;
1431
+ headers?: Record<string, string>;
1432
+ query?: Record<string, string | number>;
1433
+ signal?: AbortSignal;
1434
+ }): Promise<string>;
1435
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
1436
+ method?: string;
1437
+ body?: unknown;
1438
+ headers?: Record<string, string>;
1439
+ query?: Record<string, string | number>;
1440
+ signal?: AbortSignal;
1441
+ }) => Promise<T[]>;
1442
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
1443
+ method?: string;
1444
+ body?: unknown;
1445
+ headers?: Record<string, string>;
1446
+ query?: Record<string, string | number>;
1447
+ signal?: AbortSignal;
1448
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
1449
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1450
+ custom<T>(path: string, schema: z.ZodType<T>, options?: {
1451
+ method?: string;
1452
+ body?: unknown;
1453
+ headers?: Record<string, string>;
1454
+ query?: Record<string, string | number>;
1455
+ signal?: AbortSignal;
1456
+ }): Promise<{
1457
+ status: number;
1458
+ body: T;
1459
+ }>;
1460
+ }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1461
+ } & {
1462
+ slug: "conversationUpdated";
1463
+ }) | ({
1464
+ slug: string;
1465
+ label?: string;
1466
+ description: string;
1467
+ input: z.ZodObject<{}, z.core.$strip>;
1468
+ output?: z.ZodRecord<z.ZodString, z.ZodUnknown> | undefined;
1469
+ sample?: Record<string, unknown> | undefined;
1470
+ } & {
1471
+ type: "app";
1472
+ event: string;
1473
+ run(args: import("frogbot").PieceRunArgs<Record<string, never>, {
1474
+ botAppType: "MultiTenant" | "SingleTenant";
1475
+ botUsername: string;
1476
+ botTenantId?: string | undefined;
1477
+ botApiUrl?: string | undefined;
1478
+ }, {
1479
+ baseUrl: string;
1480
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1481
+ method?: string;
1482
+ body?: unknown;
1483
+ headers?: Record<string, string>;
1484
+ query?: Record<string, string | number>;
1485
+ signal?: AbortSignal;
1486
+ }) => Promise<T>;
1487
+ text(path: string, options?: {
1488
+ method?: string;
1489
+ body?: unknown;
1490
+ headers?: Record<string, string>;
1491
+ query?: Record<string, string | number>;
1492
+ signal?: AbortSignal;
1493
+ }): Promise<string>;
1494
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
1495
+ method?: string;
1496
+ body?: unknown;
1497
+ headers?: Record<string, string>;
1498
+ query?: Record<string, string | number>;
1499
+ signal?: AbortSignal;
1500
+ }) => Promise<T[]>;
1501
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
1502
+ method?: string;
1503
+ body?: unknown;
1504
+ headers?: Record<string, string>;
1505
+ query?: Record<string, string | number>;
1506
+ signal?: AbortSignal;
1507
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
1508
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1509
+ custom<T>(path: string, schema: z.ZodType<T>, options?: {
1510
+ method?: string;
1511
+ body?: unknown;
1512
+ headers?: Record<string, string>;
1513
+ query?: Record<string, string | number>;
1514
+ signal?: AbortSignal;
1515
+ }): Promise<{
1516
+ status: number;
1517
+ body: T;
1518
+ }>;
1519
+ }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1520
+ } & {
1521
+ slug: "installationUpdated";
1522
+ }) | ({
1523
+ slug: string;
1524
+ label?: string;
1525
+ description: string;
1526
+ input: z.ZodObject<{}, z.core.$strip>;
1527
+ output?: z.ZodRecord<z.ZodString, z.ZodUnknown> | undefined;
1528
+ sample?: Record<string, unknown> | undefined;
1529
+ } & {
1530
+ type: "app";
1531
+ event: string;
1532
+ run(args: import("frogbot").PieceRunArgs<Record<string, never>, {
1533
+ botAppType: "MultiTenant" | "SingleTenant";
1534
+ botUsername: string;
1535
+ botTenantId?: string | undefined;
1536
+ botApiUrl?: string | undefined;
1537
+ }, {
1538
+ baseUrl: string;
1539
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1540
+ method?: string;
1541
+ body?: unknown;
1542
+ headers?: Record<string, string>;
1543
+ query?: Record<string, string | number>;
1544
+ signal?: AbortSignal;
1545
+ }) => Promise<T>;
1546
+ text(path: string, options?: {
1547
+ method?: string;
1548
+ body?: unknown;
1549
+ headers?: Record<string, string>;
1550
+ query?: Record<string, string | number>;
1551
+ signal?: AbortSignal;
1552
+ }): Promise<string>;
1553
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
1554
+ method?: string;
1555
+ body?: unknown;
1556
+ headers?: Record<string, string>;
1557
+ query?: Record<string, string | number>;
1558
+ signal?: AbortSignal;
1559
+ }) => Promise<T[]>;
1560
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
1561
+ method?: string;
1562
+ body?: unknown;
1563
+ headers?: Record<string, string>;
1564
+ query?: Record<string, string | number>;
1565
+ signal?: AbortSignal;
1566
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
1567
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1568
+ custom<T>(path: string, schema: z.ZodType<T>, options?: {
1569
+ method?: string;
1570
+ body?: unknown;
1571
+ headers?: Record<string, string>;
1572
+ query?: Record<string, string | number>;
1573
+ signal?: AbortSignal;
1574
+ }): Promise<{
1575
+ status: number;
1576
+ body: T;
1577
+ }>;
1578
+ }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1579
+ } & {
1580
+ slug: "dialogOpened";
1581
+ }) | ({
1582
+ slug: string;
1583
+ label?: string;
1584
+ description: string;
1585
+ input: z.ZodObject<{}, z.core.$strip>;
1586
+ output?: z.ZodRecord<z.ZodString, z.ZodUnknown> | undefined;
1587
+ sample?: Record<string, unknown> | undefined;
1588
+ } & {
1589
+ type: "app";
1590
+ event: string;
1591
+ run(args: import("frogbot").PieceRunArgs<Record<string, never>, {
1592
+ botAppType: "MultiTenant" | "SingleTenant";
1593
+ botUsername: string;
1594
+ botTenantId?: string | undefined;
1595
+ botApiUrl?: string | undefined;
1596
+ }, {
1597
+ baseUrl: string;
1598
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1599
+ method?: string;
1600
+ body?: unknown;
1601
+ headers?: Record<string, string>;
1602
+ query?: Record<string, string | number>;
1603
+ signal?: AbortSignal;
1604
+ }) => Promise<T>;
1605
+ text(path: string, options?: {
1606
+ method?: string;
1607
+ body?: unknown;
1608
+ headers?: Record<string, string>;
1609
+ query?: Record<string, string | number>;
1610
+ signal?: AbortSignal;
1611
+ }): Promise<string>;
1612
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
1613
+ method?: string;
1614
+ body?: unknown;
1615
+ headers?: Record<string, string>;
1616
+ query?: Record<string, string | number>;
1617
+ signal?: AbortSignal;
1618
+ }) => Promise<T[]>;
1619
+ page: <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<import("./schemas.js").GraphPage<T>>;
1626
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1627
+ custom<T>(path: string, schema: z.ZodType<T>, options?: {
1628
+ method?: string;
1629
+ body?: unknown;
1630
+ headers?: Record<string, string>;
1631
+ query?: Record<string, string | number>;
1632
+ signal?: AbortSignal;
1633
+ }): Promise<{
1634
+ status: number;
1635
+ body: T;
1636
+ }>;
1637
+ }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1638
+ } & {
1639
+ slug: "dialogSubmitted";
1640
+ }))[];
390
1641
  //# sourceMappingURL=triggers.d.ts.map