@frogbotai/piece-microsoft-teams 0.38.0 → 0.40.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
@@ -1,11 +1,12 @@
1
+ import { type MicrosoftEnvironment } from '@frogbotai/piece-microsoft';
1
2
  import { z } from 'zod';
2
3
  import { FrogBotTeamsAdapter } from './adapter.js';
3
4
  import { createMicrosoftTeamsClient } from './client.js';
4
- import { microsoftTeamsEnvironment, microsoftTeamsScopes } from './config.js';
5
+ import { microsoftTeamsScopes } from './config.js';
5
6
  export declare const microsoftTeamsActions: string[];
6
7
  export declare const microsoftTeamsTriggers: string[];
7
8
  export { microsoftTeamsScopes };
8
- export declare function defineMicrosoftTeams(environment?: z.input<typeof microsoftTeamsEnvironment>): import("frogbot").PieceFactory<{
9
+ export declare function defineMicrosoftTeams(environment?: MicrosoftEnvironment): import("frogbot").PieceFactory<{
9
10
  readonly slug: "microsoft-teams";
10
11
  readonly label: "Microsoft Teams";
11
12
  readonly admin: {
@@ -30,15 +31,8 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
30
31
  }, z.core.$strip>;
31
32
  readonly client: typeof createMicrosoftTeamsClient;
32
33
  readonly oauth: {
33
- authorizationUrl: string;
34
- tokenUrl: string;
35
34
  scopes: {
36
35
  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
36
  readonly 'Channel.Create': "Channel.Create";
43
37
  readonly 'Channel.ReadBasic.All': "Channel.ReadBasic.All";
44
38
  readonly 'ChannelMessage.Send': "ChannelMessage.Send";
@@ -72,12 +66,14 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
72
66
  readonly 'Presence.Read': "Presence.Read";
73
67
  readonly 'OnlineMeetings.Read': "OnlineMeetings.Read";
74
68
  readonly 'OnlineMeetings.ReadWrite': "OnlineMeetings.ReadWrite";
69
+ readonly openid: "openid";
70
+ readonly email: "email";
71
+ readonly profile: "profile";
72
+ readonly offline_access: "offline_access";
73
+ readonly 'User.Read': "User.Read";
75
74
  };
76
75
  defaults: string[];
77
- required: string[];
78
- };
79
- params: {
80
- prompt: string;
76
+ required: ("offline_access" | "User.Read")[];
81
77
  };
82
78
  toAuth: ({ tokens }: {
83
79
  tokens: import("frogbot").OAuthTokens;
@@ -86,41 +82,14 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
86
82
  cloud: string;
87
83
  tenantId: string;
88
84
  };
89
- account({ client }: {
85
+ authorizationUrl: string;
86
+ tokenUrl: string;
87
+ params: {
88
+ prompt: string;
89
+ };
90
+ account({ tokens, req }: {
90
91
  tokens: import("frogbot").OAuthTokens;
91
- client: {
92
- baseUrl: string;
93
- request: <T>(path: string, schema: z.ZodType<T>, options?: {
94
- method?: string;
95
- body?: unknown;
96
- headers?: Record<string, string>;
97
- query?: Record<string, string | number>;
98
- signal?: AbortSignal;
99
- }) => Promise<T>;
100
- text(path: string, options?: {
101
- method?: string;
102
- body?: unknown;
103
- headers?: Record<string, string>;
104
- query?: Record<string, string | number>;
105
- signal?: AbortSignal;
106
- }): Promise<string>;
107
- list: <T>(path: string, schema: z.ZodType<T>, options?: {
108
- method?: string;
109
- body?: unknown;
110
- headers?: Record<string, string>;
111
- query?: Record<string, string | number>;
112
- signal?: AbortSignal;
113
- }) => Promise<T[]>;
114
- page: <T>(path: string, schema: z.ZodType<T>, options?: {
115
- method?: string;
116
- body?: unknown;
117
- headers?: Record<string, string>;
118
- query?: Record<string, string | number>;
119
- signal?: AbortSignal;
120
- }) => Promise<import("./schemas.js").GraphPage<T>>;
121
- meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
122
- authorize(target: URL, headers: Headers): void;
123
- };
92
+ client: unknown;
124
93
  req: import("frogbot").FrogBotRequest;
125
94
  }): Promise<{
126
95
  id: string;
@@ -154,7 +123,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
154
123
  identity({ author, req }: {
155
124
  author: import("chat").Author;
156
125
  client: {
157
- baseUrl: string;
126
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
158
127
  request: <T>(path: string, schema: z.ZodType<T>, options?: {
159
128
  method?: string;
160
129
  body?: unknown;
@@ -189,7 +158,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
189
158
  req: import("frogbot").FrogBotRequest;
190
159
  }): Promise<(Record<string, unknown> & import("frogbot").TypeWithID) | null>;
191
160
  questions: import("frogbot/pieces").PieceChannelQuestions<{
192
- baseUrl: string;
161
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
193
162
  request: <T>(path: string, schema: z.ZodType<T>, options?: {
194
163
  method?: string;
195
164
  body?: unknown;
@@ -239,7 +208,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
239
208
  botTenantId?: string | undefined;
240
209
  botApiUrl?: string | undefined;
241
210
  }, {
242
- baseUrl: string;
211
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
243
212
  request: <T>(path: string, schema: z.ZodType<T>, options?: {
244
213
  method?: string;
245
214
  body?: unknown;
@@ -297,7 +266,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
297
266
  botTenantId?: string | undefined;
298
267
  botApiUrl?: string | undefined;
299
268
  }, {
300
- baseUrl: string;
269
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
301
270
  request: <T>(path: string, schema: z.ZodType<T>, options?: {
302
271
  method?: string;
303
272
  body?: unknown;
@@ -361,7 +330,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
361
330
  botTenantId?: string | undefined;
362
331
  botApiUrl?: string | undefined;
363
332
  }, {
364
- baseUrl: string;
333
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
365
334
  request: <T>(path: string, schema: z.ZodType<T>, options?: {
366
335
  method?: string;
367
336
  body?: unknown;
@@ -427,7 +396,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
427
396
  botTenantId?: string | undefined;
428
397
  botApiUrl?: string | undefined;
429
398
  }, {
430
- baseUrl: string;
399
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
431
400
  request: <T>(path: string, schema: z.ZodType<T>, options?: {
432
401
  method?: string;
433
402
  body?: unknown;
@@ -495,7 +464,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
495
464
  botTenantId?: string | undefined;
496
465
  botApiUrl?: string | undefined;
497
466
  }, {
498
- baseUrl: string;
467
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
499
468
  request: <T>(path: string, schema: z.ZodType<T>, options?: {
500
469
  method?: string;
501
470
  body?: unknown;
@@ -582,7 +551,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
582
551
  botTenantId?: string | undefined;
583
552
  botApiUrl?: string | undefined;
584
553
  }, {
585
- baseUrl: string;
554
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
586
555
  request: <T>(path: string, schema: z.ZodType<T>, options?: {
587
556
  method?: string;
588
557
  body?: unknown;
@@ -661,7 +630,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
661
630
  botTenantId?: string | undefined;
662
631
  botApiUrl?: string | undefined;
663
632
  }, {
664
- baseUrl: string;
633
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
665
634
  request: <T>(path: string, schema: z.ZodType<T>, options?: {
666
635
  method?: string;
667
636
  body?: unknown;
@@ -718,7 +687,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
718
687
  botTenantId?: string | undefined;
719
688
  botApiUrl?: string | undefined;
720
689
  }, {
721
- baseUrl: string;
690
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
722
691
  request: <T>(path: string, schema: z.ZodType<T>, options?: {
723
692
  method?: string;
724
693
  body?: unknown;
@@ -775,7 +744,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
775
744
  botTenantId?: string | undefined;
776
745
  botApiUrl?: string | undefined;
777
746
  }, {
778
- baseUrl: string;
747
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
779
748
  request: <T>(path: string, schema: z.ZodType<T>, options?: {
780
749
  method?: string;
781
750
  body?: unknown;
@@ -838,7 +807,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
838
807
  botTenantId?: string | undefined;
839
808
  botApiUrl?: string | undefined;
840
809
  }, {
841
- baseUrl: string;
810
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
842
811
  request: <T>(path: string, schema: z.ZodType<T>, options?: {
843
812
  method?: string;
844
813
  body?: unknown;
@@ -884,8 +853,8 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
884
853
  slug: "findChannel";
885
854
  }) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
886
855
  searchBy: z.ZodDefault<z.ZodEnum<{
887
- name: "name";
888
856
  email: "email";
857
+ name: "name";
889
858
  }>>;
890
859
  searchValue: z.ZodString;
891
860
  teamId: z.ZodString;
@@ -903,7 +872,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
903
872
  botTenantId?: string | undefined;
904
873
  botApiUrl?: string | undefined;
905
874
  }, {
906
- baseUrl: string;
875
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
907
876
  request: <T>(path: string, schema: z.ZodType<T>, options?: {
908
877
  method?: string;
909
878
  body?: unknown;
@@ -969,7 +938,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
969
938
  botTenantId?: string | undefined;
970
939
  botApiUrl?: string | undefined;
971
940
  }, {
972
- baseUrl: string;
941
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
973
942
  request: <T>(path: string, schema: z.ZodType<T>, options?: {
974
943
  method?: string;
975
944
  body?: unknown;
@@ -1033,7 +1002,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
1033
1002
  botTenantId?: string | undefined;
1034
1003
  botApiUrl?: string | undefined;
1035
1004
  }, {
1036
- baseUrl: string;
1005
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
1037
1006
  request: <T>(path: string, schema: z.ZodType<T>, options?: {
1038
1007
  method?: string;
1039
1008
  body?: unknown;
@@ -1080,7 +1049,7 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
1080
1049
  botTenantId?: string | undefined;
1081
1050
  botApiUrl?: string | undefined;
1082
1051
  }, {
1083
- baseUrl: string;
1052
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
1084
1053
  request: <T>(path: string, schema: z.ZodType<T>, options?: {
1085
1054
  method?: string;
1086
1055
  body?: unknown;
@@ -1139,46 +1108,51 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
1139
1108
  } & {
1140
1109
  type: "polling";
1141
1110
  schedule?: string;
1142
- run(args: import("frogbot").PieceRunArgs<{
1143
- teamId: string;
1144
- }, {
1145
- botAppType: "MultiTenant" | "SingleTenant";
1146
- botUsername: string;
1147
- botTenantId?: string | undefined;
1148
- botApiUrl?: string | undefined;
1149
- }, {
1150
- baseUrl: string;
1151
- request: <T>(path: string, schema: z.ZodType<T>, options?: {
1152
- method?: string;
1153
- body?: unknown;
1154
- headers?: Record<string, string>;
1155
- query?: Record<string, string | number>;
1156
- signal?: AbortSignal;
1157
- }) => Promise<T>;
1158
- text(path: string, options?: {
1159
- method?: string;
1160
- body?: unknown;
1161
- headers?: Record<string, string>;
1162
- query?: Record<string, string | number>;
1163
- signal?: AbortSignal;
1164
- }): Promise<string>;
1165
- list: <T>(path: string, schema: z.ZodType<T>, options?: {
1166
- method?: string;
1167
- body?: unknown;
1168
- headers?: Record<string, string>;
1169
- query?: Record<string, string | number>;
1170
- signal?: AbortSignal;
1171
- }) => Promise<T[]>;
1172
- page: <T>(path: string, schema: z.ZodType<T>, options?: {
1173
- method?: string;
1174
- body?: unknown;
1175
- headers?: Record<string, string>;
1176
- query?: Record<string, string | number>;
1177
- signal?: AbortSignal;
1178
- }) => Promise<import("./schemas.js").GraphPage<T>>;
1179
- meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1180
- authorize(target: URL, headers: Headers): void;
1181
- }> & {
1111
+ run(args: {
1112
+ input: {
1113
+ teamId: string;
1114
+ };
1115
+ options: {
1116
+ botAppType: "MultiTenant" | "SingleTenant";
1117
+ botUsername: string;
1118
+ botTenantId?: string | undefined;
1119
+ botApiUrl?: string | undefined;
1120
+ };
1121
+ client: {
1122
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
1123
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1124
+ method?: string;
1125
+ body?: unknown;
1126
+ headers?: Record<string, string>;
1127
+ query?: Record<string, string | number>;
1128
+ signal?: AbortSignal;
1129
+ }) => Promise<T>;
1130
+ text(path: string, options?: {
1131
+ method?: string;
1132
+ body?: unknown;
1133
+ headers?: Record<string, string>;
1134
+ query?: Record<string, string | number>;
1135
+ signal?: AbortSignal;
1136
+ }): Promise<string>;
1137
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
1138
+ method?: string;
1139
+ body?: unknown;
1140
+ headers?: Record<string, string>;
1141
+ query?: Record<string, string | number>;
1142
+ signal?: AbortSignal;
1143
+ }) => Promise<T[]>;
1144
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
1145
+ method?: string;
1146
+ body?: unknown;
1147
+ headers?: Record<string, string>;
1148
+ query?: Record<string, string | number>;
1149
+ signal?: AbortSignal;
1150
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
1151
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1152
+ authorize(target: URL, headers: Headers): void;
1153
+ };
1154
+ req: import("frogbot").FrogBotRequest;
1155
+ } & {
1182
1156
  cursor?: import("frogbot").PieceJSON | undefined;
1183
1157
  }): Promise<{
1184
1158
  events: {
@@ -1227,47 +1201,52 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
1227
1201
  } & {
1228
1202
  type: "polling";
1229
1203
  schedule?: string;
1230
- run(args: import("frogbot").PieceRunArgs<{
1231
- teamId: string;
1232
- channelId: string;
1233
- }, {
1234
- botAppType: "MultiTenant" | "SingleTenant";
1235
- botUsername: string;
1236
- botTenantId?: string | undefined;
1237
- botApiUrl?: string | undefined;
1238
- }, {
1239
- baseUrl: string;
1240
- request: <T>(path: string, schema: z.ZodType<T>, options?: {
1241
- method?: string;
1242
- body?: unknown;
1243
- headers?: Record<string, string>;
1244
- query?: Record<string, string | number>;
1245
- signal?: AbortSignal;
1246
- }) => Promise<T>;
1247
- text(path: string, options?: {
1248
- method?: string;
1249
- body?: unknown;
1250
- headers?: Record<string, string>;
1251
- query?: Record<string, string | number>;
1252
- signal?: AbortSignal;
1253
- }): Promise<string>;
1254
- list: <T>(path: string, schema: z.ZodType<T>, options?: {
1255
- method?: string;
1256
- body?: unknown;
1257
- headers?: Record<string, string>;
1258
- query?: Record<string, string | number>;
1259
- signal?: AbortSignal;
1260
- }) => Promise<T[]>;
1261
- page: <T>(path: string, schema: z.ZodType<T>, options?: {
1262
- method?: string;
1263
- body?: unknown;
1264
- headers?: Record<string, string>;
1265
- query?: Record<string, string | number>;
1266
- signal?: AbortSignal;
1267
- }) => Promise<import("./schemas.js").GraphPage<T>>;
1268
- meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1269
- authorize(target: URL, headers: Headers): void;
1270
- }> & {
1204
+ run(args: {
1205
+ input: {
1206
+ teamId: string;
1207
+ channelId: string;
1208
+ };
1209
+ options: {
1210
+ botAppType: "MultiTenant" | "SingleTenant";
1211
+ botUsername: string;
1212
+ botTenantId?: string | undefined;
1213
+ botApiUrl?: string | undefined;
1214
+ };
1215
+ client: {
1216
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
1217
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1218
+ method?: string;
1219
+ body?: unknown;
1220
+ headers?: Record<string, string>;
1221
+ query?: Record<string, string | number>;
1222
+ signal?: AbortSignal;
1223
+ }) => Promise<T>;
1224
+ text(path: string, options?: {
1225
+ method?: string;
1226
+ body?: unknown;
1227
+ headers?: Record<string, string>;
1228
+ query?: Record<string, string | number>;
1229
+ signal?: AbortSignal;
1230
+ }): Promise<string>;
1231
+ list: <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<T[]>;
1238
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
1239
+ method?: string;
1240
+ body?: unknown;
1241
+ headers?: Record<string, string>;
1242
+ query?: Record<string, string | number>;
1243
+ signal?: AbortSignal;
1244
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
1245
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1246
+ authorize(target: URL, headers: Headers): void;
1247
+ };
1248
+ req: import("frogbot").FrogBotRequest;
1249
+ } & {
1271
1250
  cursor?: import("frogbot").PieceJSON | undefined;
1272
1251
  }): Promise<{
1273
1252
  events: {
@@ -1327,76 +1306,81 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
1327
1306
  } & {
1328
1307
  type: "polling";
1329
1308
  schedule?: string;
1330
- run(args: import("frogbot").PieceRunArgs<Record<string, never>, {
1331
- botAppType: "MultiTenant" | "SingleTenant";
1332
- botUsername: string;
1333
- botTenantId?: string | undefined;
1334
- botApiUrl?: string | undefined;
1335
- }, {
1336
- baseUrl: string;
1337
- request: <T>(path: string, schema: z.ZodType<T>, options?: {
1338
- method?: string;
1339
- body?: unknown;
1340
- headers?: Record<string, string>;
1341
- query?: Record<string, string | number>;
1342
- signal?: AbortSignal;
1343
- }) => Promise<T>;
1344
- text(path: string, options?: {
1345
- method?: string;
1346
- body?: unknown;
1347
- headers?: Record<string, string>;
1348
- query?: Record<string, string | number>;
1349
- signal?: AbortSignal;
1350
- }): Promise<string>;
1351
- list: <T>(path: string, schema: z.ZodType<T>, options?: {
1352
- method?: string;
1353
- body?: unknown;
1354
- headers?: Record<string, string>;
1355
- query?: Record<string, string | number>;
1356
- signal?: AbortSignal;
1357
- }) => Promise<T[]>;
1358
- page: <T>(path: string, schema: z.ZodType<T>, options?: {
1359
- method?: string;
1360
- body?: unknown;
1361
- headers?: Record<string, string>;
1362
- query?: Record<string, string | number>;
1363
- signal?: AbortSignal;
1364
- }) => Promise<import("./schemas.js").GraphPage<T>>;
1365
- meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1366
- authorize(target: URL, headers: Headers): void;
1367
- }> & {
1368
- cursor?: import("frogbot").PieceJSON | undefined;
1369
- }): Promise<{
1370
- events: {
1371
- [x: string]: unknown;
1372
- id: string;
1373
- topic?: string | null | undefined;
1374
- chatType?: "oneOnOne" | "group" | "meeting" | "unknownFutureValue" | null | undefined;
1375
- createdDateTime?: string | null | undefined;
1376
- lastUpdatedDateTime?: string | null | undefined;
1377
- members?: {
1378
- [x: string]: unknown;
1379
- id: string;
1380
- displayName?: string | null | undefined;
1381
- email?: string | null | undefined;
1382
- userId?: string | null | undefined;
1383
- }[] | undefined;
1384
- }[];
1385
- cursor?: import("frogbot").PieceJSON | undefined;
1386
- }>;
1387
- } & {
1388
- slug: "chatCreated";
1389
- }) | ({
1390
- slug: string;
1391
- label?: string;
1392
- description: string;
1393
- input: z.ZodObject<{
1394
- chatId: z.ZodString;
1395
- }, z.core.$strip>;
1396
- output?: z.ZodObject<{
1397
- id: z.ZodString;
1398
- createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1399
- lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1309
+ run(args: {
1310
+ input: Record<string, never>;
1311
+ options: {
1312
+ botAppType: "MultiTenant" | "SingleTenant";
1313
+ botUsername: string;
1314
+ botTenantId?: string | undefined;
1315
+ botApiUrl?: string | undefined;
1316
+ };
1317
+ client: {
1318
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
1319
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1320
+ method?: string;
1321
+ body?: unknown;
1322
+ headers?: Record<string, string>;
1323
+ query?: Record<string, string | number>;
1324
+ signal?: AbortSignal;
1325
+ }) => Promise<T>;
1326
+ text(path: string, options?: {
1327
+ method?: string;
1328
+ body?: unknown;
1329
+ headers?: Record<string, string>;
1330
+ query?: Record<string, string | number>;
1331
+ signal?: AbortSignal;
1332
+ }): Promise<string>;
1333
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
1334
+ method?: string;
1335
+ body?: unknown;
1336
+ headers?: Record<string, string>;
1337
+ query?: Record<string, string | number>;
1338
+ signal?: AbortSignal;
1339
+ }) => Promise<T[]>;
1340
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
1341
+ method?: string;
1342
+ body?: unknown;
1343
+ headers?: Record<string, string>;
1344
+ query?: Record<string, string | number>;
1345
+ signal?: AbortSignal;
1346
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
1347
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1348
+ authorize(target: URL, headers: Headers): void;
1349
+ };
1350
+ req: import("frogbot").FrogBotRequest;
1351
+ } & {
1352
+ cursor?: import("frogbot").PieceJSON | undefined;
1353
+ }): Promise<{
1354
+ events: {
1355
+ [x: string]: unknown;
1356
+ id: string;
1357
+ topic?: string | null | undefined;
1358
+ chatType?: "oneOnOne" | "group" | "meeting" | "unknownFutureValue" | null | undefined;
1359
+ createdDateTime?: string | null | undefined;
1360
+ lastUpdatedDateTime?: string | null | undefined;
1361
+ members?: {
1362
+ [x: string]: unknown;
1363
+ id: string;
1364
+ displayName?: string | null | undefined;
1365
+ email?: string | null | undefined;
1366
+ userId?: string | null | undefined;
1367
+ }[] | undefined;
1368
+ }[];
1369
+ cursor?: import("frogbot").PieceJSON | undefined;
1370
+ }>;
1371
+ } & {
1372
+ slug: "chatCreated";
1373
+ }) | ({
1374
+ slug: string;
1375
+ label?: string;
1376
+ description: string;
1377
+ input: z.ZodObject<{
1378
+ chatId: z.ZodString;
1379
+ }, z.core.$strip>;
1380
+ output?: z.ZodObject<{
1381
+ id: z.ZodString;
1382
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1383
+ lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1400
1384
  chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1401
1385
  body: z.ZodObject<{
1402
1386
  content: z.ZodString;
@@ -1418,46 +1402,51 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
1418
1402
  } & {
1419
1403
  type: "polling";
1420
1404
  schedule?: string;
1421
- run(args: import("frogbot").PieceRunArgs<{
1422
- chatId: string;
1423
- }, {
1424
- botAppType: "MultiTenant" | "SingleTenant";
1425
- botUsername: string;
1426
- botTenantId?: string | undefined;
1427
- botApiUrl?: string | undefined;
1428
- }, {
1429
- baseUrl: string;
1430
- request: <T>(path: string, schema: z.ZodType<T>, options?: {
1431
- method?: string;
1432
- body?: unknown;
1433
- headers?: Record<string, string>;
1434
- query?: Record<string, string | number>;
1435
- signal?: AbortSignal;
1436
- }) => Promise<T>;
1437
- text(path: string, options?: {
1438
- method?: string;
1439
- body?: unknown;
1440
- headers?: Record<string, string>;
1441
- query?: Record<string, string | number>;
1442
- signal?: AbortSignal;
1443
- }): Promise<string>;
1444
- list: <T>(path: string, schema: z.ZodType<T>, options?: {
1445
- method?: string;
1446
- body?: unknown;
1447
- headers?: Record<string, string>;
1448
- query?: Record<string, string | number>;
1449
- signal?: AbortSignal;
1450
- }) => Promise<T[]>;
1451
- page: <T>(path: string, schema: z.ZodType<T>, options?: {
1452
- method?: string;
1453
- body?: unknown;
1454
- headers?: Record<string, string>;
1455
- query?: Record<string, string | number>;
1456
- signal?: AbortSignal;
1457
- }) => Promise<import("./schemas.js").GraphPage<T>>;
1458
- meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1459
- authorize(target: URL, headers: Headers): void;
1460
- }> & {
1405
+ run(args: {
1406
+ input: {
1407
+ chatId: string;
1408
+ };
1409
+ options: {
1410
+ botAppType: "MultiTenant" | "SingleTenant";
1411
+ botUsername: string;
1412
+ botTenantId?: string | undefined;
1413
+ botApiUrl?: string | undefined;
1414
+ };
1415
+ client: {
1416
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
1417
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1418
+ method?: string;
1419
+ body?: unknown;
1420
+ headers?: Record<string, string>;
1421
+ query?: Record<string, string | number>;
1422
+ signal?: AbortSignal;
1423
+ }) => Promise<T>;
1424
+ text(path: string, options?: {
1425
+ method?: string;
1426
+ body?: unknown;
1427
+ headers?: Record<string, string>;
1428
+ query?: Record<string, string | number>;
1429
+ signal?: AbortSignal;
1430
+ }): Promise<string>;
1431
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
1432
+ method?: string;
1433
+ body?: unknown;
1434
+ headers?: Record<string, string>;
1435
+ query?: Record<string, string | number>;
1436
+ signal?: AbortSignal;
1437
+ }) => Promise<T[]>;
1438
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
1439
+ method?: string;
1440
+ body?: unknown;
1441
+ headers?: Record<string, string>;
1442
+ query?: Record<string, string | number>;
1443
+ signal?: AbortSignal;
1444
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
1445
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1446
+ authorize(target: URL, headers: Headers): void;
1447
+ };
1448
+ req: import("frogbot").FrogBotRequest;
1449
+ } & {
1461
1450
  cursor?: import("frogbot").PieceJSON | undefined;
1462
1451
  }): Promise<{
1463
1452
  events: {
@@ -1486,44 +1475,49 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
1486
1475
  } & {
1487
1476
  type: "app";
1488
1477
  event: string;
1489
- run(args: import("frogbot").PieceRunArgs<Record<string, never>, {
1490
- botAppType: "MultiTenant" | "SingleTenant";
1491
- botUsername: string;
1492
- botTenantId?: string | undefined;
1493
- botApiUrl?: string | undefined;
1494
- }, {
1495
- baseUrl: string;
1496
- request: <T>(path: string, schema: z.ZodType<T>, options?: {
1497
- method?: string;
1498
- body?: unknown;
1499
- headers?: Record<string, string>;
1500
- query?: Record<string, string | number>;
1501
- signal?: AbortSignal;
1502
- }) => Promise<T>;
1503
- text(path: string, options?: {
1504
- method?: string;
1505
- body?: unknown;
1506
- headers?: Record<string, string>;
1507
- query?: Record<string, string | number>;
1508
- signal?: AbortSignal;
1509
- }): Promise<string>;
1510
- list: <T>(path: string, schema: z.ZodType<T>, options?: {
1511
- method?: string;
1512
- body?: unknown;
1513
- headers?: Record<string, string>;
1514
- query?: Record<string, string | number>;
1515
- signal?: AbortSignal;
1516
- }) => Promise<T[]>;
1517
- page: <T>(path: string, schema: z.ZodType<T>, options?: {
1518
- method?: string;
1519
- body?: unknown;
1520
- headers?: Record<string, string>;
1521
- query?: Record<string, string | number>;
1522
- signal?: AbortSignal;
1523
- }) => Promise<import("./schemas.js").GraphPage<T>>;
1524
- meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1525
- authorize(target: URL, headers: Headers): void;
1526
- }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1478
+ run(args: {
1479
+ input: Record<string, never>;
1480
+ options: {
1481
+ botAppType: "MultiTenant" | "SingleTenant";
1482
+ botUsername: string;
1483
+ botTenantId?: string | undefined;
1484
+ botApiUrl?: string | undefined;
1485
+ };
1486
+ client: {
1487
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
1488
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1489
+ method?: string;
1490
+ body?: unknown;
1491
+ headers?: Record<string, string>;
1492
+ query?: Record<string, string | number>;
1493
+ signal?: AbortSignal;
1494
+ }) => Promise<T>;
1495
+ text(path: string, options?: {
1496
+ method?: string;
1497
+ body?: unknown;
1498
+ headers?: Record<string, string>;
1499
+ query?: Record<string, string | number>;
1500
+ signal?: AbortSignal;
1501
+ }): Promise<string>;
1502
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
1503
+ method?: string;
1504
+ body?: unknown;
1505
+ headers?: Record<string, string>;
1506
+ query?: Record<string, string | number>;
1507
+ signal?: AbortSignal;
1508
+ }) => Promise<T[]>;
1509
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
1510
+ method?: string;
1511
+ body?: unknown;
1512
+ headers?: Record<string, string>;
1513
+ query?: Record<string, string | number>;
1514
+ signal?: AbortSignal;
1515
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
1516
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1517
+ authorize(target: URL, headers: Headers): void;
1518
+ };
1519
+ req: import("frogbot").FrogBotRequest;
1520
+ }): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1527
1521
  } & {
1528
1522
  slug: "messageReceived";
1529
1523
  }) | ({
@@ -1536,94 +1530,104 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
1536
1530
  } & {
1537
1531
  type: "app";
1538
1532
  event: string;
1539
- run(args: import("frogbot").PieceRunArgs<Record<string, never>, {
1540
- botAppType: "MultiTenant" | "SingleTenant";
1541
- botUsername: string;
1542
- botTenantId?: string | undefined;
1543
- botApiUrl?: string | undefined;
1544
- }, {
1545
- baseUrl: string;
1546
- request: <T>(path: string, schema: z.ZodType<T>, options?: {
1547
- method?: string;
1548
- body?: unknown;
1549
- headers?: Record<string, string>;
1550
- query?: Record<string, string | number>;
1551
- signal?: AbortSignal;
1552
- }) => Promise<T>;
1553
- text(path: string, options?: {
1554
- method?: string;
1555
- body?: unknown;
1556
- headers?: Record<string, string>;
1557
- query?: Record<string, string | number>;
1558
- signal?: AbortSignal;
1559
- }): Promise<string>;
1560
- list: <T>(path: string, schema: z.ZodType<T>, options?: {
1561
- method?: string;
1562
- body?: unknown;
1563
- headers?: Record<string, string>;
1564
- query?: Record<string, string | number>;
1565
- signal?: AbortSignal;
1566
- }) => Promise<T[]>;
1567
- page: <T>(path: string, schema: z.ZodType<T>, options?: {
1568
- method?: string;
1569
- body?: unknown;
1570
- headers?: Record<string, string>;
1571
- query?: Record<string, string | number>;
1572
- signal?: AbortSignal;
1573
- }) => Promise<import("./schemas.js").GraphPage<T>>;
1574
- meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1575
- authorize(target: URL, headers: Headers): void;
1576
- }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1577
- } & {
1578
- slug: "messageReactionReceived";
1579
- }) | ({
1580
- slug: string;
1581
- label?: string;
1582
- description: string;
1583
- input: z.ZodObject<{}, z.core.$strip>;
1584
- output?: z.ZodRecord<z.ZodString, z.ZodUnknown> | undefined;
1585
- sample?: Record<string, unknown> | undefined;
1586
- } & {
1587
- type: "app";
1588
- event: string;
1589
- run(args: import("frogbot").PieceRunArgs<Record<string, never>, {
1590
- botAppType: "MultiTenant" | "SingleTenant";
1591
- botUsername: string;
1592
- botTenantId?: string | undefined;
1593
- botApiUrl?: string | undefined;
1594
- }, {
1595
- baseUrl: string;
1596
- request: <T>(path: string, schema: z.ZodType<T>, options?: {
1597
- method?: string;
1598
- body?: unknown;
1599
- headers?: Record<string, string>;
1600
- query?: Record<string, string | number>;
1601
- signal?: AbortSignal;
1602
- }) => Promise<T>;
1603
- text(path: string, options?: {
1604
- method?: string;
1605
- body?: unknown;
1606
- headers?: Record<string, string>;
1607
- query?: Record<string, string | number>;
1608
- signal?: AbortSignal;
1609
- }): Promise<string>;
1610
- list: <T>(path: string, schema: z.ZodType<T>, options?: {
1611
- method?: string;
1612
- body?: unknown;
1613
- headers?: Record<string, string>;
1614
- query?: Record<string, string | number>;
1615
- signal?: AbortSignal;
1616
- }) => Promise<T[]>;
1617
- page: <T>(path: string, schema: z.ZodType<T>, options?: {
1618
- method?: string;
1619
- body?: unknown;
1620
- headers?: Record<string, string>;
1621
- query?: Record<string, string | number>;
1622
- signal?: AbortSignal;
1623
- }) => Promise<import("./schemas.js").GraphPage<T>>;
1624
- meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1625
- authorize(target: URL, headers: Headers): void;
1626
- }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1533
+ run(args: {
1534
+ input: Record<string, never>;
1535
+ options: {
1536
+ botAppType: "MultiTenant" | "SingleTenant";
1537
+ botUsername: string;
1538
+ botTenantId?: string | undefined;
1539
+ botApiUrl?: string | undefined;
1540
+ };
1541
+ client: {
1542
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
1543
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1544
+ method?: string;
1545
+ body?: unknown;
1546
+ headers?: Record<string, string>;
1547
+ query?: Record<string, string | number>;
1548
+ signal?: AbortSignal;
1549
+ }) => Promise<T>;
1550
+ text(path: string, options?: {
1551
+ method?: string;
1552
+ body?: unknown;
1553
+ headers?: Record<string, string>;
1554
+ query?: Record<string, string | number>;
1555
+ signal?: AbortSignal;
1556
+ }): Promise<string>;
1557
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
1558
+ method?: string;
1559
+ body?: unknown;
1560
+ headers?: Record<string, string>;
1561
+ query?: Record<string, string | number>;
1562
+ signal?: AbortSignal;
1563
+ }) => Promise<T[]>;
1564
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
1565
+ method?: string;
1566
+ body?: unknown;
1567
+ headers?: Record<string, string>;
1568
+ query?: Record<string, string | number>;
1569
+ signal?: AbortSignal;
1570
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
1571
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1572
+ authorize(target: URL, headers: Headers): void;
1573
+ };
1574
+ req: import("frogbot").FrogBotRequest;
1575
+ }): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1576
+ } & {
1577
+ slug: "messageReactionReceived";
1578
+ }) | ({
1579
+ slug: string;
1580
+ label?: string;
1581
+ description: string;
1582
+ input: z.ZodObject<{}, z.core.$strip>;
1583
+ output?: z.ZodRecord<z.ZodString, z.ZodUnknown> | undefined;
1584
+ sample?: Record<string, unknown> | undefined;
1585
+ } & {
1586
+ type: "app";
1587
+ event: string;
1588
+ run(args: {
1589
+ input: Record<string, never>;
1590
+ options: {
1591
+ botAppType: "MultiTenant" | "SingleTenant";
1592
+ botUsername: string;
1593
+ botTenantId?: string | undefined;
1594
+ botApiUrl?: string | undefined;
1595
+ };
1596
+ client: {
1597
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
1598
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1599
+ method?: string;
1600
+ body?: unknown;
1601
+ headers?: Record<string, string>;
1602
+ query?: Record<string, string | number>;
1603
+ signal?: AbortSignal;
1604
+ }) => Promise<T>;
1605
+ text(path: string, options?: {
1606
+ method?: string;
1607
+ body?: unknown;
1608
+ headers?: Record<string, string>;
1609
+ query?: Record<string, string | number>;
1610
+ signal?: AbortSignal;
1611
+ }): Promise<string>;
1612
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
1613
+ method?: string;
1614
+ body?: unknown;
1615
+ headers?: Record<string, string>;
1616
+ query?: Record<string, string | number>;
1617
+ signal?: AbortSignal;
1618
+ }) => Promise<T[]>;
1619
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
1620
+ method?: string;
1621
+ body?: unknown;
1622
+ headers?: Record<string, string>;
1623
+ query?: Record<string, string | number>;
1624
+ signal?: AbortSignal;
1625
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
1626
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1627
+ authorize(target: URL, headers: Headers): void;
1628
+ };
1629
+ req: import("frogbot").FrogBotRequest;
1630
+ }): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1627
1631
  } & {
1628
1632
  slug: "cardActionReceived";
1629
1633
  }) | ({
@@ -1636,44 +1640,49 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
1636
1640
  } & {
1637
1641
  type: "app";
1638
1642
  event: string;
1639
- run(args: import("frogbot").PieceRunArgs<Record<string, never>, {
1640
- botAppType: "MultiTenant" | "SingleTenant";
1641
- botUsername: string;
1642
- botTenantId?: string | undefined;
1643
- botApiUrl?: string | undefined;
1644
- }, {
1645
- baseUrl: string;
1646
- request: <T>(path: string, schema: z.ZodType<T>, options?: {
1647
- method?: string;
1648
- body?: unknown;
1649
- headers?: Record<string, string>;
1650
- query?: Record<string, string | number>;
1651
- signal?: AbortSignal;
1652
- }) => Promise<T>;
1653
- text(path: string, options?: {
1654
- method?: string;
1655
- body?: unknown;
1656
- headers?: Record<string, string>;
1657
- query?: Record<string, string | number>;
1658
- signal?: AbortSignal;
1659
- }): Promise<string>;
1660
- list: <T>(path: string, schema: z.ZodType<T>, options?: {
1661
- method?: string;
1662
- body?: unknown;
1663
- headers?: Record<string, string>;
1664
- query?: Record<string, string | number>;
1665
- signal?: AbortSignal;
1666
- }) => Promise<T[]>;
1667
- page: <T>(path: string, schema: z.ZodType<T>, options?: {
1668
- method?: string;
1669
- body?: unknown;
1670
- headers?: Record<string, string>;
1671
- query?: Record<string, string | number>;
1672
- signal?: AbortSignal;
1673
- }) => Promise<import("./schemas.js").GraphPage<T>>;
1674
- meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1675
- authorize(target: URL, headers: Headers): void;
1676
- }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1643
+ run(args: {
1644
+ input: Record<string, never>;
1645
+ options: {
1646
+ botAppType: "MultiTenant" | "SingleTenant";
1647
+ botUsername: string;
1648
+ botTenantId?: string | undefined;
1649
+ botApiUrl?: string | undefined;
1650
+ };
1651
+ client: {
1652
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
1653
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1654
+ method?: string;
1655
+ body?: unknown;
1656
+ headers?: Record<string, string>;
1657
+ query?: Record<string, string | number>;
1658
+ signal?: AbortSignal;
1659
+ }) => Promise<T>;
1660
+ text(path: string, options?: {
1661
+ method?: string;
1662
+ body?: unknown;
1663
+ headers?: Record<string, string>;
1664
+ query?: Record<string, string | number>;
1665
+ signal?: AbortSignal;
1666
+ }): Promise<string>;
1667
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
1668
+ method?: string;
1669
+ body?: unknown;
1670
+ headers?: Record<string, string>;
1671
+ query?: Record<string, string | number>;
1672
+ signal?: AbortSignal;
1673
+ }) => Promise<T[]>;
1674
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
1675
+ method?: string;
1676
+ body?: unknown;
1677
+ headers?: Record<string, string>;
1678
+ query?: Record<string, string | number>;
1679
+ signal?: AbortSignal;
1680
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
1681
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1682
+ authorize(target: URL, headers: Headers): void;
1683
+ };
1684
+ req: import("frogbot").FrogBotRequest;
1685
+ }): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1677
1686
  } & {
1678
1687
  slug: "conversationUpdated";
1679
1688
  }) | ({
@@ -1686,44 +1695,49 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
1686
1695
  } & {
1687
1696
  type: "app";
1688
1697
  event: string;
1689
- run(args: import("frogbot").PieceRunArgs<Record<string, never>, {
1690
- botAppType: "MultiTenant" | "SingleTenant";
1691
- botUsername: string;
1692
- botTenantId?: string | undefined;
1693
- botApiUrl?: string | undefined;
1694
- }, {
1695
- baseUrl: string;
1696
- request: <T>(path: string, schema: z.ZodType<T>, options?: {
1697
- method?: string;
1698
- body?: unknown;
1699
- headers?: Record<string, string>;
1700
- query?: Record<string, string | number>;
1701
- signal?: AbortSignal;
1702
- }) => Promise<T>;
1703
- text(path: string, options?: {
1704
- method?: string;
1705
- body?: unknown;
1706
- headers?: Record<string, string>;
1707
- query?: Record<string, string | number>;
1708
- signal?: AbortSignal;
1709
- }): Promise<string>;
1710
- list: <T>(path: string, schema: z.ZodType<T>, options?: {
1711
- method?: string;
1712
- body?: unknown;
1713
- headers?: Record<string, string>;
1714
- query?: Record<string, string | number>;
1715
- signal?: AbortSignal;
1716
- }) => Promise<T[]>;
1717
- page: <T>(path: string, schema: z.ZodType<T>, options?: {
1718
- method?: string;
1719
- body?: unknown;
1720
- headers?: Record<string, string>;
1721
- query?: Record<string, string | number>;
1722
- signal?: AbortSignal;
1723
- }) => Promise<import("./schemas.js").GraphPage<T>>;
1724
- meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1725
- authorize(target: URL, headers: Headers): void;
1726
- }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1698
+ run(args: {
1699
+ input: Record<string, never>;
1700
+ options: {
1701
+ botAppType: "MultiTenant" | "SingleTenant";
1702
+ botUsername: string;
1703
+ botTenantId?: string | undefined;
1704
+ botApiUrl?: string | undefined;
1705
+ };
1706
+ client: {
1707
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
1708
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1709
+ method?: string;
1710
+ body?: unknown;
1711
+ headers?: Record<string, string>;
1712
+ query?: Record<string, string | number>;
1713
+ signal?: AbortSignal;
1714
+ }) => Promise<T>;
1715
+ text(path: string, options?: {
1716
+ method?: string;
1717
+ body?: unknown;
1718
+ headers?: Record<string, string>;
1719
+ query?: Record<string, string | number>;
1720
+ signal?: AbortSignal;
1721
+ }): Promise<string>;
1722
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
1723
+ method?: string;
1724
+ body?: unknown;
1725
+ headers?: Record<string, string>;
1726
+ query?: Record<string, string | number>;
1727
+ signal?: AbortSignal;
1728
+ }) => Promise<T[]>;
1729
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
1730
+ method?: string;
1731
+ body?: unknown;
1732
+ headers?: Record<string, string>;
1733
+ query?: Record<string, string | number>;
1734
+ signal?: AbortSignal;
1735
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
1736
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1737
+ authorize(target: URL, headers: Headers): void;
1738
+ };
1739
+ req: import("frogbot").FrogBotRequest;
1740
+ }): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1727
1741
  } & {
1728
1742
  slug: "installationUpdated";
1729
1743
  }) | ({
@@ -1736,44 +1750,49 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
1736
1750
  } & {
1737
1751
  type: "app";
1738
1752
  event: string;
1739
- run(args: import("frogbot").PieceRunArgs<Record<string, never>, {
1740
- botAppType: "MultiTenant" | "SingleTenant";
1741
- botUsername: string;
1742
- botTenantId?: string | undefined;
1743
- botApiUrl?: string | undefined;
1744
- }, {
1745
- baseUrl: string;
1746
- request: <T>(path: string, schema: z.ZodType<T>, options?: {
1747
- method?: string;
1748
- body?: unknown;
1749
- headers?: Record<string, string>;
1750
- query?: Record<string, string | number>;
1751
- signal?: AbortSignal;
1752
- }) => Promise<T>;
1753
- text(path: string, options?: {
1754
- method?: string;
1755
- body?: unknown;
1756
- headers?: Record<string, string>;
1757
- query?: Record<string, string | number>;
1758
- signal?: AbortSignal;
1759
- }): Promise<string>;
1760
- list: <T>(path: string, schema: z.ZodType<T>, options?: {
1761
- method?: string;
1762
- body?: unknown;
1763
- headers?: Record<string, string>;
1764
- query?: Record<string, string | number>;
1765
- signal?: AbortSignal;
1766
- }) => Promise<T[]>;
1767
- page: <T>(path: string, schema: z.ZodType<T>, options?: {
1768
- method?: string;
1769
- body?: unknown;
1770
- headers?: Record<string, string>;
1771
- query?: Record<string, string | number>;
1772
- signal?: AbortSignal;
1773
- }) => Promise<import("./schemas.js").GraphPage<T>>;
1774
- meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1775
- authorize(target: URL, headers: Headers): void;
1776
- }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1753
+ run(args: {
1754
+ input: Record<string, never>;
1755
+ options: {
1756
+ botAppType: "MultiTenant" | "SingleTenant";
1757
+ botUsername: string;
1758
+ botTenantId?: string | undefined;
1759
+ botApiUrl?: string | undefined;
1760
+ };
1761
+ client: {
1762
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
1763
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1764
+ method?: string;
1765
+ body?: unknown;
1766
+ headers?: Record<string, string>;
1767
+ query?: Record<string, string | number>;
1768
+ signal?: AbortSignal;
1769
+ }) => Promise<T>;
1770
+ text(path: string, options?: {
1771
+ method?: string;
1772
+ body?: unknown;
1773
+ headers?: Record<string, string>;
1774
+ query?: Record<string, string | number>;
1775
+ signal?: AbortSignal;
1776
+ }): Promise<string>;
1777
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
1778
+ method?: string;
1779
+ body?: unknown;
1780
+ headers?: Record<string, string>;
1781
+ query?: Record<string, string | number>;
1782
+ signal?: AbortSignal;
1783
+ }) => Promise<T[]>;
1784
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
1785
+ method?: string;
1786
+ body?: unknown;
1787
+ headers?: Record<string, string>;
1788
+ query?: Record<string, string | number>;
1789
+ signal?: AbortSignal;
1790
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
1791
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1792
+ authorize(target: URL, headers: Headers): void;
1793
+ };
1794
+ req: import("frogbot").FrogBotRequest;
1795
+ }): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1777
1796
  } & {
1778
1797
  slug: "dialogOpened";
1779
1798
  }) | ({
@@ -1786,44 +1805,49 @@ export declare function defineMicrosoftTeams(environment?: z.input<typeof micros
1786
1805
  } & {
1787
1806
  type: "app";
1788
1807
  event: string;
1789
- run(args: import("frogbot").PieceRunArgs<Record<string, never>, {
1790
- botAppType: "MultiTenant" | "SingleTenant";
1791
- botUsername: string;
1792
- botTenantId?: string | undefined;
1793
- botApiUrl?: string | undefined;
1794
- }, {
1795
- baseUrl: string;
1796
- request: <T>(path: string, schema: z.ZodType<T>, options?: {
1797
- method?: string;
1798
- body?: unknown;
1799
- headers?: Record<string, string>;
1800
- query?: Record<string, string | number>;
1801
- signal?: AbortSignal;
1802
- }) => Promise<T>;
1803
- text(path: string, options?: {
1804
- method?: string;
1805
- body?: unknown;
1806
- headers?: Record<string, string>;
1807
- query?: Record<string, string | number>;
1808
- signal?: AbortSignal;
1809
- }): Promise<string>;
1810
- list: <T>(path: string, schema: z.ZodType<T>, options?: {
1811
- method?: string;
1812
- body?: unknown;
1813
- headers?: Record<string, string>;
1814
- query?: Record<string, string | number>;
1815
- signal?: AbortSignal;
1816
- }) => Promise<T[]>;
1817
- page: <T>(path: string, schema: z.ZodType<T>, options?: {
1818
- method?: string;
1819
- body?: unknown;
1820
- headers?: Record<string, string>;
1821
- query?: Record<string, string | number>;
1822
- signal?: AbortSignal;
1823
- }) => Promise<import("./schemas.js").GraphPage<T>>;
1824
- meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1825
- authorize(target: URL, headers: Headers): void;
1826
- }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1808
+ run(args: {
1809
+ input: Record<string, never>;
1810
+ options: {
1811
+ botAppType: "MultiTenant" | "SingleTenant";
1812
+ botUsername: string;
1813
+ botTenantId?: string | undefined;
1814
+ botApiUrl?: string | undefined;
1815
+ };
1816
+ client: {
1817
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
1818
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1819
+ method?: string;
1820
+ body?: unknown;
1821
+ headers?: Record<string, string>;
1822
+ query?: Record<string, string | number>;
1823
+ signal?: AbortSignal;
1824
+ }) => Promise<T>;
1825
+ text(path: string, options?: {
1826
+ method?: string;
1827
+ body?: unknown;
1828
+ headers?: Record<string, string>;
1829
+ query?: Record<string, string | number>;
1830
+ signal?: AbortSignal;
1831
+ }): Promise<string>;
1832
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
1833
+ method?: string;
1834
+ body?: unknown;
1835
+ headers?: Record<string, string>;
1836
+ query?: Record<string, string | number>;
1837
+ signal?: AbortSignal;
1838
+ }) => Promise<T[]>;
1839
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
1840
+ method?: string;
1841
+ body?: unknown;
1842
+ headers?: Record<string, string>;
1843
+ query?: Record<string, string | number>;
1844
+ signal?: AbortSignal;
1845
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
1846
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1847
+ authorize(target: URL, headers: Headers): void;
1848
+ };
1849
+ req: import("frogbot").FrogBotRequest;
1850
+ }): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1827
1851
  } & {
1828
1852
  slug: "dialogSubmitted";
1829
1853
  }))[];
@@ -1853,15 +1877,8 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
1853
1877
  }, z.core.$strip>;
1854
1878
  readonly client: typeof createMicrosoftTeamsClient;
1855
1879
  readonly oauth: {
1856
- authorizationUrl: string;
1857
- tokenUrl: string;
1858
1880
  scopes: {
1859
1881
  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
1882
  readonly 'Channel.Create': "Channel.Create";
1866
1883
  readonly 'Channel.ReadBasic.All': "Channel.ReadBasic.All";
1867
1884
  readonly 'ChannelMessage.Send': "ChannelMessage.Send";
@@ -1895,12 +1912,14 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
1895
1912
  readonly 'Presence.Read': "Presence.Read";
1896
1913
  readonly 'OnlineMeetings.Read': "OnlineMeetings.Read";
1897
1914
  readonly 'OnlineMeetings.ReadWrite': "OnlineMeetings.ReadWrite";
1915
+ readonly openid: "openid";
1916
+ readonly email: "email";
1917
+ readonly profile: "profile";
1918
+ readonly offline_access: "offline_access";
1919
+ readonly 'User.Read': "User.Read";
1898
1920
  };
1899
1921
  defaults: string[];
1900
- required: string[];
1901
- };
1902
- params: {
1903
- prompt: string;
1922
+ required: ("offline_access" | "User.Read")[];
1904
1923
  };
1905
1924
  toAuth: ({ tokens }: {
1906
1925
  tokens: import("frogbot").OAuthTokens;
@@ -1909,41 +1928,14 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
1909
1928
  cloud: string;
1910
1929
  tenantId: string;
1911
1930
  };
1912
- account({ client }: {
1931
+ authorizationUrl: string;
1932
+ tokenUrl: string;
1933
+ params: {
1934
+ prompt: string;
1935
+ };
1936
+ account({ tokens, req }: {
1913
1937
  tokens: import("frogbot").OAuthTokens;
1914
- client: {
1915
- baseUrl: string;
1916
- request: <T>(path: string, schema: z.ZodType<T>, options?: {
1917
- method?: string;
1918
- body?: unknown;
1919
- headers?: Record<string, string>;
1920
- query?: Record<string, string | number>;
1921
- signal?: AbortSignal;
1922
- }) => Promise<T>;
1923
- text(path: string, options?: {
1924
- method?: string;
1925
- body?: unknown;
1926
- headers?: Record<string, string>;
1927
- query?: Record<string, string | number>;
1928
- signal?: AbortSignal;
1929
- }): Promise<string>;
1930
- list: <T>(path: string, schema: z.ZodType<T>, options?: {
1931
- method?: string;
1932
- body?: unknown;
1933
- headers?: Record<string, string>;
1934
- query?: Record<string, string | number>;
1935
- signal?: AbortSignal;
1936
- }) => Promise<T[]>;
1937
- page: <T>(path: string, schema: z.ZodType<T>, options?: {
1938
- method?: string;
1939
- body?: unknown;
1940
- headers?: Record<string, string>;
1941
- query?: Record<string, string | number>;
1942
- signal?: AbortSignal;
1943
- }) => Promise<import("./schemas.js").GraphPage<T>>;
1944
- meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1945
- authorize(target: URL, headers: Headers): void;
1946
- };
1938
+ client: unknown;
1947
1939
  req: import("frogbot").FrogBotRequest;
1948
1940
  }): Promise<{
1949
1941
  id: string;
@@ -1977,7 +1969,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
1977
1969
  identity({ author, req }: {
1978
1970
  author: import("chat").Author;
1979
1971
  client: {
1980
- baseUrl: string;
1972
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
1981
1973
  request: <T>(path: string, schema: z.ZodType<T>, options?: {
1982
1974
  method?: string;
1983
1975
  body?: unknown;
@@ -2012,7 +2004,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2012
2004
  req: import("frogbot").FrogBotRequest;
2013
2005
  }): Promise<(Record<string, unknown> & import("frogbot").TypeWithID) | null>;
2014
2006
  questions: import("frogbot/pieces").PieceChannelQuestions<{
2015
- baseUrl: string;
2007
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
2016
2008
  request: <T>(path: string, schema: z.ZodType<T>, options?: {
2017
2009
  method?: string;
2018
2010
  body?: unknown;
@@ -2062,7 +2054,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2062
2054
  botTenantId?: string | undefined;
2063
2055
  botApiUrl?: string | undefined;
2064
2056
  }, {
2065
- baseUrl: string;
2057
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
2066
2058
  request: <T>(path: string, schema: z.ZodType<T>, options?: {
2067
2059
  method?: string;
2068
2060
  body?: unknown;
@@ -2120,7 +2112,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2120
2112
  botTenantId?: string | undefined;
2121
2113
  botApiUrl?: string | undefined;
2122
2114
  }, {
2123
- baseUrl: string;
2115
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
2124
2116
  request: <T>(path: string, schema: z.ZodType<T>, options?: {
2125
2117
  method?: string;
2126
2118
  body?: unknown;
@@ -2184,7 +2176,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2184
2176
  botTenantId?: string | undefined;
2185
2177
  botApiUrl?: string | undefined;
2186
2178
  }, {
2187
- baseUrl: string;
2179
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
2188
2180
  request: <T>(path: string, schema: z.ZodType<T>, options?: {
2189
2181
  method?: string;
2190
2182
  body?: unknown;
@@ -2250,7 +2242,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2250
2242
  botTenantId?: string | undefined;
2251
2243
  botApiUrl?: string | undefined;
2252
2244
  }, {
2253
- baseUrl: string;
2245
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
2254
2246
  request: <T>(path: string, schema: z.ZodType<T>, options?: {
2255
2247
  method?: string;
2256
2248
  body?: unknown;
@@ -2318,7 +2310,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2318
2310
  botTenantId?: string | undefined;
2319
2311
  botApiUrl?: string | undefined;
2320
2312
  }, {
2321
- baseUrl: string;
2313
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
2322
2314
  request: <T>(path: string, schema: z.ZodType<T>, options?: {
2323
2315
  method?: string;
2324
2316
  body?: unknown;
@@ -2405,7 +2397,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2405
2397
  botTenantId?: string | undefined;
2406
2398
  botApiUrl?: string | undefined;
2407
2399
  }, {
2408
- baseUrl: string;
2400
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
2409
2401
  request: <T>(path: string, schema: z.ZodType<T>, options?: {
2410
2402
  method?: string;
2411
2403
  body?: unknown;
@@ -2484,7 +2476,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2484
2476
  botTenantId?: string | undefined;
2485
2477
  botApiUrl?: string | undefined;
2486
2478
  }, {
2487
- baseUrl: string;
2479
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
2488
2480
  request: <T>(path: string, schema: z.ZodType<T>, options?: {
2489
2481
  method?: string;
2490
2482
  body?: unknown;
@@ -2541,7 +2533,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2541
2533
  botTenantId?: string | undefined;
2542
2534
  botApiUrl?: string | undefined;
2543
2535
  }, {
2544
- baseUrl: string;
2536
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
2545
2537
  request: <T>(path: string, schema: z.ZodType<T>, options?: {
2546
2538
  method?: string;
2547
2539
  body?: unknown;
@@ -2598,7 +2590,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2598
2590
  botTenantId?: string | undefined;
2599
2591
  botApiUrl?: string | undefined;
2600
2592
  }, {
2601
- baseUrl: string;
2593
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
2602
2594
  request: <T>(path: string, schema: z.ZodType<T>, options?: {
2603
2595
  method?: string;
2604
2596
  body?: unknown;
@@ -2661,7 +2653,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2661
2653
  botTenantId?: string | undefined;
2662
2654
  botApiUrl?: string | undefined;
2663
2655
  }, {
2664
- baseUrl: string;
2656
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
2665
2657
  request: <T>(path: string, schema: z.ZodType<T>, options?: {
2666
2658
  method?: string;
2667
2659
  body?: unknown;
@@ -2707,8 +2699,8 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2707
2699
  slug: "findChannel";
2708
2700
  }) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
2709
2701
  searchBy: z.ZodDefault<z.ZodEnum<{
2710
- name: "name";
2711
2702
  email: "email";
2703
+ name: "name";
2712
2704
  }>>;
2713
2705
  searchValue: z.ZodString;
2714
2706
  teamId: z.ZodString;
@@ -2726,7 +2718,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2726
2718
  botTenantId?: string | undefined;
2727
2719
  botApiUrl?: string | undefined;
2728
2720
  }, {
2729
- baseUrl: string;
2721
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
2730
2722
  request: <T>(path: string, schema: z.ZodType<T>, options?: {
2731
2723
  method?: string;
2732
2724
  body?: unknown;
@@ -2792,7 +2784,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2792
2784
  botTenantId?: string | undefined;
2793
2785
  botApiUrl?: string | undefined;
2794
2786
  }, {
2795
- baseUrl: string;
2787
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
2796
2788
  request: <T>(path: string, schema: z.ZodType<T>, options?: {
2797
2789
  method?: string;
2798
2790
  body?: unknown;
@@ -2856,7 +2848,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2856
2848
  botTenantId?: string | undefined;
2857
2849
  botApiUrl?: string | undefined;
2858
2850
  }, {
2859
- baseUrl: string;
2851
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
2860
2852
  request: <T>(path: string, schema: z.ZodType<T>, options?: {
2861
2853
  method?: string;
2862
2854
  body?: unknown;
@@ -2903,7 +2895,7 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2903
2895
  botTenantId?: string | undefined;
2904
2896
  botApiUrl?: string | undefined;
2905
2897
  }, {
2906
- baseUrl: string;
2898
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
2907
2899
  request: <T>(path: string, schema: z.ZodType<T>, options?: {
2908
2900
  method?: string;
2909
2901
  body?: unknown;
@@ -2946,62 +2938,67 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
2946
2938
  id: z.ZodString;
2947
2939
  displayName: z.ZodString;
2948
2940
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2949
- createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2950
- membershipType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2951
- isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2952
- }, z.core.$loose> | undefined;
2953
- sample?: {
2954
- [x: string]: unknown;
2955
- id: string;
2956
- displayName: string;
2957
- description?: string | null | undefined;
2958
- createdDateTime?: string | null | undefined;
2959
- membershipType?: string | null | undefined;
2960
- isArchived?: boolean | null | undefined;
2961
- } | undefined;
2962
- } & {
2963
- type: "polling";
2964
- schedule?: string;
2965
- run(args: import("frogbot").PieceRunArgs<{
2966
- teamId: string;
2967
- }, {
2968
- botAppType: "MultiTenant" | "SingleTenant";
2969
- botUsername: string;
2970
- botTenantId?: string | undefined;
2971
- botApiUrl?: string | undefined;
2972
- }, {
2973
- baseUrl: string;
2974
- request: <T>(path: string, schema: z.ZodType<T>, options?: {
2975
- method?: string;
2976
- body?: unknown;
2977
- headers?: Record<string, string>;
2978
- query?: Record<string, string | number>;
2979
- signal?: AbortSignal;
2980
- }) => Promise<T>;
2981
- text(path: string, options?: {
2982
- method?: string;
2983
- body?: unknown;
2984
- headers?: Record<string, string>;
2985
- query?: Record<string, string | number>;
2986
- signal?: AbortSignal;
2987
- }): Promise<string>;
2988
- list: <T>(path: string, schema: z.ZodType<T>, options?: {
2989
- method?: string;
2990
- body?: unknown;
2991
- headers?: Record<string, string>;
2992
- query?: Record<string, string | number>;
2993
- signal?: AbortSignal;
2994
- }) => Promise<T[]>;
2995
- page: <T>(path: string, schema: z.ZodType<T>, options?: {
2996
- method?: string;
2997
- body?: unknown;
2998
- headers?: Record<string, string>;
2999
- query?: Record<string, string | number>;
3000
- signal?: AbortSignal;
3001
- }) => Promise<import("./schemas.js").GraphPage<T>>;
3002
- meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
3003
- authorize(target: URL, headers: Headers): void;
3004
- }> & {
2941
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2942
+ membershipType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2943
+ isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2944
+ }, z.core.$loose> | undefined;
2945
+ sample?: {
2946
+ [x: string]: unknown;
2947
+ id: string;
2948
+ displayName: string;
2949
+ description?: string | null | undefined;
2950
+ createdDateTime?: string | null | undefined;
2951
+ membershipType?: string | null | undefined;
2952
+ isArchived?: boolean | null | undefined;
2953
+ } | undefined;
2954
+ } & {
2955
+ type: "polling";
2956
+ schedule?: string;
2957
+ run(args: {
2958
+ input: {
2959
+ teamId: string;
2960
+ };
2961
+ options: {
2962
+ botAppType: "MultiTenant" | "SingleTenant";
2963
+ botUsername: string;
2964
+ botTenantId?: string | undefined;
2965
+ botApiUrl?: string | undefined;
2966
+ };
2967
+ client: {
2968
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
2969
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
2970
+ method?: string;
2971
+ body?: unknown;
2972
+ headers?: Record<string, string>;
2973
+ query?: Record<string, string | number>;
2974
+ signal?: AbortSignal;
2975
+ }) => Promise<T>;
2976
+ text(path: string, options?: {
2977
+ method?: string;
2978
+ body?: unknown;
2979
+ headers?: Record<string, string>;
2980
+ query?: Record<string, string | number>;
2981
+ signal?: AbortSignal;
2982
+ }): Promise<string>;
2983
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
2984
+ method?: string;
2985
+ body?: unknown;
2986
+ headers?: Record<string, string>;
2987
+ query?: Record<string, string | number>;
2988
+ signal?: AbortSignal;
2989
+ }) => Promise<T[]>;
2990
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
2991
+ method?: string;
2992
+ body?: unknown;
2993
+ headers?: Record<string, string>;
2994
+ query?: Record<string, string | number>;
2995
+ signal?: AbortSignal;
2996
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
2997
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
2998
+ authorize(target: URL, headers: Headers): void;
2999
+ };
3000
+ req: import("frogbot").FrogBotRequest;
3001
+ } & {
3005
3002
  cursor?: import("frogbot").PieceJSON | undefined;
3006
3003
  }): Promise<{
3007
3004
  events: {
@@ -3050,47 +3047,52 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
3050
3047
  } & {
3051
3048
  type: "polling";
3052
3049
  schedule?: string;
3053
- run(args: import("frogbot").PieceRunArgs<{
3054
- teamId: string;
3055
- channelId: string;
3056
- }, {
3057
- botAppType: "MultiTenant" | "SingleTenant";
3058
- botUsername: string;
3059
- botTenantId?: string | undefined;
3060
- botApiUrl?: string | undefined;
3061
- }, {
3062
- baseUrl: string;
3063
- request: <T>(path: string, schema: z.ZodType<T>, options?: {
3064
- method?: string;
3065
- body?: unknown;
3066
- headers?: Record<string, string>;
3067
- query?: Record<string, string | number>;
3068
- signal?: AbortSignal;
3069
- }) => Promise<T>;
3070
- text(path: string, options?: {
3071
- method?: string;
3072
- body?: unknown;
3073
- headers?: Record<string, string>;
3074
- query?: Record<string, string | number>;
3075
- signal?: AbortSignal;
3076
- }): Promise<string>;
3077
- list: <T>(path: string, schema: z.ZodType<T>, options?: {
3078
- method?: string;
3079
- body?: unknown;
3080
- headers?: Record<string, string>;
3081
- query?: Record<string, string | number>;
3082
- signal?: AbortSignal;
3083
- }) => Promise<T[]>;
3084
- page: <T>(path: string, schema: z.ZodType<T>, options?: {
3085
- method?: string;
3086
- body?: unknown;
3087
- headers?: Record<string, string>;
3088
- query?: Record<string, string | number>;
3089
- signal?: AbortSignal;
3090
- }) => Promise<import("./schemas.js").GraphPage<T>>;
3091
- meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
3092
- authorize(target: URL, headers: Headers): void;
3093
- }> & {
3050
+ run(args: {
3051
+ input: {
3052
+ teamId: string;
3053
+ channelId: string;
3054
+ };
3055
+ options: {
3056
+ botAppType: "MultiTenant" | "SingleTenant";
3057
+ botUsername: string;
3058
+ botTenantId?: string | undefined;
3059
+ botApiUrl?: string | undefined;
3060
+ };
3061
+ client: {
3062
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
3063
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
3064
+ method?: string;
3065
+ body?: unknown;
3066
+ headers?: Record<string, string>;
3067
+ query?: Record<string, string | number>;
3068
+ signal?: AbortSignal;
3069
+ }) => Promise<T>;
3070
+ text(path: string, options?: {
3071
+ method?: string;
3072
+ body?: unknown;
3073
+ headers?: Record<string, string>;
3074
+ query?: Record<string, string | number>;
3075
+ signal?: AbortSignal;
3076
+ }): Promise<string>;
3077
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
3078
+ method?: string;
3079
+ body?: unknown;
3080
+ headers?: Record<string, string>;
3081
+ query?: Record<string, string | number>;
3082
+ signal?: AbortSignal;
3083
+ }) => Promise<T[]>;
3084
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
3085
+ method?: string;
3086
+ body?: unknown;
3087
+ headers?: Record<string, string>;
3088
+ query?: Record<string, string | number>;
3089
+ signal?: AbortSignal;
3090
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
3091
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
3092
+ authorize(target: URL, headers: Headers): void;
3093
+ };
3094
+ req: import("frogbot").FrogBotRequest;
3095
+ } & {
3094
3096
  cursor?: import("frogbot").PieceJSON | undefined;
3095
3097
  }): Promise<{
3096
3098
  events: {
@@ -3150,44 +3152,49 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
3150
3152
  } & {
3151
3153
  type: "polling";
3152
3154
  schedule?: string;
3153
- run(args: import("frogbot").PieceRunArgs<Record<string, never>, {
3154
- botAppType: "MultiTenant" | "SingleTenant";
3155
- botUsername: string;
3156
- botTenantId?: string | undefined;
3157
- botApiUrl?: string | undefined;
3158
- }, {
3159
- baseUrl: string;
3160
- request: <T>(path: string, schema: z.ZodType<T>, options?: {
3161
- method?: string;
3162
- body?: unknown;
3163
- headers?: Record<string, string>;
3164
- query?: Record<string, string | number>;
3165
- signal?: AbortSignal;
3166
- }) => Promise<T>;
3167
- text(path: string, options?: {
3168
- method?: string;
3169
- body?: unknown;
3170
- headers?: Record<string, string>;
3171
- query?: Record<string, string | number>;
3172
- signal?: AbortSignal;
3173
- }): Promise<string>;
3174
- list: <T>(path: string, schema: z.ZodType<T>, options?: {
3175
- method?: string;
3176
- body?: unknown;
3177
- headers?: Record<string, string>;
3178
- query?: Record<string, string | number>;
3179
- signal?: AbortSignal;
3180
- }) => Promise<T[]>;
3181
- page: <T>(path: string, schema: z.ZodType<T>, options?: {
3182
- method?: string;
3183
- body?: unknown;
3184
- headers?: Record<string, string>;
3185
- query?: Record<string, string | number>;
3186
- signal?: AbortSignal;
3187
- }) => Promise<import("./schemas.js").GraphPage<T>>;
3188
- meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
3189
- authorize(target: URL, headers: Headers): void;
3190
- }> & {
3155
+ run(args: {
3156
+ input: Record<string, never>;
3157
+ options: {
3158
+ botAppType: "MultiTenant" | "SingleTenant";
3159
+ botUsername: string;
3160
+ botTenantId?: string | undefined;
3161
+ botApiUrl?: string | undefined;
3162
+ };
3163
+ client: {
3164
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
3165
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
3166
+ method?: string;
3167
+ body?: unknown;
3168
+ headers?: Record<string, string>;
3169
+ query?: Record<string, string | number>;
3170
+ signal?: AbortSignal;
3171
+ }) => Promise<T>;
3172
+ text(path: string, options?: {
3173
+ method?: string;
3174
+ body?: unknown;
3175
+ headers?: Record<string, string>;
3176
+ query?: Record<string, string | number>;
3177
+ signal?: AbortSignal;
3178
+ }): Promise<string>;
3179
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
3180
+ method?: string;
3181
+ body?: unknown;
3182
+ headers?: Record<string, string>;
3183
+ query?: Record<string, string | number>;
3184
+ signal?: AbortSignal;
3185
+ }) => Promise<T[]>;
3186
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
3187
+ method?: string;
3188
+ body?: unknown;
3189
+ headers?: Record<string, string>;
3190
+ query?: Record<string, string | number>;
3191
+ signal?: AbortSignal;
3192
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
3193
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
3194
+ authorize(target: URL, headers: Headers): void;
3195
+ };
3196
+ req: import("frogbot").FrogBotRequest;
3197
+ } & {
3191
3198
  cursor?: import("frogbot").PieceJSON | undefined;
3192
3199
  }): Promise<{
3193
3200
  events: {
@@ -3241,46 +3248,51 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
3241
3248
  } & {
3242
3249
  type: "polling";
3243
3250
  schedule?: string;
3244
- run(args: import("frogbot").PieceRunArgs<{
3245
- chatId: string;
3246
- }, {
3247
- botAppType: "MultiTenant" | "SingleTenant";
3248
- botUsername: string;
3249
- botTenantId?: string | undefined;
3250
- botApiUrl?: string | undefined;
3251
- }, {
3252
- baseUrl: string;
3253
- request: <T>(path: string, schema: z.ZodType<T>, options?: {
3254
- method?: string;
3255
- body?: unknown;
3256
- headers?: Record<string, string>;
3257
- query?: Record<string, string | number>;
3258
- signal?: AbortSignal;
3259
- }) => Promise<T>;
3260
- text(path: string, options?: {
3261
- method?: string;
3262
- body?: unknown;
3263
- headers?: Record<string, string>;
3264
- query?: Record<string, string | number>;
3265
- signal?: AbortSignal;
3266
- }): Promise<string>;
3267
- list: <T>(path: string, schema: z.ZodType<T>, options?: {
3268
- method?: string;
3269
- body?: unknown;
3270
- headers?: Record<string, string>;
3271
- query?: Record<string, string | number>;
3272
- signal?: AbortSignal;
3273
- }) => Promise<T[]>;
3274
- page: <T>(path: string, schema: z.ZodType<T>, options?: {
3275
- method?: string;
3276
- body?: unknown;
3277
- headers?: Record<string, string>;
3278
- query?: Record<string, string | number>;
3279
- signal?: AbortSignal;
3280
- }) => Promise<import("./schemas.js").GraphPage<T>>;
3281
- meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
3282
- authorize(target: URL, headers: Headers): void;
3283
- }> & {
3251
+ run(args: {
3252
+ input: {
3253
+ chatId: string;
3254
+ };
3255
+ options: {
3256
+ botAppType: "MultiTenant" | "SingleTenant";
3257
+ botUsername: string;
3258
+ botTenantId?: string | undefined;
3259
+ botApiUrl?: string | undefined;
3260
+ };
3261
+ client: {
3262
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
3263
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
3264
+ method?: string;
3265
+ body?: unknown;
3266
+ headers?: Record<string, string>;
3267
+ query?: Record<string, string | number>;
3268
+ signal?: AbortSignal;
3269
+ }) => Promise<T>;
3270
+ text(path: string, options?: {
3271
+ method?: string;
3272
+ body?: unknown;
3273
+ headers?: Record<string, string>;
3274
+ query?: Record<string, string | number>;
3275
+ signal?: AbortSignal;
3276
+ }): Promise<string>;
3277
+ list: <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<T[]>;
3284
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
3285
+ method?: string;
3286
+ body?: unknown;
3287
+ headers?: Record<string, string>;
3288
+ query?: Record<string, string | number>;
3289
+ signal?: AbortSignal;
3290
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
3291
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
3292
+ authorize(target: URL, headers: Headers): void;
3293
+ };
3294
+ req: import("frogbot").FrogBotRequest;
3295
+ } & {
3284
3296
  cursor?: import("frogbot").PieceJSON | undefined;
3285
3297
  }): Promise<{
3286
3298
  events: {
@@ -3309,44 +3321,49 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
3309
3321
  } & {
3310
3322
  type: "app";
3311
3323
  event: string;
3312
- run(args: import("frogbot").PieceRunArgs<Record<string, never>, {
3313
- botAppType: "MultiTenant" | "SingleTenant";
3314
- botUsername: string;
3315
- botTenantId?: string | undefined;
3316
- botApiUrl?: string | undefined;
3317
- }, {
3318
- baseUrl: string;
3319
- request: <T>(path: string, schema: z.ZodType<T>, options?: {
3320
- method?: string;
3321
- body?: unknown;
3322
- headers?: Record<string, string>;
3323
- query?: Record<string, string | number>;
3324
- signal?: AbortSignal;
3325
- }) => Promise<T>;
3326
- text(path: string, options?: {
3327
- method?: string;
3328
- body?: unknown;
3329
- headers?: Record<string, string>;
3330
- query?: Record<string, string | number>;
3331
- signal?: AbortSignal;
3332
- }): Promise<string>;
3333
- list: <T>(path: string, schema: z.ZodType<T>, options?: {
3334
- method?: string;
3335
- body?: unknown;
3336
- headers?: Record<string, string>;
3337
- query?: Record<string, string | number>;
3338
- signal?: AbortSignal;
3339
- }) => Promise<T[]>;
3340
- page: <T>(path: string, schema: z.ZodType<T>, options?: {
3341
- method?: string;
3342
- body?: unknown;
3343
- headers?: Record<string, string>;
3344
- query?: Record<string, string | number>;
3345
- signal?: AbortSignal;
3346
- }) => Promise<import("./schemas.js").GraphPage<T>>;
3347
- meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
3348
- authorize(target: URL, headers: Headers): void;
3349
- }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
3324
+ run(args: {
3325
+ input: Record<string, never>;
3326
+ options: {
3327
+ botAppType: "MultiTenant" | "SingleTenant";
3328
+ botUsername: string;
3329
+ botTenantId?: string | undefined;
3330
+ botApiUrl?: string | undefined;
3331
+ };
3332
+ client: {
3333
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
3334
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
3335
+ method?: string;
3336
+ body?: unknown;
3337
+ headers?: Record<string, string>;
3338
+ query?: Record<string, string | number>;
3339
+ signal?: AbortSignal;
3340
+ }) => Promise<T>;
3341
+ text(path: string, options?: {
3342
+ method?: string;
3343
+ body?: unknown;
3344
+ headers?: Record<string, string>;
3345
+ query?: Record<string, string | number>;
3346
+ signal?: AbortSignal;
3347
+ }): Promise<string>;
3348
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
3349
+ method?: string;
3350
+ body?: unknown;
3351
+ headers?: Record<string, string>;
3352
+ query?: Record<string, string | number>;
3353
+ signal?: AbortSignal;
3354
+ }) => Promise<T[]>;
3355
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
3356
+ method?: string;
3357
+ body?: unknown;
3358
+ headers?: Record<string, string>;
3359
+ query?: Record<string, string | number>;
3360
+ signal?: AbortSignal;
3361
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
3362
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
3363
+ authorize(target: URL, headers: Headers): void;
3364
+ };
3365
+ req: import("frogbot").FrogBotRequest;
3366
+ }): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
3350
3367
  } & {
3351
3368
  slug: "messageReceived";
3352
3369
  }) | ({
@@ -3359,44 +3376,49 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
3359
3376
  } & {
3360
3377
  type: "app";
3361
3378
  event: string;
3362
- run(args: import("frogbot").PieceRunArgs<Record<string, never>, {
3363
- botAppType: "MultiTenant" | "SingleTenant";
3364
- botUsername: string;
3365
- botTenantId?: string | undefined;
3366
- botApiUrl?: string | undefined;
3367
- }, {
3368
- baseUrl: string;
3369
- request: <T>(path: string, schema: z.ZodType<T>, options?: {
3370
- method?: string;
3371
- body?: unknown;
3372
- headers?: Record<string, string>;
3373
- query?: Record<string, string | number>;
3374
- signal?: AbortSignal;
3375
- }) => Promise<T>;
3376
- text(path: string, options?: {
3377
- method?: string;
3378
- body?: unknown;
3379
- headers?: Record<string, string>;
3380
- query?: Record<string, string | number>;
3381
- signal?: AbortSignal;
3382
- }): Promise<string>;
3383
- list: <T>(path: string, schema: z.ZodType<T>, options?: {
3384
- method?: string;
3385
- body?: unknown;
3386
- headers?: Record<string, string>;
3387
- query?: Record<string, string | number>;
3388
- signal?: AbortSignal;
3389
- }) => Promise<T[]>;
3390
- page: <T>(path: string, schema: z.ZodType<T>, options?: {
3391
- method?: string;
3392
- body?: unknown;
3393
- headers?: Record<string, string>;
3394
- query?: Record<string, string | number>;
3395
- signal?: AbortSignal;
3396
- }) => Promise<import("./schemas.js").GraphPage<T>>;
3397
- meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
3398
- authorize(target: URL, headers: Headers): void;
3399
- }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
3379
+ run(args: {
3380
+ input: Record<string, never>;
3381
+ options: {
3382
+ botAppType: "MultiTenant" | "SingleTenant";
3383
+ botUsername: string;
3384
+ botTenantId?: string | undefined;
3385
+ botApiUrl?: string | undefined;
3386
+ };
3387
+ client: {
3388
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
3389
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
3390
+ method?: string;
3391
+ body?: unknown;
3392
+ headers?: Record<string, string>;
3393
+ query?: Record<string, string | number>;
3394
+ signal?: AbortSignal;
3395
+ }) => Promise<T>;
3396
+ text(path: string, options?: {
3397
+ method?: string;
3398
+ body?: unknown;
3399
+ headers?: Record<string, string>;
3400
+ query?: Record<string, string | number>;
3401
+ signal?: AbortSignal;
3402
+ }): Promise<string>;
3403
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
3404
+ method?: string;
3405
+ body?: unknown;
3406
+ headers?: Record<string, string>;
3407
+ query?: Record<string, string | number>;
3408
+ signal?: AbortSignal;
3409
+ }) => Promise<T[]>;
3410
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
3411
+ method?: string;
3412
+ body?: unknown;
3413
+ headers?: Record<string, string>;
3414
+ query?: Record<string, string | number>;
3415
+ signal?: AbortSignal;
3416
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
3417
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
3418
+ authorize(target: URL, headers: Headers): void;
3419
+ };
3420
+ req: import("frogbot").FrogBotRequest;
3421
+ }): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
3400
3422
  } & {
3401
3423
  slug: "messageReactionReceived";
3402
3424
  }) | ({
@@ -3409,94 +3431,104 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
3409
3431
  } & {
3410
3432
  type: "app";
3411
3433
  event: string;
3412
- run(args: import("frogbot").PieceRunArgs<Record<string, never>, {
3413
- botAppType: "MultiTenant" | "SingleTenant";
3414
- botUsername: string;
3415
- botTenantId?: string | undefined;
3416
- botApiUrl?: string | undefined;
3417
- }, {
3418
- baseUrl: string;
3419
- request: <T>(path: string, schema: z.ZodType<T>, options?: {
3420
- method?: string;
3421
- body?: unknown;
3422
- headers?: Record<string, string>;
3423
- query?: Record<string, string | number>;
3424
- signal?: AbortSignal;
3425
- }) => Promise<T>;
3426
- text(path: string, options?: {
3427
- method?: string;
3428
- body?: unknown;
3429
- headers?: Record<string, string>;
3430
- query?: Record<string, string | number>;
3431
- signal?: AbortSignal;
3432
- }): Promise<string>;
3433
- list: <T>(path: string, schema: z.ZodType<T>, options?: {
3434
- method?: string;
3435
- body?: unknown;
3436
- headers?: Record<string, string>;
3437
- query?: Record<string, string | number>;
3438
- signal?: AbortSignal;
3439
- }) => Promise<T[]>;
3440
- page: <T>(path: string, schema: z.ZodType<T>, options?: {
3441
- method?: string;
3442
- body?: unknown;
3443
- headers?: Record<string, string>;
3444
- query?: Record<string, string | number>;
3445
- signal?: AbortSignal;
3446
- }) => Promise<import("./schemas.js").GraphPage<T>>;
3447
- meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
3448
- authorize(target: URL, headers: Headers): void;
3449
- }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
3434
+ run(args: {
3435
+ input: Record<string, never>;
3436
+ options: {
3437
+ botAppType: "MultiTenant" | "SingleTenant";
3438
+ botUsername: string;
3439
+ botTenantId?: string | undefined;
3440
+ botApiUrl?: string | undefined;
3441
+ };
3442
+ client: {
3443
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
3444
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
3445
+ method?: string;
3446
+ body?: unknown;
3447
+ headers?: Record<string, string>;
3448
+ query?: Record<string, string | number>;
3449
+ signal?: AbortSignal;
3450
+ }) => Promise<T>;
3451
+ text(path: string, options?: {
3452
+ method?: string;
3453
+ body?: unknown;
3454
+ headers?: Record<string, string>;
3455
+ query?: Record<string, string | number>;
3456
+ signal?: AbortSignal;
3457
+ }): Promise<string>;
3458
+ list: <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<T[]>;
3465
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
3466
+ method?: string;
3467
+ body?: unknown;
3468
+ headers?: Record<string, string>;
3469
+ query?: Record<string, string | number>;
3470
+ signal?: AbortSignal;
3471
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
3472
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
3473
+ authorize(target: URL, headers: Headers): void;
3474
+ };
3475
+ req: import("frogbot").FrogBotRequest;
3476
+ }): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
3450
3477
  } & {
3451
3478
  slug: "cardActionReceived";
3452
- }) | ({
3453
- slug: string;
3454
- label?: string;
3455
- description: string;
3456
- input: z.ZodObject<{}, z.core.$strip>;
3457
- output?: z.ZodRecord<z.ZodString, z.ZodUnknown> | undefined;
3458
- sample?: Record<string, unknown> | undefined;
3459
- } & {
3460
- type: "app";
3461
- event: string;
3462
- run(args: import("frogbot").PieceRunArgs<Record<string, never>, {
3463
- botAppType: "MultiTenant" | "SingleTenant";
3464
- botUsername: string;
3465
- botTenantId?: string | undefined;
3466
- botApiUrl?: string | undefined;
3467
- }, {
3468
- baseUrl: string;
3469
- request: <T>(path: string, schema: z.ZodType<T>, options?: {
3470
- method?: string;
3471
- body?: unknown;
3472
- headers?: Record<string, string>;
3473
- query?: Record<string, string | number>;
3474
- signal?: AbortSignal;
3475
- }) => Promise<T>;
3476
- text(path: string, options?: {
3477
- method?: string;
3478
- body?: unknown;
3479
- headers?: Record<string, string>;
3480
- query?: Record<string, string | number>;
3481
- signal?: AbortSignal;
3482
- }): Promise<string>;
3483
- list: <T>(path: string, schema: z.ZodType<T>, options?: {
3484
- method?: string;
3485
- body?: unknown;
3486
- headers?: Record<string, string>;
3487
- query?: Record<string, string | number>;
3488
- signal?: AbortSignal;
3489
- }) => Promise<T[]>;
3490
- page: <T>(path: string, schema: z.ZodType<T>, options?: {
3491
- method?: string;
3492
- body?: unknown;
3493
- headers?: Record<string, string>;
3494
- query?: Record<string, string | number>;
3495
- signal?: AbortSignal;
3496
- }) => Promise<import("./schemas.js").GraphPage<T>>;
3497
- meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
3498
- authorize(target: URL, headers: Headers): void;
3499
- }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
3479
+ }) | ({
3480
+ slug: string;
3481
+ label?: string;
3482
+ description: string;
3483
+ input: z.ZodObject<{}, z.core.$strip>;
3484
+ output?: z.ZodRecord<z.ZodString, z.ZodUnknown> | undefined;
3485
+ sample?: Record<string, unknown> | undefined;
3486
+ } & {
3487
+ type: "app";
3488
+ event: string;
3489
+ run(args: {
3490
+ input: Record<string, never>;
3491
+ options: {
3492
+ botAppType: "MultiTenant" | "SingleTenant";
3493
+ botUsername: string;
3494
+ botTenantId?: string | undefined;
3495
+ botApiUrl?: string | undefined;
3496
+ };
3497
+ client: {
3498
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
3499
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
3500
+ method?: string;
3501
+ body?: unknown;
3502
+ headers?: Record<string, string>;
3503
+ query?: Record<string, string | number>;
3504
+ signal?: AbortSignal;
3505
+ }) => Promise<T>;
3506
+ text(path: string, options?: {
3507
+ method?: string;
3508
+ body?: unknown;
3509
+ headers?: Record<string, string>;
3510
+ query?: Record<string, string | number>;
3511
+ signal?: AbortSignal;
3512
+ }): Promise<string>;
3513
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
3514
+ method?: string;
3515
+ body?: unknown;
3516
+ headers?: Record<string, string>;
3517
+ query?: Record<string, string | number>;
3518
+ signal?: AbortSignal;
3519
+ }) => Promise<T[]>;
3520
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
3521
+ method?: string;
3522
+ body?: unknown;
3523
+ headers?: Record<string, string>;
3524
+ query?: Record<string, string | number>;
3525
+ signal?: AbortSignal;
3526
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
3527
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
3528
+ authorize(target: URL, headers: Headers): void;
3529
+ };
3530
+ req: import("frogbot").FrogBotRequest;
3531
+ }): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
3500
3532
  } & {
3501
3533
  slug: "conversationUpdated";
3502
3534
  }) | ({
@@ -3509,44 +3541,49 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
3509
3541
  } & {
3510
3542
  type: "app";
3511
3543
  event: string;
3512
- run(args: import("frogbot").PieceRunArgs<Record<string, never>, {
3513
- botAppType: "MultiTenant" | "SingleTenant";
3514
- botUsername: string;
3515
- botTenantId?: string | undefined;
3516
- botApiUrl?: string | undefined;
3517
- }, {
3518
- baseUrl: string;
3519
- request: <T>(path: string, schema: z.ZodType<T>, options?: {
3520
- method?: string;
3521
- body?: unknown;
3522
- headers?: Record<string, string>;
3523
- query?: Record<string, string | number>;
3524
- signal?: AbortSignal;
3525
- }) => Promise<T>;
3526
- text(path: string, options?: {
3527
- method?: string;
3528
- body?: unknown;
3529
- headers?: Record<string, string>;
3530
- query?: Record<string, string | number>;
3531
- signal?: AbortSignal;
3532
- }): Promise<string>;
3533
- list: <T>(path: string, schema: z.ZodType<T>, options?: {
3534
- method?: string;
3535
- body?: unknown;
3536
- headers?: Record<string, string>;
3537
- query?: Record<string, string | number>;
3538
- signal?: AbortSignal;
3539
- }) => Promise<T[]>;
3540
- page: <T>(path: string, schema: z.ZodType<T>, options?: {
3541
- method?: string;
3542
- body?: unknown;
3543
- headers?: Record<string, string>;
3544
- query?: Record<string, string | number>;
3545
- signal?: AbortSignal;
3546
- }) => Promise<import("./schemas.js").GraphPage<T>>;
3547
- meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
3548
- authorize(target: URL, headers: Headers): void;
3549
- }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
3544
+ run(args: {
3545
+ input: Record<string, never>;
3546
+ options: {
3547
+ botAppType: "MultiTenant" | "SingleTenant";
3548
+ botUsername: string;
3549
+ botTenantId?: string | undefined;
3550
+ botApiUrl?: string | undefined;
3551
+ };
3552
+ client: {
3553
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
3554
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
3555
+ method?: string;
3556
+ body?: unknown;
3557
+ headers?: Record<string, string>;
3558
+ query?: Record<string, string | number>;
3559
+ signal?: AbortSignal;
3560
+ }) => Promise<T>;
3561
+ text(path: string, options?: {
3562
+ method?: string;
3563
+ body?: unknown;
3564
+ headers?: Record<string, string>;
3565
+ query?: Record<string, string | number>;
3566
+ signal?: AbortSignal;
3567
+ }): Promise<string>;
3568
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
3569
+ method?: string;
3570
+ body?: unknown;
3571
+ headers?: Record<string, string>;
3572
+ query?: Record<string, string | number>;
3573
+ signal?: AbortSignal;
3574
+ }) => Promise<T[]>;
3575
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
3576
+ method?: string;
3577
+ body?: unknown;
3578
+ headers?: Record<string, string>;
3579
+ query?: Record<string, string | number>;
3580
+ signal?: AbortSignal;
3581
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
3582
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
3583
+ authorize(target: URL, headers: Headers): void;
3584
+ };
3585
+ req: import("frogbot").FrogBotRequest;
3586
+ }): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
3550
3587
  } & {
3551
3588
  slug: "installationUpdated";
3552
3589
  }) | ({
@@ -3559,44 +3596,49 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
3559
3596
  } & {
3560
3597
  type: "app";
3561
3598
  event: string;
3562
- run(args: import("frogbot").PieceRunArgs<Record<string, never>, {
3563
- botAppType: "MultiTenant" | "SingleTenant";
3564
- botUsername: string;
3565
- botTenantId?: string | undefined;
3566
- botApiUrl?: string | undefined;
3567
- }, {
3568
- baseUrl: string;
3569
- request: <T>(path: string, schema: z.ZodType<T>, options?: {
3570
- method?: string;
3571
- body?: unknown;
3572
- headers?: Record<string, string>;
3573
- query?: Record<string, string | number>;
3574
- signal?: AbortSignal;
3575
- }) => Promise<T>;
3576
- text(path: string, options?: {
3577
- method?: string;
3578
- body?: unknown;
3579
- headers?: Record<string, string>;
3580
- query?: Record<string, string | number>;
3581
- signal?: AbortSignal;
3582
- }): Promise<string>;
3583
- list: <T>(path: string, schema: z.ZodType<T>, options?: {
3584
- method?: string;
3585
- body?: unknown;
3586
- headers?: Record<string, string>;
3587
- query?: Record<string, string | number>;
3588
- signal?: AbortSignal;
3589
- }) => Promise<T[]>;
3590
- page: <T>(path: string, schema: z.ZodType<T>, options?: {
3591
- method?: string;
3592
- body?: unknown;
3593
- headers?: Record<string, string>;
3594
- query?: Record<string, string | number>;
3595
- signal?: AbortSignal;
3596
- }) => Promise<import("./schemas.js").GraphPage<T>>;
3597
- meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
3598
- authorize(target: URL, headers: Headers): void;
3599
- }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
3599
+ run(args: {
3600
+ input: Record<string, never>;
3601
+ options: {
3602
+ botAppType: "MultiTenant" | "SingleTenant";
3603
+ botUsername: string;
3604
+ botTenantId?: string | undefined;
3605
+ botApiUrl?: string | undefined;
3606
+ };
3607
+ client: {
3608
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
3609
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
3610
+ method?: string;
3611
+ body?: unknown;
3612
+ headers?: Record<string, string>;
3613
+ query?: Record<string, string | number>;
3614
+ signal?: AbortSignal;
3615
+ }) => Promise<T>;
3616
+ text(path: string, options?: {
3617
+ method?: string;
3618
+ body?: unknown;
3619
+ headers?: Record<string, string>;
3620
+ query?: Record<string, string | number>;
3621
+ signal?: AbortSignal;
3622
+ }): Promise<string>;
3623
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
3624
+ method?: string;
3625
+ body?: unknown;
3626
+ headers?: Record<string, string>;
3627
+ query?: Record<string, string | number>;
3628
+ signal?: AbortSignal;
3629
+ }) => Promise<T[]>;
3630
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
3631
+ method?: string;
3632
+ body?: unknown;
3633
+ headers?: Record<string, string>;
3634
+ query?: Record<string, string | number>;
3635
+ signal?: AbortSignal;
3636
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
3637
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
3638
+ authorize(target: URL, headers: Headers): void;
3639
+ };
3640
+ req: import("frogbot").FrogBotRequest;
3641
+ }): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
3600
3642
  } & {
3601
3643
  slug: "dialogOpened";
3602
3644
  }) | ({
@@ -3609,44 +3651,49 @@ export declare const createMicrosoftTeams: import("frogbot").PieceFactory<{
3609
3651
  } & {
3610
3652
  type: "app";
3611
3653
  event: string;
3612
- run(args: import("frogbot").PieceRunArgs<Record<string, never>, {
3613
- botAppType: "MultiTenant" | "SingleTenant";
3614
- botUsername: string;
3615
- botTenantId?: string | undefined;
3616
- botApiUrl?: string | undefined;
3617
- }, {
3618
- baseUrl: string;
3619
- request: <T>(path: string, schema: z.ZodType<T>, options?: {
3620
- method?: string;
3621
- body?: unknown;
3622
- headers?: Record<string, string>;
3623
- query?: Record<string, string | number>;
3624
- signal?: AbortSignal;
3625
- }) => Promise<T>;
3626
- text(path: string, options?: {
3627
- method?: string;
3628
- body?: unknown;
3629
- headers?: Record<string, string>;
3630
- query?: Record<string, string | number>;
3631
- signal?: AbortSignal;
3632
- }): Promise<string>;
3633
- list: <T>(path: string, schema: z.ZodType<T>, options?: {
3634
- method?: string;
3635
- body?: unknown;
3636
- headers?: Record<string, string>;
3637
- query?: Record<string, string | number>;
3638
- signal?: AbortSignal;
3639
- }) => Promise<T[]>;
3640
- page: <T>(path: string, schema: z.ZodType<T>, options?: {
3641
- method?: string;
3642
- body?: unknown;
3643
- headers?: Record<string, string>;
3644
- query?: Record<string, string | number>;
3645
- signal?: AbortSignal;
3646
- }) => Promise<import("./schemas.js").GraphPage<T>>;
3647
- meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
3648
- authorize(target: URL, headers: Headers): void;
3649
- }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
3654
+ run(args: {
3655
+ input: Record<string, never>;
3656
+ options: {
3657
+ botAppType: "MultiTenant" | "SingleTenant";
3658
+ botUsername: string;
3659
+ botTenantId?: string | undefined;
3660
+ botApiUrl?: string | undefined;
3661
+ };
3662
+ client: {
3663
+ baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
3664
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
3665
+ method?: string;
3666
+ body?: unknown;
3667
+ headers?: Record<string, string>;
3668
+ query?: Record<string, string | number>;
3669
+ signal?: AbortSignal;
3670
+ }) => Promise<T>;
3671
+ text(path: string, options?: {
3672
+ method?: string;
3673
+ body?: unknown;
3674
+ headers?: Record<string, string>;
3675
+ query?: Record<string, string | number>;
3676
+ signal?: AbortSignal;
3677
+ }): Promise<string>;
3678
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
3679
+ method?: string;
3680
+ body?: unknown;
3681
+ headers?: Record<string, string>;
3682
+ query?: Record<string, string | number>;
3683
+ signal?: AbortSignal;
3684
+ }) => Promise<T[]>;
3685
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
3686
+ method?: string;
3687
+ body?: unknown;
3688
+ headers?: Record<string, string>;
3689
+ query?: Record<string, string | number>;
3690
+ signal?: AbortSignal;
3691
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
3692
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
3693
+ authorize(target: URL, headers: Headers): void;
3694
+ };
3695
+ req: import("frogbot").FrogBotRequest;
3696
+ }): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
3650
3697
  } & {
3651
3698
  slug: "dialogSubmitted";
3652
3699
  }))[];