@frogbotai/piece-microsoft-teams 0.30.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,22 +184,10 @@ 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
- }): Promise<{
166
- collection: string;
167
- id: string | number;
168
- } | null>;
190
+ }): Promise<(Record<string, unknown> & import("frogbot").TypeWithID) | null>;
169
191
  questions: import("frogbot/pieces").PieceChannelQuestions<{
170
192
  baseUrl: string;
171
193
  request: <T>(path: string, schema: z.ZodType<T>, options?: {
@@ -197,19 +219,47 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
197
219
  signal?: AbortSignal;
198
220
  }) => Promise<import("./schemas.js").GraphPage<T>>;
199
221
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
200
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
201
- method?: string;
202
- body?: unknown;
203
- headers?: Record<string, string>;
204
- query?: Record<string, string | number>;
205
- signal?: AbortSignal;
206
- }): Promise<{
207
- status: number;
208
- body: T;
209
- }>;
222
+ authorize(target: URL, headers: Headers): void;
210
223
  }>;
211
224
  };
212
- 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<{
213
263
  channelDisplayName: z.ZodString;
214
264
  channelDescription: z.ZodOptional<z.ZodString>;
215
265
  teamId: z.ZodString;
@@ -256,16 +306,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
256
306
  signal?: AbortSignal;
257
307
  }) => Promise<import("./schemas.js").GraphPage<T>>;
258
308
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
259
- custom<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<{
266
- status: number;
267
- body: T;
268
- }>;
309
+ authorize(target: URL, headers: Headers): void;
269
310
  }, {
270
311
  [x: string]: unknown;
271
312
  id: string;
@@ -323,16 +364,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
323
364
  signal?: AbortSignal;
324
365
  }) => Promise<import("./schemas.js").GraphPage<T>>;
325
366
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
326
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
327
- method?: string;
328
- body?: unknown;
329
- headers?: Record<string, string>;
330
- query?: Record<string, string | number>;
331
- signal?: AbortSignal;
332
- }): Promise<{
333
- status: number;
334
- body: T;
335
- }>;
367
+ authorize(target: URL, headers: Headers): void;
336
368
  }, {
337
369
  [x: string]: unknown;
338
370
  id: string;
@@ -396,16 +428,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
396
428
  signal?: AbortSignal;
397
429
  }) => Promise<import("./schemas.js").GraphPage<T>>;
398
430
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
399
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
400
- method?: string;
401
- body?: unknown;
402
- headers?: Record<string, string>;
403
- query?: Record<string, string | number>;
404
- signal?: AbortSignal;
405
- }): Promise<{
406
- status: number;
407
- body: T;
408
- }>;
431
+ authorize(target: URL, headers: Headers): void;
409
432
  }, {
410
433
  [x: string]: unknown;
411
434
  id: string;
@@ -471,16 +494,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
471
494
  signal?: AbortSignal;
472
495
  }) => Promise<import("./schemas.js").GraphPage<T>>;
473
496
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
474
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
475
- method?: string;
476
- body?: unknown;
477
- headers?: Record<string, string>;
478
- query?: Record<string, string | number>;
479
- signal?: AbortSignal;
480
- }): Promise<{
481
- status: number;
482
- body: T;
483
- }>;
497
+ authorize(target: URL, headers: Headers): void;
484
498
  }, {
485
499
  [x: string]: unknown;
486
500
  id: string;
@@ -548,16 +562,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
548
562
  signal?: AbortSignal;
549
563
  }) => Promise<import("./schemas.js").GraphPage<T>>;
550
564
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
551
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
552
- method?: string;
553
- body?: unknown;
554
- headers?: Record<string, string>;
555
- query?: Record<string, string | number>;
556
- signal?: AbortSignal;
557
- }): Promise<{
558
- status: number;
559
- body: T;
560
- }>;
565
+ authorize(target: URL, headers: Headers): void;
561
566
  }, {
562
567
  [x: string]: unknown;
563
568
  id: string;
@@ -644,16 +649,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
644
649
  signal?: AbortSignal;
645
650
  }) => Promise<import("./schemas.js").GraphPage<T>>;
646
651
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
647
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
648
- method?: string;
649
- body?: unknown;
650
- headers?: Record<string, string>;
651
- query?: Record<string, string | number>;
652
- signal?: AbortSignal;
653
- }): Promise<{
654
- status: number;
655
- body: T;
656
- }>;
652
+ authorize(target: URL, headers: Headers): void;
657
653
  }, {
658
654
  chat: {
659
655
  [x: string]: unknown;
@@ -732,16 +728,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
732
728
  signal?: AbortSignal;
733
729
  }) => Promise<import("./schemas.js").GraphPage<T>>;
734
730
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
735
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
736
- method?: string;
737
- body?: unknown;
738
- headers?: Record<string, string>;
739
- query?: Record<string, string | number>;
740
- signal?: AbortSignal;
741
- }): Promise<{
742
- status: number;
743
- body: T;
744
- }>;
731
+ authorize(target: URL, headers: Headers): void;
745
732
  }, {
746
733
  [x: string]: unknown;
747
734
  id: string;
@@ -798,16 +785,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
798
785
  signal?: AbortSignal;
799
786
  }) => Promise<import("./schemas.js").GraphPage<T>>;
800
787
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
801
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
802
- method?: string;
803
- body?: unknown;
804
- headers?: Record<string, string>;
805
- query?: Record<string, string | number>;
806
- signal?: AbortSignal;
807
- }): Promise<{
808
- status: number;
809
- body: T;
810
- }>;
788
+ authorize(target: URL, headers: Headers): void;
811
789
  }, {
812
790
  success: true;
813
791
  messageId: string;
@@ -864,16 +842,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
864
842
  signal?: AbortSignal;
865
843
  }) => Promise<import("./schemas.js").GraphPage<T>>;
866
844
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
867
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
868
- method?: string;
869
- body?: unknown;
870
- headers?: Record<string, string>;
871
- query?: Record<string, string | number>;
872
- signal?: AbortSignal;
873
- }): Promise<{
874
- status: number;
875
- body: T;
876
- }>;
845
+ authorize(target: URL, headers: Headers): void;
877
846
  }, {
878
847
  [x: string]: unknown;
879
848
  id: string;
@@ -936,16 +905,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
936
905
  signal?: AbortSignal;
937
906
  }) => Promise<import("./schemas.js").GraphPage<T>>;
938
907
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
939
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
940
- method?: string;
941
- body?: unknown;
942
- headers?: Record<string, string>;
943
- query?: Record<string, string | number>;
944
- signal?: AbortSignal;
945
- }): Promise<{
946
- status: number;
947
- body: T;
948
- }>;
908
+ authorize(target: URL, headers: Headers): void;
949
909
  }, {
950
910
  found: boolean;
951
911
  result: {
@@ -961,8 +921,8 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
961
921
  slug: "findChannel";
962
922
  }) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
963
923
  searchBy: z.ZodDefault<z.ZodEnum<{
964
- name: "name";
965
924
  email: "email";
925
+ name: "name";
966
926
  }>>;
967
927
  searchValue: z.ZodString;
968
928
  teamId: z.ZodString;
@@ -1010,16 +970,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
1010
970
  signal?: AbortSignal;
1011
971
  }) => Promise<import("./schemas.js").GraphPage<T>>;
1012
972
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1013
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
1014
- method?: string;
1015
- body?: unknown;
1016
- headers?: Record<string, string>;
1017
- query?: Record<string, string | number>;
1018
- signal?: AbortSignal;
1019
- }): Promise<{
1020
- status: number;
1021
- body: T;
1022
- }>;
973
+ authorize(target: URL, headers: Headers): void;
1023
974
  }, {
1024
975
  found: boolean;
1025
976
  result: {
@@ -1085,16 +1036,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
1085
1036
  signal?: AbortSignal;
1086
1037
  }) => Promise<import("./schemas.js").GraphPage<T>>;
1087
1038
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1088
- custom<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<{
1095
- status: number;
1096
- body: T;
1097
- }>;
1039
+ authorize(target: URL, headers: Headers): void;
1098
1040
  }, import("./schemas.js").GraphPage<{
1099
1041
  [x: string]: unknown;
1100
1042
  id: string;
@@ -1158,16 +1100,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
1158
1100
  signal?: AbortSignal;
1159
1101
  }) => Promise<import("./schemas.js").GraphPage<T>>;
1160
1102
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1161
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
1162
- method?: string;
1163
- body?: unknown;
1164
- headers?: Record<string, string>;
1165
- query?: Record<string, string | number>;
1166
- signal?: AbortSignal;
1167
- }): Promise<{
1168
- status: number;
1169
- body: T;
1170
- }>;
1103
+ authorize(target: URL, headers: Headers): void;
1171
1104
  }, {
1172
1105
  [x: string]: unknown;
1173
1106
  id: string;
@@ -1178,71 +1111,6 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
1178
1111
  createdDateTime?: string | null | undefined;
1179
1112
  }>> & {
1180
1113
  slug: "getMeetingRecording";
1181
- }) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
1182
- method: z.ZodEnum<{
1183
- GET: "GET";
1184
- POST: "POST";
1185
- PATCH: "PATCH";
1186
- PUT: "PUT";
1187
- DELETE: "DELETE";
1188
- }>;
1189
- path: z.ZodString;
1190
- query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
1191
- body: z.ZodOptional<z.ZodJSONSchema>;
1192
- }, z.core.$strip>, z.ZodObject<{
1193
- status: z.ZodNumber;
1194
- body: z.ZodJSONSchema;
1195
- }, z.core.$strip>, {
1196
- botAppType: "MultiTenant" | "SingleTenant";
1197
- botUsername: string;
1198
- botTenantId?: string | undefined;
1199
- botApiUrl?: string | undefined;
1200
- }, {
1201
- baseUrl: string;
1202
- request: <T>(path: string, schema: z.ZodType<T>, options?: {
1203
- method?: string;
1204
- body?: unknown;
1205
- headers?: Record<string, string>;
1206
- query?: Record<string, string | number>;
1207
- signal?: AbortSignal;
1208
- }) => Promise<T>;
1209
- text(path: string, options?: {
1210
- method?: string;
1211
- body?: unknown;
1212
- headers?: Record<string, string>;
1213
- query?: Record<string, string | number>;
1214
- signal?: AbortSignal;
1215
- }): Promise<string>;
1216
- list: <T>(path: string, schema: z.ZodType<T>, options?: {
1217
- method?: string;
1218
- body?: unknown;
1219
- headers?: Record<string, string>;
1220
- query?: Record<string, string | number>;
1221
- signal?: AbortSignal;
1222
- }) => Promise<T[]>;
1223
- page: <T>(path: string, schema: z.ZodType<T>, options?: {
1224
- method?: string;
1225
- body?: unknown;
1226
- headers?: Record<string, string>;
1227
- query?: Record<string, string | number>;
1228
- signal?: AbortSignal;
1229
- }) => Promise<import("./schemas.js").GraphPage<T>>;
1230
- meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1231
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
1232
- method?: string;
1233
- body?: unknown;
1234
- headers?: Record<string, string>;
1235
- query?: Record<string, string | number>;
1236
- signal?: AbortSignal;
1237
- }): Promise<{
1238
- status: number;
1239
- body: T;
1240
- }>;
1241
- }, {
1242
- status: number;
1243
- body: z.core.util.JSONType;
1244
- }> & {
1245
- slug: "customApiCall";
1246
1114
  }))[];
1247
1115
  readonly triggers: (({
1248
1116
  slug: string;
@@ -1250,29 +1118,36 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
1250
1118
  description: string;
1251
1119
  input: z.ZodObject<{
1252
1120
  teamId: z.ZodString;
1121
+ channelId: z.ZodString;
1253
1122
  }, z.core.$strip>;
1254
1123
  output?: z.ZodObject<{
1255
1124
  id: z.ZodString;
1256
- displayName: z.ZodString;
1257
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1258
1125
  createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1259
- membershipType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1260
- 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>;
1261
1132
  }, z.core.$loose> | undefined;
1262
1133
  sample?: {
1263
1134
  [x: string]: unknown;
1264
1135
  id: string;
1265
- displayName: string;
1266
- description?: string | null | undefined;
1136
+ body: {
1137
+ [x: string]: unknown;
1138
+ content: string;
1139
+ contentType: string;
1140
+ };
1267
1141
  createdDateTime?: string | null | undefined;
1268
- membershipType?: string | null | undefined;
1269
- isArchived?: boolean | null | undefined;
1142
+ lastModifiedDateTime?: string | null | undefined;
1143
+ chatId?: string | null | undefined;
1270
1144
  } | undefined;
1271
1145
  } & {
1272
1146
  type: "polling";
1273
1147
  schedule?: string;
1274
1148
  run(args: import("frogbot").PieceRunArgs<{
1275
1149
  teamId: string;
1150
+ channelId: string;
1276
1151
  }, {
1277
1152
  botAppType: "MultiTenant" | "SingleTenant";
1278
1153
  botUsername: string;
@@ -1309,68 +1184,55 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
1309
1184
  signal?: AbortSignal;
1310
1185
  }) => Promise<import("./schemas.js").GraphPage<T>>;
1311
1186
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1312
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
1313
- method?: string;
1314
- body?: unknown;
1315
- headers?: Record<string, string>;
1316
- query?: Record<string, string | number>;
1317
- signal?: AbortSignal;
1318
- }): Promise<{
1319
- status: number;
1320
- body: T;
1321
- }>;
1187
+ authorize(target: URL, headers: Headers): void;
1322
1188
  }> & {
1323
1189
  cursor?: import("frogbot").PieceJSON | undefined;
1324
1190
  }): Promise<{
1325
1191
  events: {
1326
1192
  [x: string]: unknown;
1327
1193
  id: string;
1328
- displayName: string;
1329
- description?: string | null | undefined;
1194
+ body: {
1195
+ [x: string]: unknown;
1196
+ content: string;
1197
+ contentType: string;
1198
+ };
1330
1199
  createdDateTime?: string | null | undefined;
1331
- membershipType?: string | null | undefined;
1332
- isArchived?: boolean | null | undefined;
1200
+ lastModifiedDateTime?: string | null | undefined;
1201
+ chatId?: string | null | undefined;
1333
1202
  }[];
1334
1203
  cursor?: import("frogbot").PieceJSON | undefined;
1335
1204
  }>;
1336
1205
  } & {
1337
- slug: "channelCreated";
1206
+ slug: "channelMessageCreated";
1338
1207
  }) | ({
1339
1208
  slug: string;
1340
1209
  label?: string;
1341
1210
  description: string;
1342
1211
  input: z.ZodObject<{
1343
1212
  teamId: z.ZodString;
1344
- channelId: z.ZodString;
1345
1213
  }, z.core.$strip>;
1346
1214
  output?: z.ZodObject<{
1347
1215
  id: z.ZodString;
1216
+ displayName: z.ZodString;
1217
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1348
1218
  createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1349
- lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1350
- chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1351
- body: z.ZodObject<{
1352
- content: z.ZodString;
1353
- contentType: z.ZodString;
1354
- }, z.core.$loose>;
1219
+ membershipType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1220
+ isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1355
1221
  }, z.core.$loose> | undefined;
1356
1222
  sample?: {
1357
1223
  [x: string]: unknown;
1358
1224
  id: string;
1359
- body: {
1360
- [x: string]: unknown;
1361
- content: string;
1362
- contentType: string;
1363
- };
1225
+ displayName: string;
1226
+ description?: string | null | undefined;
1364
1227
  createdDateTime?: string | null | undefined;
1365
- lastModifiedDateTime?: string | null | undefined;
1366
- chatId?: string | null | undefined;
1228
+ membershipType?: string | null | undefined;
1229
+ isArchived?: boolean | null | undefined;
1367
1230
  } | undefined;
1368
1231
  } & {
1369
1232
  type: "polling";
1370
1233
  schedule?: string;
1371
1234
  run(args: import("frogbot").PieceRunArgs<{
1372
1235
  teamId: string;
1373
- channelId: string;
1374
1236
  }, {
1375
1237
  botAppType: "MultiTenant" | "SingleTenant";
1376
1238
  botUsername: string;
@@ -1407,35 +1269,23 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
1407
1269
  signal?: AbortSignal;
1408
1270
  }) => Promise<import("./schemas.js").GraphPage<T>>;
1409
1271
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1410
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
1411
- method?: string;
1412
- body?: unknown;
1413
- headers?: Record<string, string>;
1414
- query?: Record<string, string | number>;
1415
- signal?: AbortSignal;
1416
- }): Promise<{
1417
- status: number;
1418
- body: T;
1419
- }>;
1272
+ authorize(target: URL, headers: Headers): void;
1420
1273
  }> & {
1421
1274
  cursor?: import("frogbot").PieceJSON | undefined;
1422
1275
  }): Promise<{
1423
1276
  events: {
1424
1277
  [x: string]: unknown;
1425
1278
  id: string;
1426
- body: {
1427
- [x: string]: unknown;
1428
- content: string;
1429
- contentType: string;
1430
- };
1279
+ displayName: string;
1280
+ description?: string | null | undefined;
1431
1281
  createdDateTime?: string | null | undefined;
1432
- lastModifiedDateTime?: string | null | undefined;
1433
- chatId?: string | null | undefined;
1282
+ membershipType?: string | null | undefined;
1283
+ isArchived?: boolean | null | undefined;
1434
1284
  }[];
1435
1285
  cursor?: import("frogbot").PieceJSON | undefined;
1436
1286
  }>;
1437
1287
  } & {
1438
- slug: "channelMessageCreated";
1288
+ slug: "channelCreated";
1439
1289
  }) | ({
1440
1290
  slug: string;
1441
1291
  label?: string;
@@ -1513,16 +1363,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
1513
1363
  signal?: AbortSignal;
1514
1364
  }) => Promise<import("./schemas.js").GraphPage<T>>;
1515
1365
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1516
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
1517
- method?: string;
1518
- body?: unknown;
1519
- headers?: Record<string, string>;
1520
- query?: Record<string, string | number>;
1521
- signal?: AbortSignal;
1522
- }): Promise<{
1523
- status: number;
1524
- body: T;
1525
- }>;
1366
+ authorize(target: URL, headers: Headers): void;
1526
1367
  }> & {
1527
1368
  cursor?: import("frogbot").PieceJSON | undefined;
1528
1369
  }): Promise<{
@@ -1615,16 +1456,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
1615
1456
  signal?: AbortSignal;
1616
1457
  }) => Promise<import("./schemas.js").GraphPage<T>>;
1617
1458
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1618
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
1619
- method?: string;
1620
- body?: unknown;
1621
- headers?: Record<string, string>;
1622
- query?: Record<string, string | number>;
1623
- signal?: AbortSignal;
1624
- }): Promise<{
1625
- status: number;
1626
- body: T;
1627
- }>;
1459
+ authorize(target: URL, headers: Headers): void;
1628
1460
  }> & {
1629
1461
  cursor?: import("frogbot").PieceJSON | undefined;
1630
1462
  }): Promise<{
@@ -1690,16 +1522,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
1690
1522
  signal?: AbortSignal;
1691
1523
  }) => Promise<import("./schemas.js").GraphPage<T>>;
1692
1524
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1693
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
1694
- method?: string;
1695
- body?: unknown;
1696
- headers?: Record<string, string>;
1697
- query?: Record<string, string | number>;
1698
- signal?: AbortSignal;
1699
- }): Promise<{
1700
- status: number;
1701
- body: T;
1702
- }>;
1525
+ authorize(target: URL, headers: Headers): void;
1703
1526
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1704
1527
  } & {
1705
1528
  slug: "messageReceived";
@@ -1749,16 +1572,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
1749
1572
  signal?: AbortSignal;
1750
1573
  }) => Promise<import("./schemas.js").GraphPage<T>>;
1751
1574
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1752
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
1753
- method?: string;
1754
- body?: unknown;
1755
- headers?: Record<string, string>;
1756
- query?: Record<string, string | number>;
1757
- signal?: AbortSignal;
1758
- }): Promise<{
1759
- status: number;
1760
- body: T;
1761
- }>;
1575
+ authorize(target: URL, headers: Headers): void;
1762
1576
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1763
1577
  } & {
1764
1578
  slug: "messageReactionReceived";
@@ -1808,16 +1622,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
1808
1622
  signal?: AbortSignal;
1809
1623
  }) => Promise<import("./schemas.js").GraphPage<T>>;
1810
1624
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1811
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
1812
- method?: string;
1813
- body?: unknown;
1814
- headers?: Record<string, string>;
1815
- query?: Record<string, string | number>;
1816
- signal?: AbortSignal;
1817
- }): Promise<{
1818
- status: number;
1819
- body: T;
1820
- }>;
1625
+ authorize(target: URL, headers: Headers): void;
1821
1626
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1822
1627
  } & {
1823
1628
  slug: "cardActionReceived";
@@ -1867,16 +1672,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
1867
1672
  signal?: AbortSignal;
1868
1673
  }) => Promise<import("./schemas.js").GraphPage<T>>;
1869
1674
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1870
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
1871
- method?: string;
1872
- body?: unknown;
1873
- headers?: Record<string, string>;
1874
- query?: Record<string, string | number>;
1875
- signal?: AbortSignal;
1876
- }): Promise<{
1877
- status: number;
1878
- body: T;
1879
- }>;
1675
+ authorize(target: URL, headers: Headers): void;
1880
1676
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1881
1677
  } & {
1882
1678
  slug: "conversationUpdated";
@@ -1926,16 +1722,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
1926
1722
  signal?: AbortSignal;
1927
1723
  }) => Promise<import("./schemas.js").GraphPage<T>>;
1928
1724
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1929
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
1930
- method?: string;
1931
- body?: unknown;
1932
- headers?: Record<string, string>;
1933
- query?: Record<string, string | number>;
1934
- signal?: AbortSignal;
1935
- }): Promise<{
1936
- status: number;
1937
- body: T;
1938
- }>;
1725
+ authorize(target: URL, headers: Headers): void;
1939
1726
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1940
1727
  } & {
1941
1728
  slug: "installationUpdated";
@@ -1985,16 +1772,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
1985
1772
  signal?: AbortSignal;
1986
1773
  }) => Promise<import("./schemas.js").GraphPage<T>>;
1987
1774
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1988
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
1989
- method?: string;
1990
- body?: unknown;
1991
- headers?: Record<string, string>;
1992
- query?: Record<string, string | number>;
1993
- signal?: AbortSignal;
1994
- }): Promise<{
1995
- status: number;
1996
- body: T;
1997
- }>;
1775
+ authorize(target: URL, headers: Headers): void;
1998
1776
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1999
1777
  } & {
2000
1778
  slug: "dialogOpened";
@@ -2044,16 +1822,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
2044
1822
  signal?: AbortSignal;
2045
1823
  }) => Promise<import("./schemas.js").GraphPage<T>>;
2046
1824
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
2047
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
2048
- method?: string;
2049
- body?: unknown;
2050
- headers?: Record<string, string>;
2051
- query?: Record<string, string | number>;
2052
- signal?: AbortSignal;
2053
- }): Promise<{
2054
- status: number;
2055
- body: T;
2056
- }>;
1825
+ authorize(target: URL, headers: Headers): void;
2057
1826
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
2058
1827
  } & {
2059
1828
  slug: "dialogSubmitted";
@@ -2086,7 +1855,50 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2086
1855
  readonly oauth: {
2087
1856
  authorizationUrl: string;
2088
1857
  tokenUrl: string;
2089
- 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
+ };
2090
1902
  params: {
2091
1903
  prompt: string;
2092
1904
  };
@@ -2130,16 +1942,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2130
1942
  signal?: AbortSignal;
2131
1943
  }) => Promise<import("./schemas.js").GraphPage<T>>;
2132
1944
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
2133
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
2134
- method?: string;
2135
- body?: unknown;
2136
- headers?: Record<string, string>;
2137
- query?: Record<string, string | number>;
2138
- signal?: AbortSignal;
2139
- }): Promise<{
2140
- status: number;
2141
- body: T;
2142
- }>;
1945
+ authorize(target: URL, headers: Headers): void;
2143
1946
  };
2144
1947
  req: import("frogbot").FrogBotRequest;
2145
1948
  }): Promise<{
@@ -2204,22 +2007,10 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2204
2007
  signal?: AbortSignal;
2205
2008
  }) => Promise<import("./schemas.js").GraphPage<T>>;
2206
2009
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
2207
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
2208
- method?: string;
2209
- body?: unknown;
2210
- headers?: Record<string, string>;
2211
- query?: Record<string, string | number>;
2212
- signal?: AbortSignal;
2213
- }): Promise<{
2214
- status: number;
2215
- body: T;
2216
- }>;
2010
+ authorize(target: URL, headers: Headers): void;
2217
2011
  };
2218
2012
  req: import("frogbot").FrogBotRequest;
2219
- }): Promise<{
2220
- collection: string;
2221
- id: string | number;
2222
- } | null>;
2013
+ }): Promise<(Record<string, unknown> & import("frogbot").TypeWithID) | null>;
2223
2014
  questions: import("frogbot/pieces").PieceChannelQuestions<{
2224
2015
  baseUrl: string;
2225
2016
  request: <T>(path: string, schema: z.ZodType<T>, options?: {
@@ -2251,19 +2042,47 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2251
2042
  signal?: AbortSignal;
2252
2043
  }) => Promise<import("./schemas.js").GraphPage<T>>;
2253
2044
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
2254
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
2255
- method?: string;
2256
- body?: unknown;
2257
- headers?: Record<string, string>;
2258
- query?: Record<string, string | number>;
2259
- signal?: AbortSignal;
2260
- }): Promise<{
2261
- status: number;
2262
- body: T;
2263
- }>;
2045
+ authorize(target: URL, headers: Headers): void;
2264
2046
  }>;
2265
2047
  };
2266
- 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<{
2267
2086
  channelDisplayName: z.ZodString;
2268
2087
  channelDescription: z.ZodOptional<z.ZodString>;
2269
2088
  teamId: z.ZodString;
@@ -2310,16 +2129,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2310
2129
  signal?: AbortSignal;
2311
2130
  }) => Promise<import("./schemas.js").GraphPage<T>>;
2312
2131
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
2313
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
2314
- method?: string;
2315
- body?: unknown;
2316
- headers?: Record<string, string>;
2317
- query?: Record<string, string | number>;
2318
- signal?: AbortSignal;
2319
- }): Promise<{
2320
- status: number;
2321
- body: T;
2322
- }>;
2132
+ authorize(target: URL, headers: Headers): void;
2323
2133
  }, {
2324
2134
  [x: string]: unknown;
2325
2135
  id: string;
@@ -2375,18 +2185,9 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2375
2185
  headers?: Record<string, string>;
2376
2186
  query?: Record<string, string | number>;
2377
2187
  signal?: AbortSignal;
2378
- }) => Promise<import("./schemas.js").GraphPage<T>>;
2379
- meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
2380
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
2381
- method?: string;
2382
- body?: unknown;
2383
- headers?: Record<string, string>;
2384
- query?: Record<string, string | number>;
2385
- signal?: AbortSignal;
2386
- }): Promise<{
2387
- status: number;
2388
- body: T;
2389
- }>;
2188
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
2189
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
2190
+ authorize(target: URL, headers: Headers): void;
2390
2191
  }, {
2391
2192
  [x: string]: unknown;
2392
2193
  id: string;
@@ -2450,16 +2251,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2450
2251
  signal?: AbortSignal;
2451
2252
  }) => Promise<import("./schemas.js").GraphPage<T>>;
2452
2253
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
2453
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
2454
- method?: string;
2455
- body?: unknown;
2456
- headers?: Record<string, string>;
2457
- query?: Record<string, string | number>;
2458
- signal?: AbortSignal;
2459
- }): Promise<{
2460
- status: number;
2461
- body: T;
2462
- }>;
2254
+ authorize(target: URL, headers: Headers): void;
2463
2255
  }, {
2464
2256
  [x: string]: unknown;
2465
2257
  id: string;
@@ -2525,16 +2317,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2525
2317
  signal?: AbortSignal;
2526
2318
  }) => Promise<import("./schemas.js").GraphPage<T>>;
2527
2319
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
2528
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
2529
- method?: string;
2530
- body?: unknown;
2531
- headers?: Record<string, string>;
2532
- query?: Record<string, string | number>;
2533
- signal?: AbortSignal;
2534
- }): Promise<{
2535
- status: number;
2536
- body: T;
2537
- }>;
2320
+ authorize(target: URL, headers: Headers): void;
2538
2321
  }, {
2539
2322
  [x: string]: unknown;
2540
2323
  id: string;
@@ -2602,16 +2385,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2602
2385
  signal?: AbortSignal;
2603
2386
  }) => Promise<import("./schemas.js").GraphPage<T>>;
2604
2387
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
2605
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
2606
- method?: string;
2607
- body?: unknown;
2608
- headers?: Record<string, string>;
2609
- query?: Record<string, string | number>;
2610
- signal?: AbortSignal;
2611
- }): Promise<{
2612
- status: number;
2613
- body: T;
2614
- }>;
2388
+ authorize(target: URL, headers: Headers): void;
2615
2389
  }, {
2616
2390
  [x: string]: unknown;
2617
2391
  id: string;
@@ -2698,16 +2472,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2698
2472
  signal?: AbortSignal;
2699
2473
  }) => Promise<import("./schemas.js").GraphPage<T>>;
2700
2474
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
2701
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
2702
- method?: string;
2703
- body?: unknown;
2704
- headers?: Record<string, string>;
2705
- query?: Record<string, string | number>;
2706
- signal?: AbortSignal;
2707
- }): Promise<{
2708
- status: number;
2709
- body: T;
2710
- }>;
2475
+ authorize(target: URL, headers: Headers): void;
2711
2476
  }, {
2712
2477
  chat: {
2713
2478
  [x: string]: unknown;
@@ -2786,16 +2551,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2786
2551
  signal?: AbortSignal;
2787
2552
  }) => Promise<import("./schemas.js").GraphPage<T>>;
2788
2553
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
2789
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
2790
- method?: string;
2791
- body?: unknown;
2792
- headers?: Record<string, string>;
2793
- query?: Record<string, string | number>;
2794
- signal?: AbortSignal;
2795
- }): Promise<{
2796
- status: number;
2797
- body: T;
2798
- }>;
2554
+ authorize(target: URL, headers: Headers): void;
2799
2555
  }, {
2800
2556
  [x: string]: unknown;
2801
2557
  id: string;
@@ -2852,16 +2608,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2852
2608
  signal?: AbortSignal;
2853
2609
  }) => Promise<import("./schemas.js").GraphPage<T>>;
2854
2610
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
2855
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
2856
- method?: string;
2857
- body?: unknown;
2858
- headers?: Record<string, string>;
2859
- query?: Record<string, string | number>;
2860
- signal?: AbortSignal;
2861
- }): Promise<{
2862
- status: number;
2863
- body: T;
2864
- }>;
2611
+ authorize(target: URL, headers: Headers): void;
2865
2612
  }, {
2866
2613
  success: true;
2867
2614
  messageId: string;
@@ -2918,16 +2665,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2918
2665
  signal?: AbortSignal;
2919
2666
  }) => Promise<import("./schemas.js").GraphPage<T>>;
2920
2667
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
2921
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
2922
- method?: string;
2923
- body?: unknown;
2924
- headers?: Record<string, string>;
2925
- query?: Record<string, string | number>;
2926
- signal?: AbortSignal;
2927
- }): Promise<{
2928
- status: number;
2929
- body: T;
2930
- }>;
2668
+ authorize(target: URL, headers: Headers): void;
2931
2669
  }, {
2932
2670
  [x: string]: unknown;
2933
2671
  id: string;
@@ -2990,16 +2728,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2990
2728
  signal?: AbortSignal;
2991
2729
  }) => Promise<import("./schemas.js").GraphPage<T>>;
2992
2730
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
2993
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
2994
- method?: string;
2995
- body?: unknown;
2996
- headers?: Record<string, string>;
2997
- query?: Record<string, string | number>;
2998
- signal?: AbortSignal;
2999
- }): Promise<{
3000
- status: number;
3001
- body: T;
3002
- }>;
2731
+ authorize(target: URL, headers: Headers): void;
3003
2732
  }, {
3004
2733
  found: boolean;
3005
2734
  result: {
@@ -3015,8 +2744,8 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
3015
2744
  slug: "findChannel";
3016
2745
  }) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
3017
2746
  searchBy: z.ZodDefault<z.ZodEnum<{
3018
- name: "name";
3019
2747
  email: "email";
2748
+ name: "name";
3020
2749
  }>>;
3021
2750
  searchValue: z.ZodString;
3022
2751
  teamId: z.ZodString;
@@ -3064,16 +2793,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
3064
2793
  signal?: AbortSignal;
3065
2794
  }) => Promise<import("./schemas.js").GraphPage<T>>;
3066
2795
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
3067
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
3068
- method?: string;
3069
- body?: unknown;
3070
- headers?: Record<string, string>;
3071
- query?: Record<string, string | number>;
3072
- signal?: AbortSignal;
3073
- }): Promise<{
3074
- status: number;
3075
- body: T;
3076
- }>;
2796
+ authorize(target: URL, headers: Headers): void;
3077
2797
  }, {
3078
2798
  found: boolean;
3079
2799
  result: {
@@ -3139,16 +2859,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
3139
2859
  signal?: AbortSignal;
3140
2860
  }) => Promise<import("./schemas.js").GraphPage<T>>;
3141
2861
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
3142
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
3143
- method?: string;
3144
- body?: unknown;
3145
- headers?: Record<string, string>;
3146
- query?: Record<string, string | number>;
3147
- signal?: AbortSignal;
3148
- }): Promise<{
3149
- status: number;
3150
- body: T;
3151
- }>;
2862
+ authorize(target: URL, headers: Headers): void;
3152
2863
  }, import("./schemas.js").GraphPage<{
3153
2864
  [x: string]: unknown;
3154
2865
  id: string;
@@ -3212,16 +2923,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
3212
2923
  signal?: AbortSignal;
3213
2924
  }) => Promise<import("./schemas.js").GraphPage<T>>;
3214
2925
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
3215
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
3216
- method?: string;
3217
- body?: unknown;
3218
- headers?: Record<string, string>;
3219
- query?: Record<string, string | number>;
3220
- signal?: AbortSignal;
3221
- }): Promise<{
3222
- status: number;
3223
- body: T;
3224
- }>;
2926
+ authorize(target: URL, headers: Headers): void;
3225
2927
  }, {
3226
2928
  [x: string]: unknown;
3227
2929
  id: string;
@@ -3232,71 +2934,6 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
3232
2934
  createdDateTime?: string | null | undefined;
3233
2935
  }>> & {
3234
2936
  slug: "getMeetingRecording";
3235
- }) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
3236
- method: z.ZodEnum<{
3237
- GET: "GET";
3238
- POST: "POST";
3239
- PATCH: "PATCH";
3240
- PUT: "PUT";
3241
- DELETE: "DELETE";
3242
- }>;
3243
- path: z.ZodString;
3244
- query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
3245
- body: z.ZodOptional<z.ZodJSONSchema>;
3246
- }, z.core.$strip>, z.ZodObject<{
3247
- status: z.ZodNumber;
3248
- body: z.ZodJSONSchema;
3249
- }, z.core.$strip>, {
3250
- botAppType: "MultiTenant" | "SingleTenant";
3251
- botUsername: string;
3252
- botTenantId?: string | undefined;
3253
- botApiUrl?: string | undefined;
3254
- }, {
3255
- baseUrl: string;
3256
- request: <T>(path: string, schema: z.ZodType<T>, options?: {
3257
- method?: string;
3258
- body?: unknown;
3259
- headers?: Record<string, string>;
3260
- query?: Record<string, string | number>;
3261
- signal?: AbortSignal;
3262
- }) => Promise<T>;
3263
- text(path: string, options?: {
3264
- method?: string;
3265
- body?: unknown;
3266
- headers?: Record<string, string>;
3267
- query?: Record<string, string | number>;
3268
- signal?: AbortSignal;
3269
- }): Promise<string>;
3270
- list: <T>(path: string, schema: z.ZodType<T>, options?: {
3271
- method?: string;
3272
- body?: unknown;
3273
- headers?: Record<string, string>;
3274
- query?: Record<string, string | number>;
3275
- signal?: AbortSignal;
3276
- }) => Promise<T[]>;
3277
- page: <T>(path: string, schema: z.ZodType<T>, options?: {
3278
- method?: string;
3279
- body?: unknown;
3280
- headers?: Record<string, string>;
3281
- query?: Record<string, string | number>;
3282
- signal?: AbortSignal;
3283
- }) => Promise<import("./schemas.js").GraphPage<T>>;
3284
- meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
3285
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
3286
- method?: string;
3287
- body?: unknown;
3288
- headers?: Record<string, string>;
3289
- query?: Record<string, string | number>;
3290
- signal?: AbortSignal;
3291
- }): Promise<{
3292
- status: number;
3293
- body: T;
3294
- }>;
3295
- }, {
3296
- status: number;
3297
- body: z.core.util.JSONType;
3298
- }> & {
3299
- slug: "customApiCall";
3300
2937
  }))[];
3301
2938
  readonly triggers: (({
3302
2939
  slug: string;
@@ -3304,29 +2941,36 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
3304
2941
  description: string;
3305
2942
  input: z.ZodObject<{
3306
2943
  teamId: z.ZodString;
2944
+ channelId: z.ZodString;
3307
2945
  }, z.core.$strip>;
3308
2946
  output?: z.ZodObject<{
3309
2947
  id: z.ZodString;
3310
- displayName: z.ZodString;
3311
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3312
2948
  createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3313
- membershipType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3314
- 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>;
3315
2955
  }, z.core.$loose> | undefined;
3316
2956
  sample?: {
3317
2957
  [x: string]: unknown;
3318
2958
  id: string;
3319
- displayName: string;
3320
- description?: string | null | undefined;
2959
+ body: {
2960
+ [x: string]: unknown;
2961
+ content: string;
2962
+ contentType: string;
2963
+ };
3321
2964
  createdDateTime?: string | null | undefined;
3322
- membershipType?: string | null | undefined;
3323
- isArchived?: boolean | null | undefined;
2965
+ lastModifiedDateTime?: string | null | undefined;
2966
+ chatId?: string | null | undefined;
3324
2967
  } | undefined;
3325
2968
  } & {
3326
2969
  type: "polling";
3327
2970
  schedule?: string;
3328
2971
  run(args: import("frogbot").PieceRunArgs<{
3329
2972
  teamId: string;
2973
+ channelId: string;
3330
2974
  }, {
3331
2975
  botAppType: "MultiTenant" | "SingleTenant";
3332
2976
  botUsername: string;
@@ -3363,68 +3007,55 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
3363
3007
  signal?: AbortSignal;
3364
3008
  }) => Promise<import("./schemas.js").GraphPage<T>>;
3365
3009
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
3366
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
3367
- method?: string;
3368
- body?: unknown;
3369
- headers?: Record<string, string>;
3370
- query?: Record<string, string | number>;
3371
- signal?: AbortSignal;
3372
- }): Promise<{
3373
- status: number;
3374
- body: T;
3375
- }>;
3010
+ authorize(target: URL, headers: Headers): void;
3376
3011
  }> & {
3377
3012
  cursor?: import("frogbot").PieceJSON | undefined;
3378
3013
  }): Promise<{
3379
3014
  events: {
3380
3015
  [x: string]: unknown;
3381
3016
  id: string;
3382
- displayName: string;
3383
- description?: string | null | undefined;
3017
+ body: {
3018
+ [x: string]: unknown;
3019
+ content: string;
3020
+ contentType: string;
3021
+ };
3384
3022
  createdDateTime?: string | null | undefined;
3385
- membershipType?: string | null | undefined;
3386
- isArchived?: boolean | null | undefined;
3023
+ lastModifiedDateTime?: string | null | undefined;
3024
+ chatId?: string | null | undefined;
3387
3025
  }[];
3388
3026
  cursor?: import("frogbot").PieceJSON | undefined;
3389
3027
  }>;
3390
3028
  } & {
3391
- slug: "channelCreated";
3029
+ slug: "channelMessageCreated";
3392
3030
  }) | ({
3393
3031
  slug: string;
3394
3032
  label?: string;
3395
3033
  description: string;
3396
3034
  input: z.ZodObject<{
3397
3035
  teamId: z.ZodString;
3398
- channelId: z.ZodString;
3399
3036
  }, z.core.$strip>;
3400
3037
  output?: z.ZodObject<{
3401
3038
  id: z.ZodString;
3039
+ displayName: z.ZodString;
3040
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3402
3041
  createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3403
- lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3404
- chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3405
- body: z.ZodObject<{
3406
- content: z.ZodString;
3407
- contentType: z.ZodString;
3408
- }, z.core.$loose>;
3042
+ membershipType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3043
+ isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3409
3044
  }, z.core.$loose> | undefined;
3410
3045
  sample?: {
3411
3046
  [x: string]: unknown;
3412
3047
  id: string;
3413
- body: {
3414
- [x: string]: unknown;
3415
- content: string;
3416
- contentType: string;
3417
- };
3048
+ displayName: string;
3049
+ description?: string | null | undefined;
3418
3050
  createdDateTime?: string | null | undefined;
3419
- lastModifiedDateTime?: string | null | undefined;
3420
- chatId?: string | null | undefined;
3051
+ membershipType?: string | null | undefined;
3052
+ isArchived?: boolean | null | undefined;
3421
3053
  } | undefined;
3422
3054
  } & {
3423
3055
  type: "polling";
3424
3056
  schedule?: string;
3425
3057
  run(args: import("frogbot").PieceRunArgs<{
3426
3058
  teamId: string;
3427
- channelId: string;
3428
3059
  }, {
3429
3060
  botAppType: "MultiTenant" | "SingleTenant";
3430
3061
  botUsername: string;
@@ -3461,35 +3092,23 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
3461
3092
  signal?: AbortSignal;
3462
3093
  }) => Promise<import("./schemas.js").GraphPage<T>>;
3463
3094
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
3464
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
3465
- method?: string;
3466
- body?: unknown;
3467
- headers?: Record<string, string>;
3468
- query?: Record<string, string | number>;
3469
- signal?: AbortSignal;
3470
- }): Promise<{
3471
- status: number;
3472
- body: T;
3473
- }>;
3095
+ authorize(target: URL, headers: Headers): void;
3474
3096
  }> & {
3475
3097
  cursor?: import("frogbot").PieceJSON | undefined;
3476
3098
  }): Promise<{
3477
3099
  events: {
3478
3100
  [x: string]: unknown;
3479
3101
  id: string;
3480
- body: {
3481
- [x: string]: unknown;
3482
- content: string;
3483
- contentType: string;
3484
- };
3102
+ displayName: string;
3103
+ description?: string | null | undefined;
3485
3104
  createdDateTime?: string | null | undefined;
3486
- lastModifiedDateTime?: string | null | undefined;
3487
- chatId?: string | null | undefined;
3105
+ membershipType?: string | null | undefined;
3106
+ isArchived?: boolean | null | undefined;
3488
3107
  }[];
3489
3108
  cursor?: import("frogbot").PieceJSON | undefined;
3490
3109
  }>;
3491
3110
  } & {
3492
- slug: "channelMessageCreated";
3111
+ slug: "channelCreated";
3493
3112
  }) | ({
3494
3113
  slug: string;
3495
3114
  label?: string;
@@ -3567,16 +3186,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
3567
3186
  signal?: AbortSignal;
3568
3187
  }) => Promise<import("./schemas.js").GraphPage<T>>;
3569
3188
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
3570
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
3571
- method?: string;
3572
- body?: unknown;
3573
- headers?: Record<string, string>;
3574
- query?: Record<string, string | number>;
3575
- signal?: AbortSignal;
3576
- }): Promise<{
3577
- status: number;
3578
- body: T;
3579
- }>;
3189
+ authorize(target: URL, headers: Headers): void;
3580
3190
  }> & {
3581
3191
  cursor?: import("frogbot").PieceJSON | undefined;
3582
3192
  }): Promise<{
@@ -3669,16 +3279,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
3669
3279
  signal?: AbortSignal;
3670
3280
  }) => Promise<import("./schemas.js").GraphPage<T>>;
3671
3281
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
3672
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
3673
- method?: string;
3674
- body?: unknown;
3675
- headers?: Record<string, string>;
3676
- query?: Record<string, string | number>;
3677
- signal?: AbortSignal;
3678
- }): Promise<{
3679
- status: number;
3680
- body: T;
3681
- }>;
3282
+ authorize(target: URL, headers: Headers): void;
3682
3283
  }> & {
3683
3284
  cursor?: import("frogbot").PieceJSON | undefined;
3684
3285
  }): Promise<{
@@ -3744,16 +3345,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
3744
3345
  signal?: AbortSignal;
3745
3346
  }) => Promise<import("./schemas.js").GraphPage<T>>;
3746
3347
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
3747
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
3748
- method?: string;
3749
- body?: unknown;
3750
- headers?: Record<string, string>;
3751
- query?: Record<string, string | number>;
3752
- signal?: AbortSignal;
3753
- }): Promise<{
3754
- status: number;
3755
- body: T;
3756
- }>;
3348
+ authorize(target: URL, headers: Headers): void;
3757
3349
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
3758
3350
  } & {
3759
3351
  slug: "messageReceived";
@@ -3803,16 +3395,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
3803
3395
  signal?: AbortSignal;
3804
3396
  }) => Promise<import("./schemas.js").GraphPage<T>>;
3805
3397
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
3806
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
3807
- method?: string;
3808
- body?: unknown;
3809
- headers?: Record<string, string>;
3810
- query?: Record<string, string | number>;
3811
- signal?: AbortSignal;
3812
- }): Promise<{
3813
- status: number;
3814
- body: T;
3815
- }>;
3398
+ authorize(target: URL, headers: Headers): void;
3816
3399
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
3817
3400
  } & {
3818
3401
  slug: "messageReactionReceived";
@@ -3862,16 +3445,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
3862
3445
  signal?: AbortSignal;
3863
3446
  }) => Promise<import("./schemas.js").GraphPage<T>>;
3864
3447
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
3865
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
3866
- method?: string;
3867
- body?: unknown;
3868
- headers?: Record<string, string>;
3869
- query?: Record<string, string | number>;
3870
- signal?: AbortSignal;
3871
- }): Promise<{
3872
- status: number;
3873
- body: T;
3874
- }>;
3448
+ authorize(target: URL, headers: Headers): void;
3875
3449
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
3876
3450
  } & {
3877
3451
  slug: "cardActionReceived";
@@ -3921,16 +3495,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
3921
3495
  signal?: AbortSignal;
3922
3496
  }) => Promise<import("./schemas.js").GraphPage<T>>;
3923
3497
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
3924
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
3925
- method?: string;
3926
- body?: unknown;
3927
- headers?: Record<string, string>;
3928
- query?: Record<string, string | number>;
3929
- signal?: AbortSignal;
3930
- }): Promise<{
3931
- status: number;
3932
- body: T;
3933
- }>;
3498
+ authorize(target: URL, headers: Headers): void;
3934
3499
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
3935
3500
  } & {
3936
3501
  slug: "conversationUpdated";
@@ -3980,16 +3545,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
3980
3545
  signal?: AbortSignal;
3981
3546
  }) => Promise<import("./schemas.js").GraphPage<T>>;
3982
3547
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
3983
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
3984
- method?: string;
3985
- body?: unknown;
3986
- headers?: Record<string, string>;
3987
- query?: Record<string, string | number>;
3988
- signal?: AbortSignal;
3989
- }): Promise<{
3990
- status: number;
3991
- body: T;
3992
- }>;
3548
+ authorize(target: URL, headers: Headers): void;
3993
3549
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
3994
3550
  } & {
3995
3551
  slug: "installationUpdated";
@@ -4039,16 +3595,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
4039
3595
  signal?: AbortSignal;
4040
3596
  }) => Promise<import("./schemas.js").GraphPage<T>>;
4041
3597
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
4042
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
4043
- method?: string;
4044
- body?: unknown;
4045
- headers?: Record<string, string>;
4046
- query?: Record<string, string | number>;
4047
- signal?: AbortSignal;
4048
- }): Promise<{
4049
- status: number;
4050
- body: T;
4051
- }>;
3598
+ authorize(target: URL, headers: Headers): void;
4052
3599
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
4053
3600
  } & {
4054
3601
  slug: "dialogOpened";
@@ -4098,16 +3645,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
4098
3645
  signal?: AbortSignal;
4099
3646
  }) => Promise<import("./schemas.js").GraphPage<T>>;
4100
3647
  meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
4101
- custom<T>(path: string, schema: z.ZodType<T>, options?: {
4102
- method?: string;
4103
- body?: unknown;
4104
- headers?: Record<string, string>;
4105
- query?: Record<string, string | number>;
4106
- signal?: AbortSignal;
4107
- }): Promise<{
4108
- status: number;
4109
- body: T;
4110
- }>;
3648
+ authorize(target: URL, headers: Headers): void;
4111
3649
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
4112
3650
  } & {
4113
3651
  slug: "dialogSubmitted";