@frogbotai/piece-microsoft-teams 0.31.0 → 0.32.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
@@ -32,7 +32,50 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
32
32
  readonly oauth: {
33
33
  authorizationUrl: string;
34
34
  tokenUrl: string;
35
- scopes: string[];
35
+ scopes: {
36
+ catalog: {
37
+ readonly openid: "openid";
38
+ readonly email: "email";
39
+ readonly profile: "profile";
40
+ readonly offline_access: "offline_access";
41
+ readonly 'User.Read': "User.Read";
42
+ readonly 'Channel.Create': "Channel.Create";
43
+ readonly 'Channel.ReadBasic.All': "Channel.ReadBasic.All";
44
+ readonly 'ChannelMessage.Send': "ChannelMessage.Send";
45
+ readonly 'Team.ReadBasic.All': "Team.ReadBasic.All";
46
+ readonly 'Chat.ReadWrite': "Chat.ReadWrite";
47
+ readonly 'ChannelMessage.Read.All': "ChannelMessage.Read.All";
48
+ readonly 'TeamMember.Read.All': "TeamMember.Read.All";
49
+ readonly 'User.ReadBasic.All': "User.ReadBasic.All";
50
+ readonly 'Presence.Read.All': "Presence.Read.All";
51
+ readonly 'OnlineMeetingTranscript.Read.All': "OnlineMeetingTranscript.Read.All";
52
+ readonly 'OnlineMeetingRecording.Read.All': "OnlineMeetingRecording.Read.All";
53
+ readonly 'User.Read.All': "User.Read.All";
54
+ readonly 'Team.Create': "Team.Create";
55
+ readonly 'TeamSettings.Read.All': "TeamSettings.Read.All";
56
+ readonly 'TeamSettings.ReadWrite.All': "TeamSettings.ReadWrite.All";
57
+ readonly 'Channel.Delete.All': "Channel.Delete.All";
58
+ readonly 'ChannelSettings.Read.All': "ChannelSettings.Read.All";
59
+ readonly 'ChannelSettings.ReadWrite.All': "ChannelSettings.ReadWrite.All";
60
+ readonly 'ChannelMember.Read.All': "ChannelMember.Read.All";
61
+ readonly 'ChannelMember.ReadWrite.All': "ChannelMember.ReadWrite.All";
62
+ readonly 'ChannelMessage.ReadWrite': "ChannelMessage.ReadWrite";
63
+ readonly 'ChannelMessage.Edit': "ChannelMessage.Edit";
64
+ readonly 'Chat.Create': "Chat.Create";
65
+ readonly 'Chat.Read': "Chat.Read";
66
+ readonly 'Chat.ReadBasic': "Chat.ReadBasic";
67
+ readonly 'ChatMessage.Send': "ChatMessage.Send";
68
+ readonly 'ChatMessage.Read': "ChatMessage.Read";
69
+ readonly 'ChatMember.Read': "ChatMember.Read";
70
+ readonly 'ChatMember.ReadWrite': "ChatMember.ReadWrite";
71
+ readonly 'TeamMember.ReadWrite.All': "TeamMember.ReadWrite.All";
72
+ readonly 'Presence.Read': "Presence.Read";
73
+ readonly 'OnlineMeetings.Read': "OnlineMeetings.Read";
74
+ readonly 'OnlineMeetings.ReadWrite': "OnlineMeetings.ReadWrite";
75
+ };
76
+ defaults: string[];
77
+ required: string[];
78
+ };
36
79
  params: {
37
80
  prompt: string;
38
81
  };
@@ -76,16 +119,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
76
119
  signal?: AbortSignal;
77
120
  }) => Promise<import("./schemas.js").GraphPage<T>>;
78
121
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
79
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
80
- method?: string;
81
- body?: unknown;
82
- headers?: Record<string, string>;
83
- query?: Record<string, string | number>;
84
- signal?: AbortSignal;
85
- }): Promise<{
86
- status: number;
87
- body: T;
88
- }>;
122
+ authorize(target: URL, headers: Headers): void;
89
123
  };
90
124
  req: import("frogbot").FrogBotRequest;
91
125
  }): Promise<{
@@ -150,16 +184,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
150
184
  signal?: AbortSignal;
151
185
  }) => Promise<import("./schemas.js").GraphPage<T>>;
152
186
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
153
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
154
- method?: string;
155
- body?: unknown;
156
- headers?: Record<string, string>;
157
- query?: Record<string, string | number>;
158
- signal?: AbortSignal;
159
- }): Promise<{
160
- status: number;
161
- body: T;
162
- }>;
187
+ authorize(target: URL, headers: Headers): void;
163
188
  };
164
189
  req: import("frogbot").FrogBotRequest;
165
190
  }): Promise<(Record<string, unknown> & import("frogbot").TypeWithID) | null>;
@@ -194,19 +219,47 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
194
219
  signal?: AbortSignal;
195
220
  }) => Promise<import("./schemas.js").GraphPage<T>>;
196
221
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
197
- custom<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<{
204
- status: number;
205
- body: T;
206
- }>;
222
+ authorize(target: URL, headers: Headers): void;
207
223
  }>;
208
224
  };
209
- readonly actions: ((import("frogbot").PieceActionDefinition<z.ZodObject<{
225
+ readonly actions: (import("frogbot/pieces").CustomApiCallAction<{
226
+ botAppType: "MultiTenant" | "SingleTenant";
227
+ botUsername: string;
228
+ botTenantId?: string | undefined;
229
+ botApiUrl?: string | undefined;
230
+ }, {
231
+ baseUrl: string;
232
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
233
+ method?: string;
234
+ body?: unknown;
235
+ headers?: Record<string, string>;
236
+ query?: Record<string, string | number>;
237
+ signal?: AbortSignal;
238
+ }) => Promise<T>;
239
+ text(path: string, options?: {
240
+ method?: string;
241
+ body?: unknown;
242
+ headers?: Record<string, string>;
243
+ query?: Record<string, string | number>;
244
+ signal?: AbortSignal;
245
+ }): Promise<string>;
246
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
247
+ method?: string;
248
+ body?: unknown;
249
+ headers?: Record<string, string>;
250
+ query?: Record<string, string | number>;
251
+ signal?: AbortSignal;
252
+ }) => Promise<T[]>;
253
+ page: <T>(path: string, schema: 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<import("./schemas.js").GraphPage<T>>;
260
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
261
+ authorize(target: URL, headers: Headers): void;
262
+ }> | (import("frogbot").PieceActionDefinition<z.ZodObject<{
210
263
  channelDisplayName: z.ZodString;
211
264
  channelDescription: z.ZodOptional<z.ZodString>;
212
265
  teamId: z.ZodString;
@@ -253,16 +306,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
253
306
  signal?: AbortSignal;
254
307
  }) => Promise<import("./schemas.js").GraphPage<T>>;
255
308
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
256
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
257
- method?: string;
258
- body?: unknown;
259
- headers?: Record<string, string>;
260
- query?: Record<string, string | number>;
261
- signal?: AbortSignal;
262
- }): Promise<{
263
- status: number;
264
- body: T;
265
- }>;
309
+ authorize(target: URL, headers: Headers): void;
266
310
  }, {
267
311
  [x: string]: unknown;
268
312
  id: string;
@@ -320,16 +364,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
320
364
  signal?: AbortSignal;
321
365
  }) => Promise<import("./schemas.js").GraphPage<T>>;
322
366
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
323
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
324
- method?: string;
325
- body?: unknown;
326
- headers?: Record<string, string>;
327
- query?: Record<string, string | number>;
328
- signal?: AbortSignal;
329
- }): Promise<{
330
- status: number;
331
- body: T;
332
- }>;
367
+ authorize(target: URL, headers: Headers): void;
333
368
  }, {
334
369
  [x: string]: unknown;
335
370
  id: string;
@@ -393,16 +428,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
393
428
  signal?: AbortSignal;
394
429
  }) => Promise<import("./schemas.js").GraphPage<T>>;
395
430
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
396
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
397
- method?: string;
398
- body?: unknown;
399
- headers?: Record<string, string>;
400
- query?: Record<string, string | number>;
401
- signal?: AbortSignal;
402
- }): Promise<{
403
- status: number;
404
- body: T;
405
- }>;
431
+ authorize(target: URL, headers: Headers): void;
406
432
  }, {
407
433
  [x: string]: unknown;
408
434
  id: string;
@@ -468,16 +494,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
468
494
  signal?: AbortSignal;
469
495
  }) => Promise<import("./schemas.js").GraphPage<T>>;
470
496
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
471
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
472
- method?: string;
473
- body?: unknown;
474
- headers?: Record<string, string>;
475
- query?: Record<string, string | number>;
476
- signal?: AbortSignal;
477
- }): Promise<{
478
- status: number;
479
- body: T;
480
- }>;
497
+ authorize(target: URL, headers: Headers): void;
481
498
  }, {
482
499
  [x: string]: unknown;
483
500
  id: string;
@@ -545,16 +562,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
545
562
  signal?: AbortSignal;
546
563
  }) => Promise<import("./schemas.js").GraphPage<T>>;
547
564
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
548
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
549
- method?: string;
550
- body?: unknown;
551
- headers?: Record<string, string>;
552
- query?: Record<string, string | number>;
553
- signal?: AbortSignal;
554
- }): Promise<{
555
- status: number;
556
- body: T;
557
- }>;
565
+ authorize(target: URL, headers: Headers): void;
558
566
  }, {
559
567
  [x: string]: unknown;
560
568
  id: string;
@@ -641,16 +649,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
641
649
  signal?: AbortSignal;
642
650
  }) => Promise<import("./schemas.js").GraphPage<T>>;
643
651
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
644
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
645
- method?: string;
646
- body?: unknown;
647
- headers?: Record<string, string>;
648
- query?: Record<string, string | number>;
649
- signal?: AbortSignal;
650
- }): Promise<{
651
- status: number;
652
- body: T;
653
- }>;
652
+ authorize(target: URL, headers: Headers): void;
654
653
  }, {
655
654
  chat: {
656
655
  [x: string]: unknown;
@@ -729,16 +728,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
729
728
  signal?: AbortSignal;
730
729
  }) => Promise<import("./schemas.js").GraphPage<T>>;
731
730
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
732
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
733
- method?: string;
734
- body?: unknown;
735
- headers?: Record<string, string>;
736
- query?: Record<string, string | number>;
737
- signal?: AbortSignal;
738
- }): Promise<{
739
- status: number;
740
- body: T;
741
- }>;
731
+ authorize(target: URL, headers: Headers): void;
742
732
  }, {
743
733
  [x: string]: unknown;
744
734
  id: string;
@@ -795,16 +785,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
795
785
  signal?: AbortSignal;
796
786
  }) => Promise<import("./schemas.js").GraphPage<T>>;
797
787
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
798
- custom<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<{
805
- status: number;
806
- body: T;
807
- }>;
788
+ authorize(target: URL, headers: Headers): void;
808
789
  }, {
809
790
  success: true;
810
791
  messageId: string;
@@ -861,16 +842,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
861
842
  signal?: AbortSignal;
862
843
  }) => Promise<import("./schemas.js").GraphPage<T>>;
863
844
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
864
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
865
- method?: string;
866
- body?: unknown;
867
- headers?: Record<string, string>;
868
- query?: Record<string, string | number>;
869
- signal?: AbortSignal;
870
- }): Promise<{
871
- status: number;
872
- body: T;
873
- }>;
845
+ authorize(target: URL, headers: Headers): void;
874
846
  }, {
875
847
  [x: string]: unknown;
876
848
  id: string;
@@ -933,16 +905,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
933
905
  signal?: AbortSignal;
934
906
  }) => Promise<import("./schemas.js").GraphPage<T>>;
935
907
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
936
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
937
- method?: string;
938
- body?: unknown;
939
- headers?: Record<string, string>;
940
- query?: Record<string, string | number>;
941
- signal?: AbortSignal;
942
- }): Promise<{
943
- status: number;
944
- body: T;
945
- }>;
908
+ authorize(target: URL, headers: Headers): void;
946
909
  }, {
947
910
  found: boolean;
948
911
  result: {
@@ -958,8 +921,8 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
958
921
  slug: "findChannel";
959
922
  }) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
960
923
  searchBy: z.ZodDefault<z.ZodEnum<{
961
- name: "name";
962
924
  email: "email";
925
+ name: "name";
963
926
  }>>;
964
927
  searchValue: z.ZodString;
965
928
  teamId: z.ZodString;
@@ -1007,16 +970,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
1007
970
  signal?: AbortSignal;
1008
971
  }) => Promise<import("./schemas.js").GraphPage<T>>;
1009
972
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1010
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
1011
- method?: string;
1012
- body?: unknown;
1013
- headers?: Record<string, string>;
1014
- query?: Record<string, string | number>;
1015
- signal?: AbortSignal;
1016
- }): Promise<{
1017
- status: number;
1018
- body: T;
1019
- }>;
973
+ authorize(target: URL, headers: Headers): void;
1020
974
  }, {
1021
975
  found: boolean;
1022
976
  result: {
@@ -1082,16 +1036,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
1082
1036
  signal?: AbortSignal;
1083
1037
  }) => Promise<import("./schemas.js").GraphPage<T>>;
1084
1038
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1085
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
1086
- method?: string;
1087
- body?: unknown;
1088
- headers?: Record<string, string>;
1089
- query?: Record<string, string | number>;
1090
- signal?: AbortSignal;
1091
- }): Promise<{
1092
- status: number;
1093
- body: T;
1094
- }>;
1039
+ authorize(target: URL, headers: Headers): void;
1095
1040
  }, import("./schemas.js").GraphPage<{
1096
1041
  [x: string]: unknown;
1097
1042
  id: string;
@@ -1155,16 +1100,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
1155
1100
  signal?: AbortSignal;
1156
1101
  }) => Promise<import("./schemas.js").GraphPage<T>>;
1157
1102
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1158
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
1159
- method?: string;
1160
- body?: unknown;
1161
- headers?: Record<string, string>;
1162
- query?: Record<string, string | number>;
1163
- signal?: AbortSignal;
1164
- }): Promise<{
1165
- status: number;
1166
- body: T;
1167
- }>;
1103
+ authorize(target: URL, headers: Headers): void;
1168
1104
  }, {
1169
1105
  [x: string]: unknown;
1170
1106
  id: string;
@@ -1175,71 +1111,6 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
1175
1111
  createdDateTime?: string | null | undefined;
1176
1112
  }>> & {
1177
1113
  slug: "getMeetingRecording";
1178
- }) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
1179
- method: z.ZodEnum<{
1180
- GET: "GET";
1181
- POST: "POST";
1182
- PATCH: "PATCH";
1183
- PUT: "PUT";
1184
- DELETE: "DELETE";
1185
- }>;
1186
- path: z.ZodString;
1187
- query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
1188
- body: z.ZodOptional<z.ZodJSONSchema>;
1189
- }, z.core.$strip>, z.ZodObject<{
1190
- status: z.ZodNumber;
1191
- body: z.ZodJSONSchema;
1192
- }, z.core.$strip>, {
1193
- botAppType: "MultiTenant" | "SingleTenant";
1194
- botUsername: string;
1195
- botTenantId?: string | undefined;
1196
- botApiUrl?: string | undefined;
1197
- }, {
1198
- baseUrl: string;
1199
- request: <T>(path: string, schema: z.ZodType<T>, options?: {
1200
- method?: string;
1201
- body?: unknown;
1202
- headers?: Record<string, string>;
1203
- query?: Record<string, string | number>;
1204
- signal?: AbortSignal;
1205
- }) => Promise<T>;
1206
- text(path: string, options?: {
1207
- method?: string;
1208
- body?: unknown;
1209
- headers?: Record<string, string>;
1210
- query?: Record<string, string | number>;
1211
- signal?: AbortSignal;
1212
- }): Promise<string>;
1213
- list: <T>(path: string, schema: z.ZodType<T>, options?: {
1214
- method?: string;
1215
- body?: unknown;
1216
- headers?: Record<string, string>;
1217
- query?: Record<string, string | number>;
1218
- signal?: AbortSignal;
1219
- }) => Promise<T[]>;
1220
- page: <T>(path: string, schema: z.ZodType<T>, options?: {
1221
- method?: string;
1222
- body?: unknown;
1223
- headers?: Record<string, string>;
1224
- query?: Record<string, string | number>;
1225
- signal?: AbortSignal;
1226
- }) => Promise<import("./schemas.js").GraphPage<T>>;
1227
- meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1228
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
1229
- method?: string;
1230
- body?: unknown;
1231
- headers?: Record<string, string>;
1232
- query?: Record<string, string | number>;
1233
- signal?: AbortSignal;
1234
- }): Promise<{
1235
- status: number;
1236
- body: T;
1237
- }>;
1238
- }, {
1239
- status: number;
1240
- body: z.core.util.JSONType;
1241
- }> & {
1242
- slug: "customApiCall";
1243
1114
  }))[];
1244
1115
  readonly triggers: (({
1245
1116
  slug: string;
@@ -1247,29 +1118,36 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
1247
1118
  description: string;
1248
1119
  input: z.ZodObject<{
1249
1120
  teamId: z.ZodString;
1121
+ channelId: z.ZodString;
1250
1122
  }, z.core.$strip>;
1251
1123
  output?: z.ZodObject<{
1252
1124
  id: z.ZodString;
1253
- displayName: z.ZodString;
1254
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1255
1125
  createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1256
- membershipType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1257
- isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1126
+ lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1127
+ chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1128
+ body: z.ZodObject<{
1129
+ content: z.ZodString;
1130
+ contentType: z.ZodString;
1131
+ }, z.core.$loose>;
1258
1132
  }, z.core.$loose> | undefined;
1259
1133
  sample?: {
1260
1134
  [x: string]: unknown;
1261
1135
  id: string;
1262
- displayName: string;
1263
- description?: string | null | undefined;
1136
+ body: {
1137
+ [x: string]: unknown;
1138
+ content: string;
1139
+ contentType: string;
1140
+ };
1264
1141
  createdDateTime?: string | null | undefined;
1265
- membershipType?: string | null | undefined;
1266
- isArchived?: boolean | null | undefined;
1142
+ lastModifiedDateTime?: string | null | undefined;
1143
+ chatId?: string | null | undefined;
1267
1144
  } | undefined;
1268
1145
  } & {
1269
1146
  type: "polling";
1270
1147
  schedule?: string;
1271
1148
  run(args: import("frogbot").PieceRunArgs<{
1272
1149
  teamId: string;
1150
+ channelId: string;
1273
1151
  }, {
1274
1152
  botAppType: "MultiTenant" | "SingleTenant";
1275
1153
  botUsername: string;
@@ -1306,68 +1184,55 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
1306
1184
  signal?: AbortSignal;
1307
1185
  }) => Promise<import("./schemas.js").GraphPage<T>>;
1308
1186
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1309
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
1310
- method?: string;
1311
- body?: unknown;
1312
- headers?: Record<string, string>;
1313
- query?: Record<string, string | number>;
1314
- signal?: AbortSignal;
1315
- }): Promise<{
1316
- status: number;
1317
- body: T;
1318
- }>;
1187
+ authorize(target: URL, headers: Headers): void;
1319
1188
  }> & {
1320
1189
  cursor?: import("frogbot").PieceJSON | undefined;
1321
1190
  }): Promise<{
1322
1191
  events: {
1323
1192
  [x: string]: unknown;
1324
1193
  id: string;
1325
- displayName: string;
1326
- description?: string | null | undefined;
1194
+ body: {
1195
+ [x: string]: unknown;
1196
+ content: string;
1197
+ contentType: string;
1198
+ };
1327
1199
  createdDateTime?: string | null | undefined;
1328
- membershipType?: string | null | undefined;
1329
- isArchived?: boolean | null | undefined;
1200
+ lastModifiedDateTime?: string | null | undefined;
1201
+ chatId?: string | null | undefined;
1330
1202
  }[];
1331
1203
  cursor?: import("frogbot").PieceJSON | undefined;
1332
1204
  }>;
1333
1205
  } & {
1334
- slug: "channelCreated";
1206
+ slug: "channelMessageCreated";
1335
1207
  }) | ({
1336
1208
  slug: string;
1337
1209
  label?: string;
1338
1210
  description: string;
1339
1211
  input: z.ZodObject<{
1340
1212
  teamId: z.ZodString;
1341
- channelId: z.ZodString;
1342
1213
  }, z.core.$strip>;
1343
1214
  output?: z.ZodObject<{
1344
1215
  id: z.ZodString;
1216
+ displayName: z.ZodString;
1217
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1345
1218
  createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1346
- lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1347
- chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1348
- body: z.ZodObject<{
1349
- content: z.ZodString;
1350
- contentType: z.ZodString;
1351
- }, z.core.$loose>;
1219
+ membershipType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1220
+ isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1352
1221
  }, z.core.$loose> | undefined;
1353
1222
  sample?: {
1354
1223
  [x: string]: unknown;
1355
1224
  id: string;
1356
- body: {
1357
- [x: string]: unknown;
1358
- content: string;
1359
- contentType: string;
1360
- };
1225
+ displayName: string;
1226
+ description?: string | null | undefined;
1361
1227
  createdDateTime?: string | null | undefined;
1362
- lastModifiedDateTime?: string | null | undefined;
1363
- chatId?: string | null | undefined;
1228
+ membershipType?: string | null | undefined;
1229
+ isArchived?: boolean | null | undefined;
1364
1230
  } | undefined;
1365
1231
  } & {
1366
1232
  type: "polling";
1367
1233
  schedule?: string;
1368
1234
  run(args: import("frogbot").PieceRunArgs<{
1369
1235
  teamId: string;
1370
- channelId: string;
1371
1236
  }, {
1372
1237
  botAppType: "MultiTenant" | "SingleTenant";
1373
1238
  botUsername: string;
@@ -1404,35 +1269,23 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
1404
1269
  signal?: AbortSignal;
1405
1270
  }) => Promise<import("./schemas.js").GraphPage<T>>;
1406
1271
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1407
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
1408
- method?: string;
1409
- body?: unknown;
1410
- headers?: Record<string, string>;
1411
- query?: Record<string, string | number>;
1412
- signal?: AbortSignal;
1413
- }): Promise<{
1414
- status: number;
1415
- body: T;
1416
- }>;
1272
+ authorize(target: URL, headers: Headers): void;
1417
1273
  }> & {
1418
1274
  cursor?: import("frogbot").PieceJSON | undefined;
1419
1275
  }): Promise<{
1420
1276
  events: {
1421
1277
  [x: string]: unknown;
1422
1278
  id: string;
1423
- body: {
1424
- [x: string]: unknown;
1425
- content: string;
1426
- contentType: string;
1427
- };
1279
+ displayName: string;
1280
+ description?: string | null | undefined;
1428
1281
  createdDateTime?: string | null | undefined;
1429
- lastModifiedDateTime?: string | null | undefined;
1430
- chatId?: string | null | undefined;
1282
+ membershipType?: string | null | undefined;
1283
+ isArchived?: boolean | null | undefined;
1431
1284
  }[];
1432
1285
  cursor?: import("frogbot").PieceJSON | undefined;
1433
1286
  }>;
1434
1287
  } & {
1435
- slug: "channelMessageCreated";
1288
+ slug: "channelCreated";
1436
1289
  }) | ({
1437
1290
  slug: string;
1438
1291
  label?: string;
@@ -1510,16 +1363,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
1510
1363
  signal?: AbortSignal;
1511
1364
  }) => Promise<import("./schemas.js").GraphPage<T>>;
1512
1365
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1513
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
1514
- method?: string;
1515
- body?: unknown;
1516
- headers?: Record<string, string>;
1517
- query?: Record<string, string | number>;
1518
- signal?: AbortSignal;
1519
- }): Promise<{
1520
- status: number;
1521
- body: T;
1522
- }>;
1366
+ authorize(target: URL, headers: Headers): void;
1523
1367
  }> & {
1524
1368
  cursor?: import("frogbot").PieceJSON | undefined;
1525
1369
  }): Promise<{
@@ -1612,16 +1456,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
1612
1456
  signal?: AbortSignal;
1613
1457
  }) => Promise<import("./schemas.js").GraphPage<T>>;
1614
1458
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1615
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
1616
- method?: string;
1617
- body?: unknown;
1618
- headers?: Record<string, string>;
1619
- query?: Record<string, string | number>;
1620
- signal?: AbortSignal;
1621
- }): Promise<{
1622
- status: number;
1623
- body: T;
1624
- }>;
1459
+ authorize(target: URL, headers: Headers): void;
1625
1460
  }> & {
1626
1461
  cursor?: import("frogbot").PieceJSON | undefined;
1627
1462
  }): Promise<{
@@ -1687,16 +1522,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
1687
1522
  signal?: AbortSignal;
1688
1523
  }) => Promise<import("./schemas.js").GraphPage<T>>;
1689
1524
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1690
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
1691
- method?: string;
1692
- body?: unknown;
1693
- headers?: Record<string, string>;
1694
- query?: Record<string, string | number>;
1695
- signal?: AbortSignal;
1696
- }): Promise<{
1697
- status: number;
1698
- body: T;
1699
- }>;
1525
+ authorize(target: URL, headers: Headers): void;
1700
1526
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1701
1527
  } & {
1702
1528
  slug: "messageReceived";
@@ -1746,16 +1572,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
1746
1572
  signal?: AbortSignal;
1747
1573
  }) => Promise<import("./schemas.js").GraphPage<T>>;
1748
1574
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1749
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
1750
- method?: string;
1751
- body?: unknown;
1752
- headers?: Record<string, string>;
1753
- query?: Record<string, string | number>;
1754
- signal?: AbortSignal;
1755
- }): Promise<{
1756
- status: number;
1757
- body: T;
1758
- }>;
1575
+ authorize(target: URL, headers: Headers): void;
1759
1576
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1760
1577
  } & {
1761
1578
  slug: "messageReactionReceived";
@@ -1805,16 +1622,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
1805
1622
  signal?: AbortSignal;
1806
1623
  }) => Promise<import("./schemas.js").GraphPage<T>>;
1807
1624
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1808
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
1809
- method?: string;
1810
- body?: unknown;
1811
- headers?: Record<string, string>;
1812
- query?: Record<string, string | number>;
1813
- signal?: AbortSignal;
1814
- }): Promise<{
1815
- status: number;
1816
- body: T;
1817
- }>;
1625
+ authorize(target: URL, headers: Headers): void;
1818
1626
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1819
1627
  } & {
1820
1628
  slug: "cardActionReceived";
@@ -1864,16 +1672,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
1864
1672
  signal?: AbortSignal;
1865
1673
  }) => Promise<import("./schemas.js").GraphPage<T>>;
1866
1674
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1867
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
1868
- method?: string;
1869
- body?: unknown;
1870
- headers?: Record<string, string>;
1871
- query?: Record<string, string | number>;
1872
- signal?: AbortSignal;
1873
- }): Promise<{
1874
- status: number;
1875
- body: T;
1876
- }>;
1675
+ authorize(target: URL, headers: Headers): void;
1877
1676
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1878
1677
  } & {
1879
1678
  slug: "conversationUpdated";
@@ -1923,16 +1722,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
1923
1722
  signal?: AbortSignal;
1924
1723
  }) => Promise<import("./schemas.js").GraphPage<T>>;
1925
1724
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1926
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
1927
- method?: string;
1928
- body?: unknown;
1929
- headers?: Record<string, string>;
1930
- query?: Record<string, string | number>;
1931
- signal?: AbortSignal;
1932
- }): Promise<{
1933
- status: number;
1934
- body: T;
1935
- }>;
1725
+ authorize(target: URL, headers: Headers): void;
1936
1726
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1937
1727
  } & {
1938
1728
  slug: "installationUpdated";
@@ -1982,16 +1772,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
1982
1772
  signal?: AbortSignal;
1983
1773
  }) => Promise<import("./schemas.js").GraphPage<T>>;
1984
1774
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1985
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
1986
- method?: string;
1987
- body?: unknown;
1988
- headers?: Record<string, string>;
1989
- query?: Record<string, string | number>;
1990
- signal?: AbortSignal;
1991
- }): Promise<{
1992
- status: number;
1993
- body: T;
1994
- }>;
1775
+ authorize(target: URL, headers: Headers): void;
1995
1776
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1996
1777
  } & {
1997
1778
  slug: "dialogOpened";
@@ -2041,16 +1822,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
2041
1822
  signal?: AbortSignal;
2042
1823
  }) => Promise<import("./schemas.js").GraphPage<T>>;
2043
1824
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
2044
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
2045
- method?: string;
2046
- body?: unknown;
2047
- headers?: Record<string, string>;
2048
- query?: Record<string, string | number>;
2049
- signal?: AbortSignal;
2050
- }): Promise<{
2051
- status: number;
2052
- body: T;
2053
- }>;
1825
+ authorize(target: URL, headers: Headers): void;
2054
1826
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
2055
1827
  } & {
2056
1828
  slug: "dialogSubmitted";
@@ -2083,7 +1855,50 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2083
1855
  readonly oauth: {
2084
1856
  authorizationUrl: string;
2085
1857
  tokenUrl: string;
2086
- scopes: string[];
1858
+ scopes: {
1859
+ catalog: {
1860
+ readonly openid: "openid";
1861
+ readonly email: "email";
1862
+ readonly profile: "profile";
1863
+ readonly offline_access: "offline_access";
1864
+ readonly 'User.Read': "User.Read";
1865
+ readonly 'Channel.Create': "Channel.Create";
1866
+ readonly 'Channel.ReadBasic.All': "Channel.ReadBasic.All";
1867
+ readonly 'ChannelMessage.Send': "ChannelMessage.Send";
1868
+ readonly 'Team.ReadBasic.All': "Team.ReadBasic.All";
1869
+ readonly 'Chat.ReadWrite': "Chat.ReadWrite";
1870
+ readonly 'ChannelMessage.Read.All': "ChannelMessage.Read.All";
1871
+ readonly 'TeamMember.Read.All': "TeamMember.Read.All";
1872
+ readonly 'User.ReadBasic.All': "User.ReadBasic.All";
1873
+ readonly 'Presence.Read.All': "Presence.Read.All";
1874
+ readonly 'OnlineMeetingTranscript.Read.All': "OnlineMeetingTranscript.Read.All";
1875
+ readonly 'OnlineMeetingRecording.Read.All': "OnlineMeetingRecording.Read.All";
1876
+ readonly 'User.Read.All': "User.Read.All";
1877
+ readonly 'Team.Create': "Team.Create";
1878
+ readonly 'TeamSettings.Read.All': "TeamSettings.Read.All";
1879
+ readonly 'TeamSettings.ReadWrite.All': "TeamSettings.ReadWrite.All";
1880
+ readonly 'Channel.Delete.All': "Channel.Delete.All";
1881
+ readonly 'ChannelSettings.Read.All': "ChannelSettings.Read.All";
1882
+ readonly 'ChannelSettings.ReadWrite.All': "ChannelSettings.ReadWrite.All";
1883
+ readonly 'ChannelMember.Read.All': "ChannelMember.Read.All";
1884
+ readonly 'ChannelMember.ReadWrite.All': "ChannelMember.ReadWrite.All";
1885
+ readonly 'ChannelMessage.ReadWrite': "ChannelMessage.ReadWrite";
1886
+ readonly 'ChannelMessage.Edit': "ChannelMessage.Edit";
1887
+ readonly 'Chat.Create': "Chat.Create";
1888
+ readonly 'Chat.Read': "Chat.Read";
1889
+ readonly 'Chat.ReadBasic': "Chat.ReadBasic";
1890
+ readonly 'ChatMessage.Send': "ChatMessage.Send";
1891
+ readonly 'ChatMessage.Read': "ChatMessage.Read";
1892
+ readonly 'ChatMember.Read': "ChatMember.Read";
1893
+ readonly 'ChatMember.ReadWrite': "ChatMember.ReadWrite";
1894
+ readonly 'TeamMember.ReadWrite.All': "TeamMember.ReadWrite.All";
1895
+ readonly 'Presence.Read': "Presence.Read";
1896
+ readonly 'OnlineMeetings.Read': "OnlineMeetings.Read";
1897
+ readonly 'OnlineMeetings.ReadWrite': "OnlineMeetings.ReadWrite";
1898
+ };
1899
+ defaults: string[];
1900
+ required: string[];
1901
+ };
2087
1902
  params: {
2088
1903
  prompt: string;
2089
1904
  };
@@ -2127,16 +1942,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2127
1942
  signal?: AbortSignal;
2128
1943
  }) => Promise<import("./schemas.js").GraphPage<T>>;
2129
1944
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
2130
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
2131
- method?: string;
2132
- body?: unknown;
2133
- headers?: Record<string, string>;
2134
- query?: Record<string, string | number>;
2135
- signal?: AbortSignal;
2136
- }): Promise<{
2137
- status: number;
2138
- body: T;
2139
- }>;
1945
+ authorize(target: URL, headers: Headers): void;
2140
1946
  };
2141
1947
  req: import("frogbot").FrogBotRequest;
2142
1948
  }): Promise<{
@@ -2201,16 +2007,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2201
2007
  signal?: AbortSignal;
2202
2008
  }) => Promise<import("./schemas.js").GraphPage<T>>;
2203
2009
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
2204
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
2205
- method?: string;
2206
- body?: unknown;
2207
- headers?: Record<string, string>;
2208
- query?: Record<string, string | number>;
2209
- signal?: AbortSignal;
2210
- }): Promise<{
2211
- status: number;
2212
- body: T;
2213
- }>;
2010
+ authorize(target: URL, headers: Headers): void;
2214
2011
  };
2215
2012
  req: import("frogbot").FrogBotRequest;
2216
2013
  }): Promise<(Record<string, unknown> & import("frogbot").TypeWithID) | null>;
@@ -2245,19 +2042,47 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2245
2042
  signal?: AbortSignal;
2246
2043
  }) => Promise<import("./schemas.js").GraphPage<T>>;
2247
2044
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
2248
- custom<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<{
2255
- status: number;
2256
- body: T;
2257
- }>;
2045
+ authorize(target: URL, headers: Headers): void;
2258
2046
  }>;
2259
2047
  };
2260
- readonly actions: ((import("frogbot").PieceActionDefinition<z.ZodObject<{
2048
+ readonly actions: (import("frogbot/pieces").CustomApiCallAction<{
2049
+ botAppType: "MultiTenant" | "SingleTenant";
2050
+ botUsername: string;
2051
+ botTenantId?: string | undefined;
2052
+ botApiUrl?: string | undefined;
2053
+ }, {
2054
+ baseUrl: string;
2055
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
2056
+ method?: string;
2057
+ body?: unknown;
2058
+ headers?: Record<string, string>;
2059
+ query?: Record<string, string | number>;
2060
+ signal?: AbortSignal;
2061
+ }) => Promise<T>;
2062
+ text(path: string, options?: {
2063
+ method?: string;
2064
+ body?: unknown;
2065
+ headers?: Record<string, string>;
2066
+ query?: Record<string, string | number>;
2067
+ signal?: AbortSignal;
2068
+ }): Promise<string>;
2069
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
2070
+ method?: string;
2071
+ body?: unknown;
2072
+ headers?: Record<string, string>;
2073
+ query?: Record<string, string | number>;
2074
+ signal?: AbortSignal;
2075
+ }) => Promise<T[]>;
2076
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
2077
+ method?: string;
2078
+ body?: unknown;
2079
+ headers?: Record<string, string>;
2080
+ query?: Record<string, string | number>;
2081
+ signal?: AbortSignal;
2082
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
2083
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
2084
+ authorize(target: URL, headers: Headers): void;
2085
+ }> | (import("frogbot").PieceActionDefinition<z.ZodObject<{
2261
2086
  channelDisplayName: z.ZodString;
2262
2087
  channelDescription: z.ZodOptional<z.ZodString>;
2263
2088
  teamId: z.ZodString;
@@ -2304,16 +2129,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2304
2129
  signal?: AbortSignal;
2305
2130
  }) => Promise<import("./schemas.js").GraphPage<T>>;
2306
2131
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
2307
- custom<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<{
2314
- status: number;
2315
- body: T;
2316
- }>;
2132
+ authorize(target: URL, headers: Headers): void;
2317
2133
  }, {
2318
2134
  [x: string]: unknown;
2319
2135
  id: string;
@@ -2369,18 +2185,9 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2369
2185
  headers?: Record<string, string>;
2370
2186
  query?: Record<string, string | number>;
2371
2187
  signal?: AbortSignal;
2372
- }) => Promise<import("./schemas.js").GraphPage<T>>;
2373
- meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
2374
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
2375
- method?: string;
2376
- body?: unknown;
2377
- headers?: Record<string, string>;
2378
- query?: Record<string, string | number>;
2379
- signal?: AbortSignal;
2380
- }): Promise<{
2381
- status: number;
2382
- body: T;
2383
- }>;
2188
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
2189
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
2190
+ authorize(target: URL, headers: Headers): void;
2384
2191
  }, {
2385
2192
  [x: string]: unknown;
2386
2193
  id: string;
@@ -2444,16 +2251,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2444
2251
  signal?: AbortSignal;
2445
2252
  }) => Promise<import("./schemas.js").GraphPage<T>>;
2446
2253
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
2447
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
2448
- method?: string;
2449
- body?: unknown;
2450
- headers?: Record<string, string>;
2451
- query?: Record<string, string | number>;
2452
- signal?: AbortSignal;
2453
- }): Promise<{
2454
- status: number;
2455
- body: T;
2456
- }>;
2254
+ authorize(target: URL, headers: Headers): void;
2457
2255
  }, {
2458
2256
  [x: string]: unknown;
2459
2257
  id: string;
@@ -2519,16 +2317,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2519
2317
  signal?: AbortSignal;
2520
2318
  }) => Promise<import("./schemas.js").GraphPage<T>>;
2521
2319
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
2522
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
2523
- method?: string;
2524
- body?: unknown;
2525
- headers?: Record<string, string>;
2526
- query?: Record<string, string | number>;
2527
- signal?: AbortSignal;
2528
- }): Promise<{
2529
- status: number;
2530
- body: T;
2531
- }>;
2320
+ authorize(target: URL, headers: Headers): void;
2532
2321
  }, {
2533
2322
  [x: string]: unknown;
2534
2323
  id: string;
@@ -2596,16 +2385,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2596
2385
  signal?: AbortSignal;
2597
2386
  }) => Promise<import("./schemas.js").GraphPage<T>>;
2598
2387
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
2599
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
2600
- method?: string;
2601
- body?: unknown;
2602
- headers?: Record<string, string>;
2603
- query?: Record<string, string | number>;
2604
- signal?: AbortSignal;
2605
- }): Promise<{
2606
- status: number;
2607
- body: T;
2608
- }>;
2388
+ authorize(target: URL, headers: Headers): void;
2609
2389
  }, {
2610
2390
  [x: string]: unknown;
2611
2391
  id: string;
@@ -2692,16 +2472,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2692
2472
  signal?: AbortSignal;
2693
2473
  }) => Promise<import("./schemas.js").GraphPage<T>>;
2694
2474
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
2695
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
2696
- method?: string;
2697
- body?: unknown;
2698
- headers?: Record<string, string>;
2699
- query?: Record<string, string | number>;
2700
- signal?: AbortSignal;
2701
- }): Promise<{
2702
- status: number;
2703
- body: T;
2704
- }>;
2475
+ authorize(target: URL, headers: Headers): void;
2705
2476
  }, {
2706
2477
  chat: {
2707
2478
  [x: string]: unknown;
@@ -2780,16 +2551,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2780
2551
  signal?: AbortSignal;
2781
2552
  }) => Promise<import("./schemas.js").GraphPage<T>>;
2782
2553
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
2783
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
2784
- method?: string;
2785
- body?: unknown;
2786
- headers?: Record<string, string>;
2787
- query?: Record<string, string | number>;
2788
- signal?: AbortSignal;
2789
- }): Promise<{
2790
- status: number;
2791
- body: T;
2792
- }>;
2554
+ authorize(target: URL, headers: Headers): void;
2793
2555
  }, {
2794
2556
  [x: string]: unknown;
2795
2557
  id: string;
@@ -2846,16 +2608,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2846
2608
  signal?: AbortSignal;
2847
2609
  }) => Promise<import("./schemas.js").GraphPage<T>>;
2848
2610
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
2849
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
2850
- method?: string;
2851
- body?: unknown;
2852
- headers?: Record<string, string>;
2853
- query?: Record<string, string | number>;
2854
- signal?: AbortSignal;
2855
- }): Promise<{
2856
- status: number;
2857
- body: T;
2858
- }>;
2611
+ authorize(target: URL, headers: Headers): void;
2859
2612
  }, {
2860
2613
  success: true;
2861
2614
  messageId: string;
@@ -2912,16 +2665,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2912
2665
  signal?: AbortSignal;
2913
2666
  }) => Promise<import("./schemas.js").GraphPage<T>>;
2914
2667
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
2915
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
2916
- method?: string;
2917
- body?: unknown;
2918
- headers?: Record<string, string>;
2919
- query?: Record<string, string | number>;
2920
- signal?: AbortSignal;
2921
- }): Promise<{
2922
- status: number;
2923
- body: T;
2924
- }>;
2668
+ authorize(target: URL, headers: Headers): void;
2925
2669
  }, {
2926
2670
  [x: string]: unknown;
2927
2671
  id: string;
@@ -2984,16 +2728,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2984
2728
  signal?: AbortSignal;
2985
2729
  }) => Promise<import("./schemas.js").GraphPage<T>>;
2986
2730
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
2987
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
2988
- method?: string;
2989
- body?: unknown;
2990
- headers?: Record<string, string>;
2991
- query?: Record<string, string | number>;
2992
- signal?: AbortSignal;
2993
- }): Promise<{
2994
- status: number;
2995
- body: T;
2996
- }>;
2731
+ authorize(target: URL, headers: Headers): void;
2997
2732
  }, {
2998
2733
  found: boolean;
2999
2734
  result: {
@@ -3009,8 +2744,8 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
3009
2744
  slug: "findChannel";
3010
2745
  }) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
3011
2746
  searchBy: z.ZodDefault<z.ZodEnum<{
3012
- name: "name";
3013
2747
  email: "email";
2748
+ name: "name";
3014
2749
  }>>;
3015
2750
  searchValue: z.ZodString;
3016
2751
  teamId: z.ZodString;
@@ -3058,16 +2793,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
3058
2793
  signal?: AbortSignal;
3059
2794
  }) => Promise<import("./schemas.js").GraphPage<T>>;
3060
2795
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
3061
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
3062
- method?: string;
3063
- body?: unknown;
3064
- headers?: Record<string, string>;
3065
- query?: Record<string, string | number>;
3066
- signal?: AbortSignal;
3067
- }): Promise<{
3068
- status: number;
3069
- body: T;
3070
- }>;
2796
+ authorize(target: URL, headers: Headers): void;
3071
2797
  }, {
3072
2798
  found: boolean;
3073
2799
  result: {
@@ -3133,16 +2859,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
3133
2859
  signal?: AbortSignal;
3134
2860
  }) => Promise<import("./schemas.js").GraphPage<T>>;
3135
2861
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
3136
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
3137
- method?: string;
3138
- body?: unknown;
3139
- headers?: Record<string, string>;
3140
- query?: Record<string, string | number>;
3141
- signal?: AbortSignal;
3142
- }): Promise<{
3143
- status: number;
3144
- body: T;
3145
- }>;
2862
+ authorize(target: URL, headers: Headers): void;
3146
2863
  }, import("./schemas.js").GraphPage<{
3147
2864
  [x: string]: unknown;
3148
2865
  id: string;
@@ -3206,16 +2923,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
3206
2923
  signal?: AbortSignal;
3207
2924
  }) => Promise<import("./schemas.js").GraphPage<T>>;
3208
2925
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
3209
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
3210
- method?: string;
3211
- body?: unknown;
3212
- headers?: Record<string, string>;
3213
- query?: Record<string, string | number>;
3214
- signal?: AbortSignal;
3215
- }): Promise<{
3216
- status: number;
3217
- body: T;
3218
- }>;
2926
+ authorize(target: URL, headers: Headers): void;
3219
2927
  }, {
3220
2928
  [x: string]: unknown;
3221
2929
  id: string;
@@ -3226,71 +2934,6 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
3226
2934
  createdDateTime?: string | null | undefined;
3227
2935
  }>> & {
3228
2936
  slug: "getMeetingRecording";
3229
- }) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
3230
- method: z.ZodEnum<{
3231
- GET: "GET";
3232
- POST: "POST";
3233
- PATCH: "PATCH";
3234
- PUT: "PUT";
3235
- DELETE: "DELETE";
3236
- }>;
3237
- path: z.ZodString;
3238
- query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
3239
- body: z.ZodOptional<z.ZodJSONSchema>;
3240
- }, z.core.$strip>, z.ZodObject<{
3241
- status: z.ZodNumber;
3242
- body: z.ZodJSONSchema;
3243
- }, z.core.$strip>, {
3244
- botAppType: "MultiTenant" | "SingleTenant";
3245
- botUsername: string;
3246
- botTenantId?: string | undefined;
3247
- botApiUrl?: string | undefined;
3248
- }, {
3249
- baseUrl: string;
3250
- request: <T>(path: string, schema: z.ZodType<T>, options?: {
3251
- method?: string;
3252
- body?: unknown;
3253
- headers?: Record<string, string>;
3254
- query?: Record<string, string | number>;
3255
- signal?: AbortSignal;
3256
- }) => Promise<T>;
3257
- text(path: string, options?: {
3258
- method?: string;
3259
- body?: unknown;
3260
- headers?: Record<string, string>;
3261
- query?: Record<string, string | number>;
3262
- signal?: AbortSignal;
3263
- }): Promise<string>;
3264
- list: <T>(path: string, schema: z.ZodType<T>, options?: {
3265
- method?: string;
3266
- body?: unknown;
3267
- headers?: Record<string, string>;
3268
- query?: Record<string, string | number>;
3269
- signal?: AbortSignal;
3270
- }) => Promise<T[]>;
3271
- page: <T>(path: string, schema: z.ZodType<T>, options?: {
3272
- method?: string;
3273
- body?: unknown;
3274
- headers?: Record<string, string>;
3275
- query?: Record<string, string | number>;
3276
- signal?: AbortSignal;
3277
- }) => Promise<import("./schemas.js").GraphPage<T>>;
3278
- meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
3279
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
3280
- method?: string;
3281
- body?: unknown;
3282
- headers?: Record<string, string>;
3283
- query?: Record<string, string | number>;
3284
- signal?: AbortSignal;
3285
- }): Promise<{
3286
- status: number;
3287
- body: T;
3288
- }>;
3289
- }, {
3290
- status: number;
3291
- body: z.core.util.JSONType;
3292
- }> & {
3293
- slug: "customApiCall";
3294
2937
  }))[];
3295
2938
  readonly triggers: (({
3296
2939
  slug: string;
@@ -3298,29 +2941,36 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
3298
2941
  description: string;
3299
2942
  input: z.ZodObject<{
3300
2943
  teamId: z.ZodString;
2944
+ channelId: z.ZodString;
3301
2945
  }, z.core.$strip>;
3302
2946
  output?: z.ZodObject<{
3303
2947
  id: z.ZodString;
3304
- displayName: z.ZodString;
3305
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3306
2948
  createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3307
- membershipType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3308
- isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2949
+ lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2950
+ chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2951
+ body: z.ZodObject<{
2952
+ content: z.ZodString;
2953
+ contentType: z.ZodString;
2954
+ }, z.core.$loose>;
3309
2955
  }, z.core.$loose> | undefined;
3310
2956
  sample?: {
3311
2957
  [x: string]: unknown;
3312
2958
  id: string;
3313
- displayName: string;
3314
- description?: string | null | undefined;
2959
+ body: {
2960
+ [x: string]: unknown;
2961
+ content: string;
2962
+ contentType: string;
2963
+ };
3315
2964
  createdDateTime?: string | null | undefined;
3316
- membershipType?: string | null | undefined;
3317
- isArchived?: boolean | null | undefined;
2965
+ lastModifiedDateTime?: string | null | undefined;
2966
+ chatId?: string | null | undefined;
3318
2967
  } | undefined;
3319
2968
  } & {
3320
2969
  type: "polling";
3321
2970
  schedule?: string;
3322
2971
  run(args: import("frogbot").PieceRunArgs<{
3323
2972
  teamId: string;
2973
+ channelId: string;
3324
2974
  }, {
3325
2975
  botAppType: "MultiTenant" | "SingleTenant";
3326
2976
  botUsername: string;
@@ -3357,68 +3007,55 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
3357
3007
  signal?: AbortSignal;
3358
3008
  }) => Promise<import("./schemas.js").GraphPage<T>>;
3359
3009
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
3360
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
3361
- method?: string;
3362
- body?: unknown;
3363
- headers?: Record<string, string>;
3364
- query?: Record<string, string | number>;
3365
- signal?: AbortSignal;
3366
- }): Promise<{
3367
- status: number;
3368
- body: T;
3369
- }>;
3010
+ authorize(target: URL, headers: Headers): void;
3370
3011
  }> & {
3371
3012
  cursor?: import("frogbot").PieceJSON | undefined;
3372
3013
  }): Promise<{
3373
3014
  events: {
3374
3015
  [x: string]: unknown;
3375
3016
  id: string;
3376
- displayName: string;
3377
- description?: string | null | undefined;
3017
+ body: {
3018
+ [x: string]: unknown;
3019
+ content: string;
3020
+ contentType: string;
3021
+ };
3378
3022
  createdDateTime?: string | null | undefined;
3379
- membershipType?: string | null | undefined;
3380
- isArchived?: boolean | null | undefined;
3023
+ lastModifiedDateTime?: string | null | undefined;
3024
+ chatId?: string | null | undefined;
3381
3025
  }[];
3382
3026
  cursor?: import("frogbot").PieceJSON | undefined;
3383
3027
  }>;
3384
3028
  } & {
3385
- slug: "channelCreated";
3029
+ slug: "channelMessageCreated";
3386
3030
  }) | ({
3387
3031
  slug: string;
3388
3032
  label?: string;
3389
3033
  description: string;
3390
3034
  input: z.ZodObject<{
3391
3035
  teamId: z.ZodString;
3392
- channelId: z.ZodString;
3393
3036
  }, z.core.$strip>;
3394
3037
  output?: z.ZodObject<{
3395
3038
  id: z.ZodString;
3039
+ displayName: z.ZodString;
3040
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3396
3041
  createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3397
- lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3398
- chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3399
- body: z.ZodObject<{
3400
- content: z.ZodString;
3401
- contentType: z.ZodString;
3402
- }, z.core.$loose>;
3042
+ membershipType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3043
+ isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3403
3044
  }, z.core.$loose> | undefined;
3404
3045
  sample?: {
3405
3046
  [x: string]: unknown;
3406
3047
  id: string;
3407
- body: {
3408
- [x: string]: unknown;
3409
- content: string;
3410
- contentType: string;
3411
- };
3048
+ displayName: string;
3049
+ description?: string | null | undefined;
3412
3050
  createdDateTime?: string | null | undefined;
3413
- lastModifiedDateTime?: string | null | undefined;
3414
- chatId?: string | null | undefined;
3051
+ membershipType?: string | null | undefined;
3052
+ isArchived?: boolean | null | undefined;
3415
3053
  } | undefined;
3416
3054
  } & {
3417
3055
  type: "polling";
3418
3056
  schedule?: string;
3419
3057
  run(args: import("frogbot").PieceRunArgs<{
3420
3058
  teamId: string;
3421
- channelId: string;
3422
3059
  }, {
3423
3060
  botAppType: "MultiTenant" | "SingleTenant";
3424
3061
  botUsername: string;
@@ -3455,35 +3092,23 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
3455
3092
  signal?: AbortSignal;
3456
3093
  }) => Promise<import("./schemas.js").GraphPage<T>>;
3457
3094
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
3458
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
3459
- method?: string;
3460
- body?: unknown;
3461
- headers?: Record<string, string>;
3462
- query?: Record<string, string | number>;
3463
- signal?: AbortSignal;
3464
- }): Promise<{
3465
- status: number;
3466
- body: T;
3467
- }>;
3095
+ authorize(target: URL, headers: Headers): void;
3468
3096
  }> & {
3469
3097
  cursor?: import("frogbot").PieceJSON | undefined;
3470
3098
  }): Promise<{
3471
3099
  events: {
3472
3100
  [x: string]: unknown;
3473
3101
  id: string;
3474
- body: {
3475
- [x: string]: unknown;
3476
- content: string;
3477
- contentType: string;
3478
- };
3102
+ displayName: string;
3103
+ description?: string | null | undefined;
3479
3104
  createdDateTime?: string | null | undefined;
3480
- lastModifiedDateTime?: string | null | undefined;
3481
- chatId?: string | null | undefined;
3105
+ membershipType?: string | null | undefined;
3106
+ isArchived?: boolean | null | undefined;
3482
3107
  }[];
3483
3108
  cursor?: import("frogbot").PieceJSON | undefined;
3484
3109
  }>;
3485
3110
  } & {
3486
- slug: "channelMessageCreated";
3111
+ slug: "channelCreated";
3487
3112
  }) | ({
3488
3113
  slug: string;
3489
3114
  label?: string;
@@ -3561,16 +3186,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
3561
3186
  signal?: AbortSignal;
3562
3187
  }) => Promise<import("./schemas.js").GraphPage<T>>;
3563
3188
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
3564
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
3565
- method?: string;
3566
- body?: unknown;
3567
- headers?: Record<string, string>;
3568
- query?: Record<string, string | number>;
3569
- signal?: AbortSignal;
3570
- }): Promise<{
3571
- status: number;
3572
- body: T;
3573
- }>;
3189
+ authorize(target: URL, headers: Headers): void;
3574
3190
  }> & {
3575
3191
  cursor?: import("frogbot").PieceJSON | undefined;
3576
3192
  }): Promise<{
@@ -3663,16 +3279,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
3663
3279
  signal?: AbortSignal;
3664
3280
  }) => Promise<import("./schemas.js").GraphPage<T>>;
3665
3281
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
3666
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
3667
- method?: string;
3668
- body?: unknown;
3669
- headers?: Record<string, string>;
3670
- query?: Record<string, string | number>;
3671
- signal?: AbortSignal;
3672
- }): Promise<{
3673
- status: number;
3674
- body: T;
3675
- }>;
3282
+ authorize(target: URL, headers: Headers): void;
3676
3283
  }> & {
3677
3284
  cursor?: import("frogbot").PieceJSON | undefined;
3678
3285
  }): Promise<{
@@ -3738,16 +3345,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
3738
3345
  signal?: AbortSignal;
3739
3346
  }) => Promise<import("./schemas.js").GraphPage<T>>;
3740
3347
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
3741
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
3742
- method?: string;
3743
- body?: unknown;
3744
- headers?: Record<string, string>;
3745
- query?: Record<string, string | number>;
3746
- signal?: AbortSignal;
3747
- }): Promise<{
3748
- status: number;
3749
- body: T;
3750
- }>;
3348
+ authorize(target: URL, headers: Headers): void;
3751
3349
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
3752
3350
  } & {
3753
3351
  slug: "messageReceived";
@@ -3797,16 +3395,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
3797
3395
  signal?: AbortSignal;
3798
3396
  }) => Promise<import("./schemas.js").GraphPage<T>>;
3799
3397
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
3800
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
3801
- method?: string;
3802
- body?: unknown;
3803
- headers?: Record<string, string>;
3804
- query?: Record<string, string | number>;
3805
- signal?: AbortSignal;
3806
- }): Promise<{
3807
- status: number;
3808
- body: T;
3809
- }>;
3398
+ authorize(target: URL, headers: Headers): void;
3810
3399
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
3811
3400
  } & {
3812
3401
  slug: "messageReactionReceived";
@@ -3856,16 +3445,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
3856
3445
  signal?: AbortSignal;
3857
3446
  }) => Promise<import("./schemas.js").GraphPage<T>>;
3858
3447
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
3859
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
3860
- method?: string;
3861
- body?: unknown;
3862
- headers?: Record<string, string>;
3863
- query?: Record<string, string | number>;
3864
- signal?: AbortSignal;
3865
- }): Promise<{
3866
- status: number;
3867
- body: T;
3868
- }>;
3448
+ authorize(target: URL, headers: Headers): void;
3869
3449
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
3870
3450
  } & {
3871
3451
  slug: "cardActionReceived";
@@ -3915,16 +3495,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
3915
3495
  signal?: AbortSignal;
3916
3496
  }) => Promise<import("./schemas.js").GraphPage<T>>;
3917
3497
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
3918
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
3919
- method?: string;
3920
- body?: unknown;
3921
- headers?: Record<string, string>;
3922
- query?: Record<string, string | number>;
3923
- signal?: AbortSignal;
3924
- }): Promise<{
3925
- status: number;
3926
- body: T;
3927
- }>;
3498
+ authorize(target: URL, headers: Headers): void;
3928
3499
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
3929
3500
  } & {
3930
3501
  slug: "conversationUpdated";
@@ -3974,16 +3545,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
3974
3545
  signal?: AbortSignal;
3975
3546
  }) => Promise<import("./schemas.js").GraphPage<T>>;
3976
3547
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
3977
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
3978
- method?: string;
3979
- body?: unknown;
3980
- headers?: Record<string, string>;
3981
- query?: Record<string, string | number>;
3982
- signal?: AbortSignal;
3983
- }): Promise<{
3984
- status: number;
3985
- body: T;
3986
- }>;
3548
+ authorize(target: URL, headers: Headers): void;
3987
3549
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
3988
3550
  } & {
3989
3551
  slug: "installationUpdated";
@@ -4033,16 +3595,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
4033
3595
  signal?: AbortSignal;
4034
3596
  }) => Promise<import("./schemas.js").GraphPage<T>>;
4035
3597
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
4036
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
4037
- method?: string;
4038
- body?: unknown;
4039
- headers?: Record<string, string>;
4040
- query?: Record<string, string | number>;
4041
- signal?: AbortSignal;
4042
- }): Promise<{
4043
- status: number;
4044
- body: T;
4045
- }>;
3598
+ authorize(target: URL, headers: Headers): void;
4046
3599
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
4047
3600
  } & {
4048
3601
  slug: "dialogOpened";
@@ -4092,16 +3645,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
4092
3645
  signal?: AbortSignal;
4093
3646
  }) => Promise<import("./schemas.js").GraphPage<T>>;
4094
3647
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
4095
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
4096
- method?: string;
4097
- body?: unknown;
4098
- headers?: Record<string, string>;
4099
- query?: Record<string, string | number>;
4100
- signal?: AbortSignal;
4101
- }): Promise<{
4102
- status: number;
4103
- body: T;
4104
- }>;
3648
+ authorize(target: URL, headers: Headers): void;
4105
3649
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
4106
3650
  } & {
4107
3651
  slug: "dialogSubmitted";