@frogbotai/piece-microsoft-teams 0.31.0 → 0.33.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,16 +219,7 @@ 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
225
  readonly actions: ((import("frogbot").PieceActionDefinition<z.ZodObject<{
@@ -253,16 +269,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
253
269
  signal?: AbortSignal;
254
270
  }) => Promise<import("./schemas.js").GraphPage<T>>;
255
271
  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
- }>;
272
+ authorize(target: URL, headers: Headers): void;
266
273
  }, {
267
274
  [x: string]: unknown;
268
275
  id: string;
@@ -320,16 +327,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
320
327
  signal?: AbortSignal;
321
328
  }) => Promise<import("./schemas.js").GraphPage<T>>;
322
329
  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
- }>;
330
+ authorize(target: URL, headers: Headers): void;
333
331
  }, {
334
332
  [x: string]: unknown;
335
333
  id: string;
@@ -393,16 +391,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
393
391
  signal?: AbortSignal;
394
392
  }) => Promise<import("./schemas.js").GraphPage<T>>;
395
393
  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
- }>;
394
+ authorize(target: URL, headers: Headers): void;
406
395
  }, {
407
396
  [x: string]: unknown;
408
397
  id: string;
@@ -468,16 +457,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
468
457
  signal?: AbortSignal;
469
458
  }) => Promise<import("./schemas.js").GraphPage<T>>;
470
459
  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
- }>;
460
+ authorize(target: URL, headers: Headers): void;
481
461
  }, {
482
462
  [x: string]: unknown;
483
463
  id: string;
@@ -545,16 +525,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
545
525
  signal?: AbortSignal;
546
526
  }) => Promise<import("./schemas.js").GraphPage<T>>;
547
527
  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
- }>;
528
+ authorize(target: URL, headers: Headers): void;
558
529
  }, {
559
530
  [x: string]: unknown;
560
531
  id: string;
@@ -641,16 +612,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
641
612
  signal?: AbortSignal;
642
613
  }) => Promise<import("./schemas.js").GraphPage<T>>;
643
614
  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
- }>;
615
+ authorize(target: URL, headers: Headers): void;
654
616
  }, {
655
617
  chat: {
656
618
  [x: string]: unknown;
@@ -729,16 +691,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
729
691
  signal?: AbortSignal;
730
692
  }) => Promise<import("./schemas.js").GraphPage<T>>;
731
693
  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
- }>;
694
+ authorize(target: URL, headers: Headers): void;
742
695
  }, {
743
696
  [x: string]: unknown;
744
697
  id: string;
@@ -795,16 +748,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
795
748
  signal?: AbortSignal;
796
749
  }) => Promise<import("./schemas.js").GraphPage<T>>;
797
750
  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
- }>;
751
+ authorize(target: URL, headers: Headers): void;
808
752
  }, {
809
753
  success: true;
810
754
  messageId: string;
@@ -861,16 +805,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
861
805
  signal?: AbortSignal;
862
806
  }) => Promise<import("./schemas.js").GraphPage<T>>;
863
807
  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
- }>;
808
+ authorize(target: URL, headers: Headers): void;
874
809
  }, {
875
810
  [x: string]: unknown;
876
811
  id: string;
@@ -933,16 +868,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
933
868
  signal?: AbortSignal;
934
869
  }) => Promise<import("./schemas.js").GraphPage<T>>;
935
870
  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
- }>;
871
+ authorize(target: URL, headers: Headers): void;
946
872
  }, {
947
873
  found: boolean;
948
874
  result: {
@@ -1007,16 +933,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
1007
933
  signal?: AbortSignal;
1008
934
  }) => Promise<import("./schemas.js").GraphPage<T>>;
1009
935
  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
- }>;
936
+ authorize(target: URL, headers: Headers): void;
1020
937
  }, {
1021
938
  found: boolean;
1022
939
  result: {
@@ -1082,16 +999,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
1082
999
  signal?: AbortSignal;
1083
1000
  }) => Promise<import("./schemas.js").GraphPage<T>>;
1084
1001
  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
- }>;
1002
+ authorize(target: URL, headers: Headers): void;
1095
1003
  }, import("./schemas.js").GraphPage<{
1096
1004
  [x: string]: unknown;
1097
1005
  id: string;
@@ -1155,16 +1063,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
1155
1063
  signal?: AbortSignal;
1156
1064
  }) => Promise<import("./schemas.js").GraphPage<T>>;
1157
1065
  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
- }>;
1066
+ authorize(target: URL, headers: Headers): void;
1168
1067
  }, {
1169
1068
  [x: string]: unknown;
1170
1069
  id: string;
@@ -1175,21 +1074,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
1175
1074
  createdDateTime?: string | null | undefined;
1176
1075
  }>> & {
1177
1076
  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>, {
1077
+ }) | import("frogbot/pieces").CustomApiCallAction<{
1193
1078
  botAppType: "MultiTenant" | "SingleTenant";
1194
1079
  botUsername: string;
1195
1080
  botTenantId?: string | undefined;
@@ -1225,22 +1110,8 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
1225
1110
  signal?: AbortSignal;
1226
1111
  }) => Promise<import("./schemas.js").GraphPage<T>>;
1227
1112
  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
- }))[];
1113
+ authorize(target: URL, headers: Headers): void;
1114
+ }>)[];
1244
1115
  readonly triggers: (({
1245
1116
  slug: string;
1246
1117
  label?: string;
@@ -1306,16 +1177,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
1306
1177
  signal?: AbortSignal;
1307
1178
  }) => Promise<import("./schemas.js").GraphPage<T>>;
1308
1179
  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
- }>;
1180
+ authorize(target: URL, headers: Headers): void;
1319
1181
  }> & {
1320
1182
  cursor?: import("frogbot").PieceJSON | undefined;
1321
1183
  }): Promise<{
@@ -1404,16 +1266,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
1404
1266
  signal?: AbortSignal;
1405
1267
  }) => Promise<import("./schemas.js").GraphPage<T>>;
1406
1268
  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
- }>;
1269
+ authorize(target: URL, headers: Headers): void;
1417
1270
  }> & {
1418
1271
  cursor?: import("frogbot").PieceJSON | undefined;
1419
1272
  }): Promise<{
@@ -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,16 +2042,7 @@ 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
2048
  readonly actions: ((import("frogbot").PieceActionDefinition<z.ZodObject<{
@@ -2304,16 +2092,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2304
2092
  signal?: AbortSignal;
2305
2093
  }) => Promise<import("./schemas.js").GraphPage<T>>;
2306
2094
  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
- }>;
2095
+ authorize(target: URL, headers: Headers): void;
2317
2096
  }, {
2318
2097
  [x: string]: unknown;
2319
2098
  id: string;
@@ -2371,16 +2150,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2371
2150
  signal?: AbortSignal;
2372
2151
  }) => Promise<import("./schemas.js").GraphPage<T>>;
2373
2152
  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
- }>;
2153
+ authorize(target: URL, headers: Headers): void;
2384
2154
  }, {
2385
2155
  [x: string]: unknown;
2386
2156
  id: string;
@@ -2444,16 +2214,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2444
2214
  signal?: AbortSignal;
2445
2215
  }) => Promise<import("./schemas.js").GraphPage<T>>;
2446
2216
  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
- }>;
2217
+ authorize(target: URL, headers: Headers): void;
2457
2218
  }, {
2458
2219
  [x: string]: unknown;
2459
2220
  id: string;
@@ -2519,16 +2280,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2519
2280
  signal?: AbortSignal;
2520
2281
  }) => Promise<import("./schemas.js").GraphPage<T>>;
2521
2282
  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
- }>;
2283
+ authorize(target: URL, headers: Headers): void;
2532
2284
  }, {
2533
2285
  [x: string]: unknown;
2534
2286
  id: string;
@@ -2596,16 +2348,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2596
2348
  signal?: AbortSignal;
2597
2349
  }) => Promise<import("./schemas.js").GraphPage<T>>;
2598
2350
  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
- }>;
2351
+ authorize(target: URL, headers: Headers): void;
2609
2352
  }, {
2610
2353
  [x: string]: unknown;
2611
2354
  id: string;
@@ -2692,16 +2435,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2692
2435
  signal?: AbortSignal;
2693
2436
  }) => Promise<import("./schemas.js").GraphPage<T>>;
2694
2437
  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
- }>;
2438
+ authorize(target: URL, headers: Headers): void;
2705
2439
  }, {
2706
2440
  chat: {
2707
2441
  [x: string]: unknown;
@@ -2780,16 +2514,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2780
2514
  signal?: AbortSignal;
2781
2515
  }) => Promise<import("./schemas.js").GraphPage<T>>;
2782
2516
  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
- }>;
2517
+ authorize(target: URL, headers: Headers): void;
2793
2518
  }, {
2794
2519
  [x: string]: unknown;
2795
2520
  id: string;
@@ -2846,16 +2571,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2846
2571
  signal?: AbortSignal;
2847
2572
  }) => Promise<import("./schemas.js").GraphPage<T>>;
2848
2573
  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
- }>;
2574
+ authorize(target: URL, headers: Headers): void;
2859
2575
  }, {
2860
2576
  success: true;
2861
2577
  messageId: string;
@@ -2912,16 +2628,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2912
2628
  signal?: AbortSignal;
2913
2629
  }) => Promise<import("./schemas.js").GraphPage<T>>;
2914
2630
  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
- }>;
2631
+ authorize(target: URL, headers: Headers): void;
2925
2632
  }, {
2926
2633
  [x: string]: unknown;
2927
2634
  id: string;
@@ -2984,16 +2691,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2984
2691
  signal?: AbortSignal;
2985
2692
  }) => Promise<import("./schemas.js").GraphPage<T>>;
2986
2693
  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
- }>;
2694
+ authorize(target: URL, headers: Headers): void;
2997
2695
  }, {
2998
2696
  found: boolean;
2999
2697
  result: {
@@ -3058,16 +2756,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
3058
2756
  signal?: AbortSignal;
3059
2757
  }) => Promise<import("./schemas.js").GraphPage<T>>;
3060
2758
  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
- }>;
2759
+ authorize(target: URL, headers: Headers): void;
3071
2760
  }, {
3072
2761
  found: boolean;
3073
2762
  result: {
@@ -3133,16 +2822,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
3133
2822
  signal?: AbortSignal;
3134
2823
  }) => Promise<import("./schemas.js").GraphPage<T>>;
3135
2824
  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
- }>;
2825
+ authorize(target: URL, headers: Headers): void;
3146
2826
  }, import("./schemas.js").GraphPage<{
3147
2827
  [x: string]: unknown;
3148
2828
  id: string;
@@ -3206,16 +2886,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
3206
2886
  signal?: AbortSignal;
3207
2887
  }) => Promise<import("./schemas.js").GraphPage<T>>;
3208
2888
  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
- }>;
2889
+ authorize(target: URL, headers: Headers): void;
3219
2890
  }, {
3220
2891
  [x: string]: unknown;
3221
2892
  id: string;
@@ -3226,21 +2897,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
3226
2897
  createdDateTime?: string | null | undefined;
3227
2898
  }>> & {
3228
2899
  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>, {
2900
+ }) | import("frogbot/pieces").CustomApiCallAction<{
3244
2901
  botAppType: "MultiTenant" | "SingleTenant";
3245
2902
  botUsername: string;
3246
2903
  botTenantId?: string | undefined;
@@ -3276,22 +2933,8 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
3276
2933
  signal?: AbortSignal;
3277
2934
  }) => Promise<import("./schemas.js").GraphPage<T>>;
3278
2935
  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
- }))[];
2936
+ authorize(target: URL, headers: Headers): void;
2937
+ }>)[];
3295
2938
  readonly triggers: (({
3296
2939
  slug: string;
3297
2940
  label?: string;
@@ -3357,16 +3000,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
3357
3000
  signal?: AbortSignal;
3358
3001
  }) => Promise<import("./schemas.js").GraphPage<T>>;
3359
3002
  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
- }>;
3003
+ authorize(target: URL, headers: Headers): void;
3370
3004
  }> & {
3371
3005
  cursor?: import("frogbot").PieceJSON | undefined;
3372
3006
  }): Promise<{
@@ -3455,16 +3089,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
3455
3089
  signal?: AbortSignal;
3456
3090
  }) => Promise<import("./schemas.js").GraphPage<T>>;
3457
3091
  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
- }>;
3092
+ authorize(target: URL, headers: Headers): void;
3468
3093
  }> & {
3469
3094
  cursor?: import("frogbot").PieceJSON | undefined;
3470
3095
  }): Promise<{
@@ -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";