@frogbotai/piece-microsoft-teams 0.27.0 → 0.29.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/actions.d.ts CHANGED
@@ -1,74 +1,141 @@
1
- import type { PieceRunArgs } from 'frogbot/pieces';
2
1
  import { z } from 'zod';
3
- import type { MicrosoftTeamsClient } from './client.js';
4
- import { channels, chats, members, teams } from './options.js';
5
- type Run<T extends z.ZodType> = PieceRunArgs<z.output<T>, object, MicrosoftTeamsClient>;
6
- declare const createChannelInput: z.ZodObject<{
2
+ export declare const createChannel: import("frogbot").PieceActionDefinition<z.ZodObject<{
7
3
  channelDisplayName: z.ZodString;
8
4
  channelDescription: z.ZodOptional<z.ZodString>;
9
5
  teamId: z.ZodString;
10
- }, z.core.$strip>;
11
- export declare const createChannel: {
12
- slug: string;
13
- description: string;
14
- input: z.ZodObject<{
15
- channelDisplayName: z.ZodString;
16
- channelDescription: z.ZodOptional<z.ZodString>;
17
- teamId: z.ZodString;
18
- }, z.core.$strip>;
19
- output: z.ZodObject<{
20
- id: z.ZodString;
21
- displayName: z.ZodString;
22
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
- createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
- membershipType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
- isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
26
- }, z.core.$loose>;
27
- options: {
28
- teamId: typeof teams;
29
- };
30
- idempotent: boolean;
31
- run({ client, input, req }: Run<typeof createChannelInput>): Promise<{
32
- [x: string]: unknown;
33
- id: string;
34
- displayName: string;
35
- description?: string | null | undefined;
36
- createdDateTime?: string | null | undefined;
37
- membershipType?: string | null | undefined;
38
- isArchived?: boolean | null | undefined;
6
+ }, z.core.$strip>, z.ZodObject<{
7
+ id: z.ZodString;
8
+ displayName: z.ZodString;
9
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ membershipType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
13
+ }, z.core.$loose>, {
14
+ botAppType: "MultiTenant" | "SingleTenant";
15
+ botUsername: string;
16
+ botTenantId?: string | undefined;
17
+ botApiUrl?: string | undefined;
18
+ }, {
19
+ baseUrl: string;
20
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
21
+ method?: string;
22
+ body?: unknown;
23
+ headers?: Record<string, string>;
24
+ query?: Record<string, string | number>;
25
+ signal?: AbortSignal;
26
+ }) => Promise<T>;
27
+ text(path: string, options?: {
28
+ method?: string;
29
+ body?: unknown;
30
+ headers?: Record<string, string>;
31
+ query?: Record<string, string | number>;
32
+ signal?: AbortSignal;
33
+ }): Promise<string>;
34
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
35
+ method?: string;
36
+ body?: unknown;
37
+ headers?: Record<string, string>;
38
+ query?: Record<string, string | number>;
39
+ signal?: AbortSignal;
40
+ }) => Promise<T[]>;
41
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
42
+ method?: string;
43
+ body?: unknown;
44
+ headers?: Record<string, string>;
45
+ query?: Record<string, string | number>;
46
+ signal?: AbortSignal;
47
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
48
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
49
+ custom<T>(path: string, schema: z.ZodType<T>, options?: {
50
+ method?: string;
51
+ body?: unknown;
52
+ headers?: Record<string, string>;
53
+ query?: Record<string, string | number>;
54
+ signal?: AbortSignal;
55
+ }): Promise<{
56
+ status: number;
57
+ body: T;
39
58
  }>;
59
+ }, {
60
+ [x: string]: unknown;
61
+ id: string;
62
+ displayName: string;
63
+ description?: string | null | undefined;
64
+ createdDateTime?: string | null | undefined;
65
+ membershipType?: string | null | undefined;
66
+ isArchived?: boolean | null | undefined;
67
+ }> & {
68
+ slug: "createChannel";
40
69
  };
41
- export declare const createPrivateChannel: {
42
- slug: string;
43
- description: string;
44
- run({ client, input, req }: Run<typeof createChannelInput>): Promise<{
45
- [x: string]: unknown;
46
- id: string;
47
- displayName: string;
48
- description?: string | null | undefined;
49
- createdDateTime?: string | null | undefined;
50
- membershipType?: string | null | undefined;
51
- isArchived?: boolean | null | undefined;
70
+ export declare const createPrivateChannel: import("frogbot").PieceActionDefinition<z.ZodObject<{
71
+ channelDisplayName: z.ZodString;
72
+ channelDescription: z.ZodOptional<z.ZodString>;
73
+ teamId: z.ZodString;
74
+ }, z.core.$strip>, z.ZodObject<{
75
+ id: z.ZodString;
76
+ displayName: z.ZodString;
77
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
78
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
79
+ membershipType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
80
+ isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
81
+ }, z.core.$loose>, {
82
+ botAppType: "MultiTenant" | "SingleTenant";
83
+ botUsername: string;
84
+ botTenantId?: string | undefined;
85
+ botApiUrl?: string | undefined;
86
+ }, {
87
+ baseUrl: string;
88
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
89
+ method?: string;
90
+ body?: unknown;
91
+ headers?: Record<string, string>;
92
+ query?: Record<string, string | number>;
93
+ signal?: AbortSignal;
94
+ }) => Promise<T>;
95
+ text(path: string, options?: {
96
+ method?: string;
97
+ body?: unknown;
98
+ headers?: Record<string, string>;
99
+ query?: Record<string, string | number>;
100
+ signal?: AbortSignal;
101
+ }): Promise<string>;
102
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
103
+ method?: string;
104
+ body?: unknown;
105
+ headers?: Record<string, string>;
106
+ query?: Record<string, string | number>;
107
+ signal?: AbortSignal;
108
+ }) => Promise<T[]>;
109
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
110
+ method?: string;
111
+ body?: unknown;
112
+ headers?: Record<string, string>;
113
+ query?: Record<string, string | number>;
114
+ signal?: AbortSignal;
115
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
116
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
117
+ custom<T>(path: string, schema: z.ZodType<T>, options?: {
118
+ method?: string;
119
+ body?: unknown;
120
+ headers?: Record<string, string>;
121
+ query?: Record<string, string | number>;
122
+ signal?: AbortSignal;
123
+ }): Promise<{
124
+ status: number;
125
+ body: T;
52
126
  }>;
53
- input: z.ZodObject<{
54
- channelDisplayName: z.ZodString;
55
- channelDescription: z.ZodOptional<z.ZodString>;
56
- teamId: z.ZodString;
57
- }, z.core.$strip>;
58
- output: z.ZodObject<{
59
- id: z.ZodString;
60
- displayName: z.ZodString;
61
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
62
- createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
63
- membershipType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
64
- isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
65
- }, z.core.$loose>;
66
- options: {
67
- teamId: typeof teams;
68
- };
69
- idempotent: boolean;
127
+ }, {
128
+ [x: string]: unknown;
129
+ id: string;
130
+ displayName: string;
131
+ description?: string | null | undefined;
132
+ createdDateTime?: string | null | undefined;
133
+ membershipType?: string | null | undefined;
134
+ isArchived?: boolean | null | undefined;
135
+ }> & {
136
+ slug: "createPrivateChannel";
70
137
  };
71
- declare const sendChannelMessageInput: z.ZodObject<{
138
+ export declare const sendChannelMessage: import("frogbot").PieceActionDefinition<z.ZodObject<{
72
139
  contentType: z.ZodDefault<z.ZodEnum<{
73
140
  text: "text";
74
141
  html: "html";
@@ -76,94 +143,152 @@ declare const sendChannelMessageInput: z.ZodObject<{
76
143
  content: z.ZodString;
77
144
  channelId: z.ZodString;
78
145
  teamId: z.ZodString;
79
- }, z.core.$strip>;
80
- export declare const sendChannelMessage: {
81
- slug: string;
82
- description: string;
83
- input: z.ZodObject<{
84
- contentType: z.ZodDefault<z.ZodEnum<{
85
- text: "text";
86
- html: "html";
87
- }>>;
146
+ }, z.core.$strip>, z.ZodObject<{
147
+ id: z.ZodString;
148
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
149
+ lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
150
+ chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
151
+ body: z.ZodObject<{
88
152
  content: z.ZodString;
89
- channelId: z.ZodString;
90
- teamId: z.ZodString;
91
- }, z.core.$strip>;
92
- output: z.ZodObject<{
93
- id: z.ZodString;
94
- createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
95
- lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
96
- chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
97
- body: z.ZodObject<{
98
- content: z.ZodString;
99
- contentType: z.ZodString;
100
- }, z.core.$loose>;
153
+ contentType: z.ZodString;
101
154
  }, z.core.$loose>;
102
- options: {
103
- teamId: typeof teams;
104
- channelId: typeof channels;
105
- };
106
- idempotent: boolean;
107
- run({ client, input, req }: Run<typeof sendChannelMessageInput>): Promise<{
108
- [x: string]: unknown;
109
- id: string;
110
- body: {
111
- [x: string]: unknown;
112
- content: string;
113
- contentType: string;
114
- };
115
- createdDateTime?: string | null | undefined;
116
- lastModifiedDateTime?: string | null | undefined;
117
- chatId?: string | null | undefined;
155
+ }, z.core.$loose>, {
156
+ botAppType: "MultiTenant" | "SingleTenant";
157
+ botUsername: string;
158
+ botTenantId?: string | undefined;
159
+ botApiUrl?: string | undefined;
160
+ }, {
161
+ baseUrl: string;
162
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
163
+ method?: string;
164
+ body?: unknown;
165
+ headers?: Record<string, string>;
166
+ query?: Record<string, string | number>;
167
+ signal?: AbortSignal;
168
+ }) => Promise<T>;
169
+ text(path: string, options?: {
170
+ method?: string;
171
+ body?: unknown;
172
+ headers?: Record<string, string>;
173
+ query?: Record<string, string | number>;
174
+ signal?: AbortSignal;
175
+ }): Promise<string>;
176
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
177
+ method?: string;
178
+ body?: unknown;
179
+ headers?: Record<string, string>;
180
+ query?: Record<string, string | number>;
181
+ signal?: AbortSignal;
182
+ }) => Promise<T[]>;
183
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
184
+ method?: string;
185
+ body?: unknown;
186
+ headers?: Record<string, string>;
187
+ query?: Record<string, string | number>;
188
+ signal?: AbortSignal;
189
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
190
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
191
+ custom<T>(path: string, schema: z.ZodType<T>, options?: {
192
+ method?: string;
193
+ body?: unknown;
194
+ headers?: Record<string, string>;
195
+ query?: Record<string, string | number>;
196
+ signal?: AbortSignal;
197
+ }): Promise<{
198
+ status: number;
199
+ body: T;
118
200
  }>;
201
+ }, {
202
+ [x: string]: unknown;
203
+ id: string;
204
+ body: {
205
+ [x: string]: unknown;
206
+ content: string;
207
+ contentType: string;
208
+ };
209
+ createdDateTime?: string | null | undefined;
210
+ lastModifiedDateTime?: string | null | undefined;
211
+ chatId?: string | null | undefined;
212
+ }> & {
213
+ slug: "sendChannelMessage";
119
214
  };
120
- declare const sendChatMessageInput: z.ZodObject<{
215
+ export declare const sendChatMessage: import("frogbot").PieceActionDefinition<z.ZodObject<{
121
216
  contentType: z.ZodDefault<z.ZodEnum<{
122
217
  text: "text";
123
218
  html: "html";
124
219
  }>>;
125
220
  content: z.ZodString;
126
221
  chatId: z.ZodString;
127
- }, z.core.$strip>;
128
- export declare const sendChatMessage: {
129
- slug: string;
130
- description: string;
131
- input: z.ZodObject<{
132
- contentType: z.ZodDefault<z.ZodEnum<{
133
- text: "text";
134
- html: "html";
135
- }>>;
222
+ }, z.core.$strip>, z.ZodObject<{
223
+ id: z.ZodString;
224
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
225
+ lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
226
+ chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
227
+ body: z.ZodObject<{
136
228
  content: z.ZodString;
137
- chatId: z.ZodString;
138
- }, z.core.$strip>;
139
- output: z.ZodObject<{
140
- id: z.ZodString;
141
- createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
142
- lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
143
- chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
144
- body: z.ZodObject<{
145
- content: z.ZodString;
146
- contentType: z.ZodString;
147
- }, z.core.$loose>;
229
+ contentType: z.ZodString;
148
230
  }, z.core.$loose>;
149
- options: {
150
- chatId: typeof chats;
151
- };
152
- idempotent: boolean;
153
- run({ client, input, req }: Run<typeof sendChatMessageInput>): Promise<{
154
- [x: string]: unknown;
155
- id: string;
156
- body: {
157
- [x: string]: unknown;
158
- content: string;
159
- contentType: string;
160
- };
161
- createdDateTime?: string | null | undefined;
162
- lastModifiedDateTime?: string | null | undefined;
163
- chatId?: string | null | undefined;
231
+ }, z.core.$loose>, {
232
+ botAppType: "MultiTenant" | "SingleTenant";
233
+ botUsername: string;
234
+ botTenantId?: string | undefined;
235
+ botApiUrl?: string | undefined;
236
+ }, {
237
+ baseUrl: string;
238
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
239
+ method?: string;
240
+ body?: unknown;
241
+ headers?: Record<string, string>;
242
+ query?: Record<string, string | number>;
243
+ signal?: AbortSignal;
244
+ }) => Promise<T>;
245
+ text(path: string, options?: {
246
+ method?: string;
247
+ body?: unknown;
248
+ headers?: Record<string, string>;
249
+ query?: Record<string, string | number>;
250
+ signal?: AbortSignal;
251
+ }): Promise<string>;
252
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
253
+ method?: string;
254
+ body?: unknown;
255
+ headers?: Record<string, string>;
256
+ query?: Record<string, string | number>;
257
+ signal?: AbortSignal;
258
+ }) => Promise<T[]>;
259
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
260
+ method?: string;
261
+ body?: unknown;
262
+ headers?: Record<string, string>;
263
+ query?: Record<string, string | number>;
264
+ signal?: AbortSignal;
265
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
266
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
267
+ custom<T>(path: string, schema: z.ZodType<T>, options?: {
268
+ method?: string;
269
+ body?: unknown;
270
+ headers?: Record<string, string>;
271
+ query?: Record<string, string | number>;
272
+ signal?: AbortSignal;
273
+ }): Promise<{
274
+ status: number;
275
+ body: T;
164
276
  }>;
277
+ }, {
278
+ [x: string]: unknown;
279
+ id: string;
280
+ body: {
281
+ [x: string]: unknown;
282
+ content: string;
283
+ contentType: string;
284
+ };
285
+ createdDateTime?: string | null | undefined;
286
+ lastModifiedDateTime?: string | null | undefined;
287
+ chatId?: string | null | undefined;
288
+ }> & {
289
+ slug: "sendChatMessage";
165
290
  };
166
- declare const replyInput: z.ZodObject<{
291
+ export declare const replyToChannelMessage: import("frogbot").PieceActionDefinition<z.ZodObject<{
167
292
  contentType: z.ZodDefault<z.ZodEnum<{
168
293
  text: "text";
169
294
  html: "html";
@@ -172,49 +297,76 @@ declare const replyInput: z.ZodObject<{
172
297
  messageId: z.ZodString;
173
298
  channelId: z.ZodString;
174
299
  teamId: z.ZodString;
175
- }, z.core.$strip>;
176
- export declare const replyToChannelMessage: {
177
- slug: string;
178
- description: string;
179
- input: z.ZodObject<{
180
- contentType: z.ZodDefault<z.ZodEnum<{
181
- text: "text";
182
- html: "html";
183
- }>>;
300
+ }, z.core.$strip>, z.ZodObject<{
301
+ id: z.ZodString;
302
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
303
+ lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
304
+ chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
305
+ body: z.ZodObject<{
184
306
  content: z.ZodString;
185
- messageId: z.ZodString;
186
- channelId: z.ZodString;
187
- teamId: z.ZodString;
188
- }, z.core.$strip>;
189
- output: z.ZodObject<{
190
- id: z.ZodString;
191
- createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
192
- lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
193
- chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
194
- body: z.ZodObject<{
195
- content: z.ZodString;
196
- contentType: z.ZodString;
197
- }, z.core.$loose>;
307
+ contentType: z.ZodString;
198
308
  }, z.core.$loose>;
199
- options: {
200
- teamId: typeof teams;
201
- channelId: typeof channels;
202
- };
203
- idempotent: boolean;
204
- run({ client, input, req }: Run<typeof replyInput>): Promise<{
205
- [x: string]: unknown;
206
- id: string;
207
- body: {
208
- [x: string]: unknown;
209
- content: string;
210
- contentType: string;
211
- };
212
- createdDateTime?: string | null | undefined;
213
- lastModifiedDateTime?: string | null | undefined;
214
- chatId?: string | null | undefined;
309
+ }, z.core.$loose>, {
310
+ botAppType: "MultiTenant" | "SingleTenant";
311
+ botUsername: string;
312
+ botTenantId?: string | undefined;
313
+ botApiUrl?: string | undefined;
314
+ }, {
315
+ baseUrl: string;
316
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
317
+ method?: string;
318
+ body?: unknown;
319
+ headers?: Record<string, string>;
320
+ query?: Record<string, string | number>;
321
+ signal?: AbortSignal;
322
+ }) => Promise<T>;
323
+ text(path: string, options?: {
324
+ method?: string;
325
+ body?: unknown;
326
+ headers?: Record<string, string>;
327
+ query?: Record<string, string | number>;
328
+ signal?: AbortSignal;
329
+ }): Promise<string>;
330
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
331
+ method?: string;
332
+ body?: unknown;
333
+ headers?: Record<string, string>;
334
+ query?: Record<string, string | number>;
335
+ signal?: AbortSignal;
336
+ }) => Promise<T[]>;
337
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
338
+ method?: string;
339
+ body?: unknown;
340
+ headers?: Record<string, string>;
341
+ query?: Record<string, string | number>;
342
+ signal?: AbortSignal;
343
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
344
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
345
+ custom<T>(path: string, schema: z.ZodType<T>, options?: {
346
+ method?: string;
347
+ body?: unknown;
348
+ headers?: Record<string, string>;
349
+ query?: Record<string, string | number>;
350
+ signal?: AbortSignal;
351
+ }): Promise<{
352
+ status: number;
353
+ body: T;
215
354
  }>;
355
+ }, {
356
+ [x: string]: unknown;
357
+ id: string;
358
+ body: {
359
+ [x: string]: unknown;
360
+ content: string;
361
+ contentType: string;
362
+ };
363
+ createdDateTime?: string | null | undefined;
364
+ lastModifiedDateTime?: string | null | undefined;
365
+ chatId?: string | null | undefined;
366
+ }> & {
367
+ slug: "replyToChannelMessage";
216
368
  };
217
- declare const createChatInput: z.ZodObject<{
369
+ export declare const createChatAndSendMessage: import("frogbot").PieceActionDefinition<z.ZodObject<{
218
370
  contentType: z.ZodDefault<z.ZodEnum<{
219
371
  text: "text";
220
372
  html: "html";
@@ -222,96 +374,26 @@ declare const createChatInput: z.ZodObject<{
222
374
  content: z.ZodString;
223
375
  members: z.ZodArray<z.ZodString>;
224
376
  teamId: z.ZodString;
225
- }, z.core.$strip>;
226
- export declare const createChatAndSendMessage: {
227
- slug: string;
228
- description: string;
229
- input: z.ZodObject<{
230
- contentType: z.ZodDefault<z.ZodEnum<{
231
- text: "text";
232
- html: "html";
233
- }>>;
234
- content: z.ZodString;
235
- members: z.ZodArray<z.ZodString>;
236
- teamId: z.ZodString;
237
- }, z.core.$strip>;
238
- output: z.ZodObject<{
239
- chat: z.ZodObject<{
240
- id: z.ZodString;
241
- topic: z.ZodOptional<z.ZodNullable<z.ZodString>>;
242
- chatType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
243
- oneOnOne: "oneOnOne";
244
- group: "group";
245
- meeting: "meeting";
246
- unknownFutureValue: "unknownFutureValue";
247
- }>>>;
248
- createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
249
- lastUpdatedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
250
- members: z.ZodOptional<z.ZodArray<z.ZodObject<{
251
- id: z.ZodString;
252
- displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
253
- email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
254
- userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
255
- }, z.core.$loose>>>;
256
- }, z.core.$loose>;
257
- message: z.ZodObject<{
377
+ }, z.core.$strip>, z.ZodObject<{
378
+ chat: z.ZodObject<{
379
+ id: z.ZodString;
380
+ topic: z.ZodOptional<z.ZodNullable<z.ZodString>>;
381
+ chatType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
382
+ oneOnOne: "oneOnOne";
383
+ group: "group";
384
+ meeting: "meeting";
385
+ unknownFutureValue: "unknownFutureValue";
386
+ }>>>;
387
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
388
+ lastUpdatedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
389
+ members: z.ZodOptional<z.ZodArray<z.ZodObject<{
258
390
  id: z.ZodString;
259
- createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
260
- lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
261
- chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
262
- body: z.ZodObject<{
263
- content: z.ZodString;
264
- contentType: z.ZodString;
265
- }, z.core.$loose>;
266
- }, z.core.$loose>;
267
- }, z.core.$strip>;
268
- options: {
269
- teamId: typeof teams;
270
- members: typeof members;
271
- };
272
- idempotent: boolean;
273
- run({ client, input, req }: Run<typeof createChatInput>): Promise<{
274
- chat: {
275
- [x: string]: unknown;
276
- id: string;
277
- topic?: string | null | undefined;
278
- chatType?: "oneOnOne" | "group" | "meeting" | "unknownFutureValue" | null | undefined;
279
- createdDateTime?: string | null | undefined;
280
- lastUpdatedDateTime?: string | null | undefined;
281
- members?: {
282
- [x: string]: unknown;
283
- id: string;
284
- displayName?: string | null | undefined;
285
- email?: string | null | undefined;
286
- userId?: string | null | undefined;
287
- }[] | undefined;
288
- };
289
- message: {
290
- [x: string]: unknown;
291
- id: string;
292
- body: {
293
- [x: string]: unknown;
294
- content: string;
295
- contentType: string;
296
- };
297
- createdDateTime?: string | null | undefined;
298
- lastModifiedDateTime?: string | null | undefined;
299
- chatId?: string | null | undefined;
300
- };
301
- }>;
302
- };
303
- declare const getChatMessageInput: z.ZodObject<{
304
- messageId: z.ZodString;
305
- chatId: z.ZodString;
306
- }, z.core.$strip>;
307
- export declare const getChatMessage: {
308
- slug: string;
309
- description: string;
310
- input: z.ZodObject<{
311
- messageId: z.ZodString;
312
- chatId: z.ZodString;
313
- }, z.core.$strip>;
314
- output: z.ZodObject<{
391
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
392
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
393
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
394
+ }, z.core.$loose>>>;
395
+ }, z.core.$loose>;
396
+ message: z.ZodObject<{
315
397
  id: z.ZodString;
316
398
  createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
317
399
  lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -321,11 +403,69 @@ export declare const getChatMessage: {
321
403
  contentType: z.ZodString;
322
404
  }, z.core.$loose>;
323
405
  }, z.core.$loose>;
324
- options: {
325
- chatId: typeof chats;
406
+ }, z.core.$strip>, {
407
+ botAppType: "MultiTenant" | "SingleTenant";
408
+ botUsername: string;
409
+ botTenantId?: string | undefined;
410
+ botApiUrl?: string | undefined;
411
+ }, {
412
+ baseUrl: string;
413
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
414
+ method?: string;
415
+ body?: unknown;
416
+ headers?: Record<string, string>;
417
+ query?: Record<string, string | number>;
418
+ signal?: AbortSignal;
419
+ }) => Promise<T>;
420
+ text(path: string, options?: {
421
+ method?: string;
422
+ body?: unknown;
423
+ headers?: Record<string, string>;
424
+ query?: Record<string, string | number>;
425
+ signal?: AbortSignal;
426
+ }): Promise<string>;
427
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
428
+ method?: string;
429
+ body?: unknown;
430
+ headers?: Record<string, string>;
431
+ query?: Record<string, string | number>;
432
+ signal?: AbortSignal;
433
+ }) => Promise<T[]>;
434
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
435
+ method?: string;
436
+ body?: unknown;
437
+ headers?: Record<string, string>;
438
+ query?: Record<string, string | number>;
439
+ signal?: AbortSignal;
440
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
441
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
442
+ custom<T>(path: string, schema: z.ZodType<T>, options?: {
443
+ method?: string;
444
+ body?: unknown;
445
+ headers?: Record<string, string>;
446
+ query?: Record<string, string | number>;
447
+ signal?: AbortSignal;
448
+ }): Promise<{
449
+ status: number;
450
+ body: T;
451
+ }>;
452
+ }, {
453
+ chat: {
454
+ [x: string]: unknown;
455
+ id: string;
456
+ topic?: string | null | undefined;
457
+ chatType?: "oneOnOne" | "group" | "meeting" | "unknownFutureValue" | null | undefined;
458
+ createdDateTime?: string | null | undefined;
459
+ lastUpdatedDateTime?: string | null | undefined;
460
+ members?: {
461
+ [x: string]: unknown;
462
+ id: string;
463
+ displayName?: string | null | undefined;
464
+ email?: string | null | undefined;
465
+ userId?: string | null | undefined;
466
+ }[] | undefined;
326
467
  };
327
- idempotent: boolean;
328
- run({ client, input, req }: Run<typeof getChatMessageInput>): Promise<{
468
+ message: {
329
469
  [x: string]: unknown;
330
470
  id: string;
331
471
  body: {
@@ -336,156 +476,363 @@ export declare const getChatMessage: {
336
476
  createdDateTime?: string | null | undefined;
337
477
  lastModifiedDateTime?: string | null | undefined;
338
478
  chatId?: string | null | undefined;
339
- }>;
479
+ };
480
+ }> & {
481
+ slug: "createChatAndSendMessage";
340
482
  };
341
- export declare const deleteChatMessage: {
342
- slug: string;
343
- description: string;
344
- input: z.ZodObject<{
345
- messageId: z.ZodString;
346
- chatId: z.ZodString;
347
- }, z.core.$strip>;
348
- output: z.ZodObject<{
349
- success: z.ZodLiteral<true>;
350
- messageId: z.ZodString;
351
- chatId: z.ZodString;
352
- }, z.core.$strip>;
353
- options: {
354
- chatId: typeof chats;
483
+ export declare const getChatMessage: import("frogbot").PieceActionDefinition<z.ZodObject<{
484
+ messageId: z.ZodString;
485
+ chatId: z.ZodString;
486
+ }, z.core.$strip>, z.ZodObject<{
487
+ id: z.ZodString;
488
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
489
+ lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
490
+ chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
491
+ body: z.ZodObject<{
492
+ content: z.ZodString;
493
+ contentType: z.ZodString;
494
+ }, z.core.$loose>;
495
+ }, z.core.$loose>, {
496
+ botAppType: "MultiTenant" | "SingleTenant";
497
+ botUsername: string;
498
+ botTenantId?: string | undefined;
499
+ botApiUrl?: string | undefined;
500
+ }, {
501
+ baseUrl: string;
502
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
503
+ method?: string;
504
+ body?: unknown;
505
+ headers?: Record<string, string>;
506
+ query?: Record<string, string | number>;
507
+ signal?: AbortSignal;
508
+ }) => Promise<T>;
509
+ text(path: string, options?: {
510
+ method?: string;
511
+ body?: unknown;
512
+ headers?: Record<string, string>;
513
+ query?: Record<string, string | number>;
514
+ signal?: AbortSignal;
515
+ }): Promise<string>;
516
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
517
+ method?: string;
518
+ body?: unknown;
519
+ headers?: Record<string, string>;
520
+ query?: Record<string, string | number>;
521
+ signal?: AbortSignal;
522
+ }) => Promise<T[]>;
523
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
524
+ method?: string;
525
+ body?: unknown;
526
+ headers?: Record<string, string>;
527
+ query?: Record<string, string | number>;
528
+ signal?: AbortSignal;
529
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
530
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
531
+ custom<T>(path: string, schema: z.ZodType<T>, options?: {
532
+ method?: string;
533
+ body?: unknown;
534
+ headers?: Record<string, string>;
535
+ query?: Record<string, string | number>;
536
+ signal?: AbortSignal;
537
+ }): Promise<{
538
+ status: number;
539
+ body: T;
540
+ }>;
541
+ }, {
542
+ [x: string]: unknown;
543
+ id: string;
544
+ body: {
545
+ [x: string]: unknown;
546
+ content: string;
547
+ contentType: string;
355
548
  };
356
- idempotent: boolean;
357
- run({ client, input, req }: Run<typeof getChatMessageInput>): Promise<{
358
- success: boolean;
359
- messageId: string;
360
- chatId: string;
549
+ createdDateTime?: string | null | undefined;
550
+ lastModifiedDateTime?: string | null | undefined;
551
+ chatId?: string | null | undefined;
552
+ }> & {
553
+ slug: "getChatMessage";
554
+ };
555
+ export declare const deleteChatMessage: import("frogbot").PieceActionDefinition<z.ZodObject<{
556
+ messageId: z.ZodString;
557
+ chatId: z.ZodString;
558
+ }, z.core.$strip>, z.ZodObject<{
559
+ success: z.ZodLiteral<true>;
560
+ messageId: z.ZodString;
561
+ chatId: z.ZodString;
562
+ }, z.core.$strip>, {
563
+ botAppType: "MultiTenant" | "SingleTenant";
564
+ botUsername: string;
565
+ botTenantId?: string | undefined;
566
+ botApiUrl?: string | undefined;
567
+ }, {
568
+ baseUrl: string;
569
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
570
+ method?: string;
571
+ body?: unknown;
572
+ headers?: Record<string, string>;
573
+ query?: Record<string, string | number>;
574
+ signal?: AbortSignal;
575
+ }) => Promise<T>;
576
+ text(path: string, options?: {
577
+ method?: string;
578
+ body?: unknown;
579
+ headers?: Record<string, string>;
580
+ query?: Record<string, string | number>;
581
+ signal?: AbortSignal;
582
+ }): Promise<string>;
583
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
584
+ method?: string;
585
+ body?: unknown;
586
+ headers?: Record<string, string>;
587
+ query?: Record<string, string | number>;
588
+ signal?: AbortSignal;
589
+ }) => Promise<T[]>;
590
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
591
+ method?: string;
592
+ body?: unknown;
593
+ headers?: Record<string, string>;
594
+ query?: Record<string, string | number>;
595
+ signal?: AbortSignal;
596
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
597
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
598
+ custom<T>(path: string, schema: z.ZodType<T>, options?: {
599
+ method?: string;
600
+ body?: unknown;
601
+ headers?: Record<string, string>;
602
+ query?: Record<string, string | number>;
603
+ signal?: AbortSignal;
604
+ }): Promise<{
605
+ status: number;
606
+ body: T;
361
607
  }>;
608
+ }, {
609
+ success: true;
610
+ messageId: string;
611
+ chatId: string;
612
+ }> & {
613
+ slug: "deleteChatMessage";
362
614
  };
363
- declare const getChannelMessageInput: z.ZodObject<{
615
+ export declare const getChannelMessage: import("frogbot").PieceActionDefinition<z.ZodObject<{
364
616
  messageId: z.ZodString;
365
617
  replyId: z.ZodOptional<z.ZodString>;
366
618
  channelId: z.ZodString;
367
619
  teamId: z.ZodString;
368
- }, z.core.$strip>;
369
- export declare const getChannelMessage: {
370
- slug: string;
371
- description: string;
372
- input: z.ZodObject<{
373
- messageId: z.ZodString;
374
- replyId: z.ZodOptional<z.ZodString>;
375
- channelId: z.ZodString;
376
- teamId: z.ZodString;
377
- }, z.core.$strip>;
378
- output: z.ZodObject<{
379
- id: z.ZodString;
380
- createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
381
- lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
382
- chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
383
- body: z.ZodObject<{
384
- content: z.ZodString;
385
- contentType: z.ZodString;
386
- }, z.core.$loose>;
620
+ }, z.core.$strip>, z.ZodObject<{
621
+ id: z.ZodString;
622
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
623
+ lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
624
+ chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
625
+ body: z.ZodObject<{
626
+ content: z.ZodString;
627
+ contentType: z.ZodString;
387
628
  }, z.core.$loose>;
388
- options: {
389
- teamId: typeof teams;
390
- channelId: typeof channels;
391
- };
392
- idempotent: boolean;
393
- run({ client, input, req }: Run<typeof getChannelMessageInput>): Promise<{
394
- [x: string]: unknown;
395
- id: string;
396
- body: {
397
- [x: string]: unknown;
398
- content: string;
399
- contentType: string;
400
- };
401
- createdDateTime?: string | null | undefined;
402
- lastModifiedDateTime?: string | null | undefined;
403
- chatId?: string | null | undefined;
629
+ }, z.core.$loose>, {
630
+ botAppType: "MultiTenant" | "SingleTenant";
631
+ botUsername: string;
632
+ botTenantId?: string | undefined;
633
+ botApiUrl?: string | undefined;
634
+ }, {
635
+ baseUrl: string;
636
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
637
+ method?: string;
638
+ body?: unknown;
639
+ headers?: Record<string, string>;
640
+ query?: Record<string, string | number>;
641
+ signal?: AbortSignal;
642
+ }) => Promise<T>;
643
+ text(path: string, options?: {
644
+ method?: string;
645
+ body?: unknown;
646
+ headers?: Record<string, string>;
647
+ query?: Record<string, string | number>;
648
+ signal?: AbortSignal;
649
+ }): Promise<string>;
650
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
651
+ method?: string;
652
+ body?: unknown;
653
+ headers?: Record<string, string>;
654
+ query?: Record<string, string | number>;
655
+ signal?: AbortSignal;
656
+ }) => Promise<T[]>;
657
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
658
+ method?: string;
659
+ body?: unknown;
660
+ headers?: Record<string, string>;
661
+ query?: Record<string, string | number>;
662
+ signal?: AbortSignal;
663
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
664
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
665
+ custom<T>(path: string, schema: z.ZodType<T>, options?: {
666
+ method?: string;
667
+ body?: unknown;
668
+ headers?: Record<string, string>;
669
+ query?: Record<string, string | number>;
670
+ signal?: AbortSignal;
671
+ }): Promise<{
672
+ status: number;
673
+ body: T;
404
674
  }>;
675
+ }, {
676
+ [x: string]: unknown;
677
+ id: string;
678
+ body: {
679
+ [x: string]: unknown;
680
+ content: string;
681
+ contentType: string;
682
+ };
683
+ createdDateTime?: string | null | undefined;
684
+ lastModifiedDateTime?: string | null | undefined;
685
+ chatId?: string | null | undefined;
686
+ }> & {
687
+ slug: "getChannelMessage";
405
688
  };
406
- declare const findChannelInput: z.ZodObject<{
689
+ export declare const findChannel: import("frogbot").PieceActionDefinition<z.ZodObject<{
407
690
  channelName: z.ZodString;
408
691
  teamId: z.ZodString;
409
- }, z.core.$strip>;
410
- export declare const findChannel: {
411
- slug: string;
412
- description: string;
413
- input: z.ZodObject<{
414
- channelName: z.ZodString;
415
- teamId: z.ZodString;
416
- }, z.core.$strip>;
417
- output: z.ZodObject<{
418
- found: z.ZodBoolean;
419
- result: z.ZodArray<z.ZodObject<{
420
- id: z.ZodString;
421
- displayName: z.ZodString;
422
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
423
- createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
424
- membershipType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
425
- isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
426
- }, z.core.$loose>>;
427
- }, z.core.$strip>;
428
- options: {
429
- teamId: typeof teams;
430
- };
431
- idempotent: boolean;
432
- run({ client, input, req }: Run<typeof findChannelInput>): Promise<{
433
- found: boolean;
434
- result: {
435
- [x: string]: unknown;
436
- id: string;
437
- displayName: string;
438
- description?: string | null | undefined;
439
- createdDateTime?: string | null | undefined;
440
- membershipType?: string | null | undefined;
441
- isArchived?: boolean | null | undefined;
442
- }[];
692
+ }, z.core.$strip>, z.ZodObject<{
693
+ found: z.ZodBoolean;
694
+ result: z.ZodArray<z.ZodObject<{
695
+ id: z.ZodString;
696
+ displayName: z.ZodString;
697
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
698
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
699
+ membershipType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
700
+ isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
701
+ }, z.core.$loose>>;
702
+ }, z.core.$strip>, {
703
+ botAppType: "MultiTenant" | "SingleTenant";
704
+ botUsername: string;
705
+ botTenantId?: string | undefined;
706
+ botApiUrl?: string | undefined;
707
+ }, {
708
+ baseUrl: string;
709
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
710
+ method?: string;
711
+ body?: unknown;
712
+ headers?: Record<string, string>;
713
+ query?: Record<string, string | number>;
714
+ signal?: AbortSignal;
715
+ }) => Promise<T>;
716
+ text(path: string, options?: {
717
+ method?: string;
718
+ body?: unknown;
719
+ headers?: Record<string, string>;
720
+ query?: Record<string, string | number>;
721
+ signal?: AbortSignal;
722
+ }): Promise<string>;
723
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
724
+ method?: string;
725
+ body?: unknown;
726
+ headers?: Record<string, string>;
727
+ query?: Record<string, string | number>;
728
+ signal?: AbortSignal;
729
+ }) => Promise<T[]>;
730
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
731
+ method?: string;
732
+ body?: unknown;
733
+ headers?: Record<string, string>;
734
+ query?: Record<string, string | number>;
735
+ signal?: AbortSignal;
736
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
737
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
738
+ custom<T>(path: string, schema: z.ZodType<T>, options?: {
739
+ method?: string;
740
+ body?: unknown;
741
+ headers?: Record<string, string>;
742
+ query?: Record<string, string | number>;
743
+ signal?: AbortSignal;
744
+ }): Promise<{
745
+ status: number;
746
+ body: T;
443
747
  }>;
748
+ }, {
749
+ found: boolean;
750
+ result: {
751
+ [x: string]: unknown;
752
+ id: string;
753
+ displayName: string;
754
+ description?: string | null | undefined;
755
+ createdDateTime?: string | null | undefined;
756
+ membershipType?: string | null | undefined;
757
+ isArchived?: boolean | null | undefined;
758
+ }[];
759
+ }> & {
760
+ slug: "findChannel";
444
761
  };
445
- declare const findMemberInput: z.ZodObject<{
762
+ export declare const findTeamMember: import("frogbot").PieceActionDefinition<z.ZodObject<{
446
763
  searchBy: z.ZodDefault<z.ZodEnum<{
447
764
  email: "email";
448
765
  name: "name";
449
766
  }>>;
450
767
  searchValue: z.ZodString;
451
768
  teamId: z.ZodString;
452
- }, z.core.$strip>;
453
- export declare const findTeamMember: {
454
- slug: string;
455
- description: string;
456
- input: z.ZodObject<{
457
- searchBy: z.ZodDefault<z.ZodEnum<{
458
- email: "email";
459
- name: "name";
460
- }>>;
461
- searchValue: z.ZodString;
462
- teamId: z.ZodString;
463
- }, z.core.$strip>;
464
- output: z.ZodObject<{
465
- found: z.ZodBoolean;
466
- result: z.ZodArray<z.ZodObject<{
467
- id: z.ZodString;
468
- displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
469
- email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
470
- userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
471
- }, z.core.$loose>>;
472
- }, z.core.$strip>;
473
- options: {
474
- teamId: typeof teams;
475
- };
476
- idempotent: boolean;
477
- run({ client, input, req }: Run<typeof findMemberInput>): Promise<{
478
- found: boolean;
479
- result: {
480
- [x: string]: unknown;
481
- id: string;
482
- displayName?: string | null | undefined;
483
- email?: string | null | undefined;
484
- userId?: string | null | undefined;
485
- }[];
769
+ }, z.core.$strip>, z.ZodObject<{
770
+ found: z.ZodBoolean;
771
+ result: z.ZodArray<z.ZodObject<{
772
+ id: z.ZodString;
773
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
774
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
775
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
776
+ }, z.core.$loose>>;
777
+ }, z.core.$strip>, {
778
+ botAppType: "MultiTenant" | "SingleTenant";
779
+ botUsername: string;
780
+ botTenantId?: string | undefined;
781
+ botApiUrl?: string | undefined;
782
+ }, {
783
+ baseUrl: string;
784
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
785
+ method?: string;
786
+ body?: unknown;
787
+ headers?: Record<string, string>;
788
+ query?: Record<string, string | number>;
789
+ signal?: AbortSignal;
790
+ }) => Promise<T>;
791
+ text(path: string, options?: {
792
+ method?: string;
793
+ body?: unknown;
794
+ headers?: Record<string, string>;
795
+ query?: Record<string, string | number>;
796
+ signal?: AbortSignal;
797
+ }): Promise<string>;
798
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
799
+ method?: string;
800
+ body?: unknown;
801
+ headers?: Record<string, string>;
802
+ query?: Record<string, string | number>;
803
+ signal?: AbortSignal;
804
+ }) => Promise<T[]>;
805
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
806
+ method?: string;
807
+ body?: unknown;
808
+ headers?: Record<string, string>;
809
+ query?: Record<string, string | number>;
810
+ signal?: AbortSignal;
811
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
812
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
813
+ custom<T>(path: string, schema: z.ZodType<T>, options?: {
814
+ method?: string;
815
+ body?: unknown;
816
+ headers?: Record<string, string>;
817
+ query?: Record<string, string | number>;
818
+ signal?: AbortSignal;
819
+ }): Promise<{
820
+ status: number;
821
+ body: T;
486
822
  }>;
823
+ }, {
824
+ found: boolean;
825
+ result: {
826
+ [x: string]: unknown;
827
+ id: string;
828
+ displayName?: string | null | undefined;
829
+ email?: string | null | undefined;
830
+ userId?: string | null | undefined;
831
+ }[];
832
+ }> & {
833
+ slug: "findTeamMember";
487
834
  };
488
- declare const transcriptInput: z.ZodObject<{
835
+ export declare const getMeetingTranscript: import("frogbot").PieceActionDefinition<z.ZodObject<{
489
836
  transcriptId: z.ZodOptional<z.ZodString>;
490
837
  meetingIdentifierType: z.ZodDefault<z.ZodEnum<{
491
838
  meetingId: "meetingId";
@@ -493,40 +840,72 @@ declare const transcriptInput: z.ZodObject<{
493
840
  joinMeetingId: "joinMeetingId";
494
841
  }>>;
495
842
  meetingIdentifierValue: z.ZodString;
496
- }, z.core.$strip>;
497
- export declare const getMeetingTranscript: {
498
- slug: string;
499
- description: string;
500
- input: z.ZodObject<{
501
- transcriptId: z.ZodOptional<z.ZodString>;
502
- meetingIdentifierType: z.ZodDefault<z.ZodEnum<{
503
- meetingId: "meetingId";
504
- joinWebUrl: "joinWebUrl";
505
- joinMeetingId: "joinMeetingId";
506
- }>>;
507
- meetingIdentifierValue: z.ZodString;
508
- }, z.core.$strip>;
509
- output: z.ZodUnion<readonly [z.ZodObject<{
510
- content: z.ZodString;
511
- }, z.core.$strip>, z.ZodType<import("./schemas.js").GraphPage<{
512
- [x: string]: unknown;
513
- id: string;
514
- createdDateTime?: string | null | undefined;
515
- }>, unknown, z.core.$ZodTypeInternals<import("./schemas.js").GraphPage<{
516
- [x: string]: unknown;
517
- id: string;
518
- createdDateTime?: string | null | undefined;
519
- }>, unknown>>]>;
520
- idempotent: boolean;
521
- run({ client, input, req }: Run<typeof transcriptInput>): Promise<import("./schemas.js").GraphPage<{
522
- [x: string]: unknown;
523
- id: string;
524
- createdDateTime?: string | null | undefined;
525
- }> | {
526
- content: string;
843
+ }, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
844
+ content: z.ZodString;
845
+ }, z.core.$strip>, z.ZodType<import("./schemas.js").GraphPage<{
846
+ [x: string]: unknown;
847
+ id: string;
848
+ createdDateTime?: string | null | undefined;
849
+ }>, unknown, z.core.$ZodTypeInternals<import("./schemas.js").GraphPage<{
850
+ [x: string]: unknown;
851
+ id: string;
852
+ createdDateTime?: string | null | undefined;
853
+ }>, unknown>>]>, {
854
+ botAppType: "MultiTenant" | "SingleTenant";
855
+ botUsername: string;
856
+ botTenantId?: string | undefined;
857
+ botApiUrl?: string | undefined;
858
+ }, {
859
+ baseUrl: string;
860
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
861
+ method?: string;
862
+ body?: unknown;
863
+ headers?: Record<string, string>;
864
+ query?: Record<string, string | number>;
865
+ signal?: AbortSignal;
866
+ }) => Promise<T>;
867
+ text(path: string, options?: {
868
+ method?: string;
869
+ body?: unknown;
870
+ headers?: Record<string, string>;
871
+ query?: Record<string, string | number>;
872
+ signal?: AbortSignal;
873
+ }): Promise<string>;
874
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
875
+ method?: string;
876
+ body?: unknown;
877
+ headers?: Record<string, string>;
878
+ query?: Record<string, string | number>;
879
+ signal?: AbortSignal;
880
+ }) => Promise<T[]>;
881
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
882
+ method?: string;
883
+ body?: unknown;
884
+ headers?: Record<string, string>;
885
+ query?: Record<string, string | number>;
886
+ signal?: AbortSignal;
887
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
888
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
889
+ custom<T>(path: string, schema: z.ZodType<T>, options?: {
890
+ method?: string;
891
+ body?: unknown;
892
+ headers?: Record<string, string>;
893
+ query?: Record<string, string | number>;
894
+ signal?: AbortSignal;
895
+ }): Promise<{
896
+ status: number;
897
+ body: T;
527
898
  }>;
899
+ }, import("./schemas.js").GraphPage<{
900
+ [x: string]: unknown;
901
+ id: string;
902
+ createdDateTime?: string | null | undefined;
903
+ }> | {
904
+ content: string;
905
+ }> & {
906
+ slug: "getMeetingTranscript";
528
907
  };
529
- declare const recordingInput: z.ZodObject<{
908
+ export declare const getMeetingRecording: import("frogbot").PieceActionDefinition<z.ZodObject<{
530
909
  recordingId: z.ZodOptional<z.ZodString>;
531
910
  meetingIdentifierType: z.ZodDefault<z.ZodEnum<{
532
911
  meetingId: "meetingId";
@@ -534,43 +913,75 @@ declare const recordingInput: z.ZodObject<{
534
913
  joinMeetingId: "joinMeetingId";
535
914
  }>>;
536
915
  meetingIdentifierValue: z.ZodString;
537
- }, z.core.$strip>;
538
- export declare const getMeetingRecording: {
539
- slug: string;
540
- description: string;
541
- input: z.ZodObject<{
542
- recordingId: z.ZodOptional<z.ZodString>;
543
- meetingIdentifierType: z.ZodDefault<z.ZodEnum<{
544
- meetingId: "meetingId";
545
- joinWebUrl: "joinWebUrl";
546
- joinMeetingId: "joinMeetingId";
547
- }>>;
548
- meetingIdentifierValue: z.ZodString;
549
- }, z.core.$strip>;
550
- output: z.ZodUnion<readonly [z.ZodObject<{
551
- id: z.ZodString;
552
- createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
553
- }, z.core.$loose>, z.ZodType<import("./schemas.js").GraphPage<{
554
- [x: string]: unknown;
555
- id: string;
556
- createdDateTime?: string | null | undefined;
557
- }>, unknown, z.core.$ZodTypeInternals<import("./schemas.js").GraphPage<{
558
- [x: string]: unknown;
559
- id: string;
560
- createdDateTime?: string | null | undefined;
561
- }>, unknown>>]>;
562
- idempotent: boolean;
563
- run({ client, input, req }: Run<typeof recordingInput>): Promise<{
564
- [x: string]: unknown;
565
- id: string;
566
- createdDateTime?: string | null | undefined;
567
- } | import("./schemas.js").GraphPage<{
568
- [x: string]: unknown;
569
- id: string;
570
- createdDateTime?: string | null | undefined;
571
- }>>;
916
+ }, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
917
+ id: z.ZodString;
918
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
919
+ }, z.core.$loose>, z.ZodType<import("./schemas.js").GraphPage<{
920
+ [x: string]: unknown;
921
+ id: string;
922
+ createdDateTime?: string | null | undefined;
923
+ }>, unknown, z.core.$ZodTypeInternals<import("./schemas.js").GraphPage<{
924
+ [x: string]: unknown;
925
+ id: string;
926
+ createdDateTime?: string | null | undefined;
927
+ }>, unknown>>]>, {
928
+ botAppType: "MultiTenant" | "SingleTenant";
929
+ botUsername: string;
930
+ botTenantId?: string | undefined;
931
+ botApiUrl?: string | undefined;
932
+ }, {
933
+ baseUrl: string;
934
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
935
+ method?: string;
936
+ body?: unknown;
937
+ headers?: Record<string, string>;
938
+ query?: Record<string, string | number>;
939
+ signal?: AbortSignal;
940
+ }) => Promise<T>;
941
+ text(path: string, options?: {
942
+ method?: string;
943
+ body?: unknown;
944
+ headers?: Record<string, string>;
945
+ query?: Record<string, string | number>;
946
+ signal?: AbortSignal;
947
+ }): Promise<string>;
948
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
949
+ method?: string;
950
+ body?: unknown;
951
+ headers?: Record<string, string>;
952
+ query?: Record<string, string | number>;
953
+ signal?: AbortSignal;
954
+ }) => Promise<T[]>;
955
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
956
+ method?: string;
957
+ body?: unknown;
958
+ headers?: Record<string, string>;
959
+ query?: Record<string, string | number>;
960
+ signal?: AbortSignal;
961
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
962
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
963
+ custom<T>(path: string, schema: z.ZodType<T>, options?: {
964
+ method?: string;
965
+ body?: unknown;
966
+ headers?: Record<string, string>;
967
+ query?: Record<string, string | number>;
968
+ signal?: AbortSignal;
969
+ }): Promise<{
970
+ status: number;
971
+ body: T;
972
+ }>;
973
+ }, {
974
+ [x: string]: unknown;
975
+ id: string;
976
+ createdDateTime?: string | null | undefined;
977
+ } | import("./schemas.js").GraphPage<{
978
+ [x: string]: unknown;
979
+ id: string;
980
+ createdDateTime?: string | null | undefined;
981
+ }>> & {
982
+ slug: "getMeetingRecording";
572
983
  };
573
- declare const customInput: z.ZodObject<{
984
+ export declare const customApiCall: import("frogbot").PieceActionDefinition<z.ZodObject<{
574
985
  method: z.ZodEnum<{
575
986
  GET: "GET";
576
987
  POST: "POST";
@@ -581,112 +992,451 @@ declare const customInput: z.ZodObject<{
581
992
  path: z.ZodString;
582
993
  query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
583
994
  body: z.ZodOptional<z.ZodJSONSchema>;
584
- }, z.core.$strip>;
585
- export declare const customApiCall: {
586
- slug: string;
587
- description: string;
588
- input: z.ZodObject<{
589
- method: z.ZodEnum<{
590
- GET: "GET";
591
- POST: "POST";
592
- PATCH: "PATCH";
593
- PUT: "PUT";
594
- DELETE: "DELETE";
595
- }>;
596
- path: z.ZodString;
597
- query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
598
- body: z.ZodOptional<z.ZodJSONSchema>;
599
- }, z.core.$strip>;
600
- output: z.ZodObject<{
601
- status: z.ZodNumber;
602
- body: z.ZodJSONSchema;
603
- }, z.core.$strip>;
604
- idempotent: boolean;
605
- run({ client, input, req }: Run<typeof customInput>): Promise<{
995
+ }, z.core.$strip>, z.ZodObject<{
996
+ status: z.ZodNumber;
997
+ body: z.ZodJSONSchema;
998
+ }, z.core.$strip>, {
999
+ botAppType: "MultiTenant" | "SingleTenant";
1000
+ botUsername: string;
1001
+ botTenantId?: string | undefined;
1002
+ botApiUrl?: string | undefined;
1003
+ }, {
1004
+ baseUrl: string;
1005
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1006
+ method?: string;
1007
+ body?: unknown;
1008
+ headers?: Record<string, string>;
1009
+ query?: Record<string, string | number>;
1010
+ signal?: AbortSignal;
1011
+ }) => Promise<T>;
1012
+ text(path: string, options?: {
1013
+ method?: string;
1014
+ body?: unknown;
1015
+ headers?: Record<string, string>;
1016
+ query?: Record<string, string | number>;
1017
+ signal?: AbortSignal;
1018
+ }): Promise<string>;
1019
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
1020
+ method?: string;
1021
+ body?: unknown;
1022
+ headers?: Record<string, string>;
1023
+ query?: Record<string, string | number>;
1024
+ signal?: AbortSignal;
1025
+ }) => Promise<T[]>;
1026
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
1027
+ method?: string;
1028
+ body?: unknown;
1029
+ headers?: Record<string, string>;
1030
+ query?: Record<string, string | number>;
1031
+ signal?: AbortSignal;
1032
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
1033
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1034
+ custom<T>(path: string, schema: z.ZodType<T>, options?: {
1035
+ method?: string;
1036
+ body?: unknown;
1037
+ headers?: Record<string, string>;
1038
+ query?: Record<string, string | number>;
1039
+ signal?: AbortSignal;
1040
+ }): Promise<{
606
1041
  status: number;
607
- body: unknown;
1042
+ body: T;
608
1043
  }>;
1044
+ }, {
1045
+ status: number;
1046
+ body: z.core.util.JSONType;
1047
+ }> & {
1048
+ slug: "customApiCall";
609
1049
  };
610
- export declare const microsoftTeamsActionDefinitions: ({
611
- slug: string;
612
- description: string;
613
- input: z.ZodObject<{
614
- channelDisplayName: z.ZodString;
615
- channelDescription: z.ZodOptional<z.ZodString>;
616
- teamId: z.ZodString;
617
- }, z.core.$strip>;
618
- output: z.ZodObject<{
619
- id: z.ZodString;
620
- displayName: z.ZodString;
621
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
622
- createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
623
- membershipType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
624
- isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1050
+ export declare const microsoftTeamsActionDefinitions: ((import("frogbot").PieceActionDefinition<z.ZodObject<{
1051
+ channelDisplayName: z.ZodString;
1052
+ channelDescription: z.ZodOptional<z.ZodString>;
1053
+ teamId: z.ZodString;
1054
+ }, z.core.$strip>, z.ZodObject<{
1055
+ id: z.ZodString;
1056
+ displayName: z.ZodString;
1057
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1058
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1059
+ membershipType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1060
+ isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1061
+ }, z.core.$loose>, {
1062
+ botAppType: "MultiTenant" | "SingleTenant";
1063
+ botUsername: string;
1064
+ botTenantId?: string | undefined;
1065
+ botApiUrl?: string | undefined;
1066
+ }, {
1067
+ baseUrl: string;
1068
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1069
+ method?: string;
1070
+ body?: unknown;
1071
+ headers?: Record<string, string>;
1072
+ query?: Record<string, string | number>;
1073
+ signal?: AbortSignal;
1074
+ }) => Promise<T>;
1075
+ text(path: string, options?: {
1076
+ method?: string;
1077
+ body?: unknown;
1078
+ headers?: Record<string, string>;
1079
+ query?: Record<string, string | number>;
1080
+ signal?: AbortSignal;
1081
+ }): Promise<string>;
1082
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
1083
+ method?: string;
1084
+ body?: unknown;
1085
+ headers?: Record<string, string>;
1086
+ query?: Record<string, string | number>;
1087
+ signal?: AbortSignal;
1088
+ }) => Promise<T[]>;
1089
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
1090
+ method?: string;
1091
+ body?: unknown;
1092
+ headers?: Record<string, string>;
1093
+ query?: Record<string, string | number>;
1094
+ signal?: AbortSignal;
1095
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
1096
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1097
+ custom<T>(path: string, schema: z.ZodType<T>, options?: {
1098
+ method?: string;
1099
+ body?: unknown;
1100
+ headers?: Record<string, string>;
1101
+ query?: Record<string, string | number>;
1102
+ signal?: AbortSignal;
1103
+ }): Promise<{
1104
+ status: number;
1105
+ body: T;
1106
+ }>;
1107
+ }, {
1108
+ [x: string]: unknown;
1109
+ id: string;
1110
+ displayName: string;
1111
+ description?: string | null | undefined;
1112
+ createdDateTime?: string | null | undefined;
1113
+ membershipType?: string | null | undefined;
1114
+ isArchived?: boolean | null | undefined;
1115
+ }> & {
1116
+ slug: "createChannel";
1117
+ }) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
1118
+ channelDisplayName: z.ZodString;
1119
+ channelDescription: z.ZodOptional<z.ZodString>;
1120
+ teamId: z.ZodString;
1121
+ }, z.core.$strip>, z.ZodObject<{
1122
+ id: z.ZodString;
1123
+ displayName: z.ZodString;
1124
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1125
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1126
+ membershipType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1127
+ isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1128
+ }, z.core.$loose>, {
1129
+ botAppType: "MultiTenant" | "SingleTenant";
1130
+ botUsername: string;
1131
+ botTenantId?: string | undefined;
1132
+ botApiUrl?: string | undefined;
1133
+ }, {
1134
+ baseUrl: string;
1135
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1136
+ method?: string;
1137
+ body?: unknown;
1138
+ headers?: Record<string, string>;
1139
+ query?: Record<string, string | number>;
1140
+ signal?: AbortSignal;
1141
+ }) => Promise<T>;
1142
+ text(path: string, options?: {
1143
+ method?: string;
1144
+ body?: unknown;
1145
+ headers?: Record<string, string>;
1146
+ query?: Record<string, string | number>;
1147
+ signal?: AbortSignal;
1148
+ }): Promise<string>;
1149
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
1150
+ method?: string;
1151
+ body?: unknown;
1152
+ headers?: Record<string, string>;
1153
+ query?: Record<string, string | number>;
1154
+ signal?: AbortSignal;
1155
+ }) => Promise<T[]>;
1156
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
1157
+ method?: string;
1158
+ body?: unknown;
1159
+ headers?: Record<string, string>;
1160
+ query?: Record<string, string | number>;
1161
+ signal?: AbortSignal;
1162
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
1163
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1164
+ custom<T>(path: string, schema: z.ZodType<T>, options?: {
1165
+ method?: string;
1166
+ body?: unknown;
1167
+ headers?: Record<string, string>;
1168
+ query?: Record<string, string | number>;
1169
+ signal?: AbortSignal;
1170
+ }): Promise<{
1171
+ status: number;
1172
+ body: T;
1173
+ }>;
1174
+ }, {
1175
+ [x: string]: unknown;
1176
+ id: string;
1177
+ displayName: string;
1178
+ description?: string | null | undefined;
1179
+ createdDateTime?: string | null | undefined;
1180
+ membershipType?: string | null | undefined;
1181
+ isArchived?: boolean | null | undefined;
1182
+ }> & {
1183
+ slug: "createPrivateChannel";
1184
+ }) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
1185
+ contentType: z.ZodDefault<z.ZodEnum<{
1186
+ text: "text";
1187
+ html: "html";
1188
+ }>>;
1189
+ content: z.ZodString;
1190
+ channelId: z.ZodString;
1191
+ teamId: z.ZodString;
1192
+ }, z.core.$strip>, z.ZodObject<{
1193
+ id: z.ZodString;
1194
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1195
+ lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1196
+ chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1197
+ body: z.ZodObject<{
1198
+ content: z.ZodString;
1199
+ contentType: z.ZodString;
625
1200
  }, z.core.$loose>;
626
- options: {
627
- teamId: typeof teams;
628
- };
629
- idempotent: boolean;
630
- run({ client, input, req }: Run<typeof createChannelInput>): Promise<{
1201
+ }, z.core.$loose>, {
1202
+ botAppType: "MultiTenant" | "SingleTenant";
1203
+ botUsername: string;
1204
+ botTenantId?: string | undefined;
1205
+ botApiUrl?: string | undefined;
1206
+ }, {
1207
+ baseUrl: string;
1208
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1209
+ method?: string;
1210
+ body?: unknown;
1211
+ headers?: Record<string, string>;
1212
+ query?: Record<string, string | number>;
1213
+ signal?: AbortSignal;
1214
+ }) => Promise<T>;
1215
+ text(path: string, options?: {
1216
+ method?: string;
1217
+ body?: unknown;
1218
+ headers?: Record<string, string>;
1219
+ query?: Record<string, string | number>;
1220
+ signal?: AbortSignal;
1221
+ }): Promise<string>;
1222
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
1223
+ method?: string;
1224
+ body?: unknown;
1225
+ headers?: Record<string, string>;
1226
+ query?: Record<string, string | number>;
1227
+ signal?: AbortSignal;
1228
+ }) => Promise<T[]>;
1229
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
1230
+ method?: string;
1231
+ body?: unknown;
1232
+ headers?: Record<string, string>;
1233
+ query?: Record<string, string | number>;
1234
+ signal?: AbortSignal;
1235
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
1236
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1237
+ custom<T>(path: string, schema: z.ZodType<T>, options?: {
1238
+ method?: string;
1239
+ body?: unknown;
1240
+ headers?: Record<string, string>;
1241
+ query?: Record<string, string | number>;
1242
+ signal?: AbortSignal;
1243
+ }): Promise<{
1244
+ status: number;
1245
+ body: T;
1246
+ }>;
1247
+ }, {
1248
+ [x: string]: unknown;
1249
+ id: string;
1250
+ body: {
631
1251
  [x: string]: unknown;
632
- id: string;
633
- displayName: string;
634
- description?: string | null | undefined;
635
- createdDateTime?: string | null | undefined;
636
- membershipType?: string | null | undefined;
637
- isArchived?: boolean | null | undefined;
1252
+ content: string;
1253
+ contentType: string;
1254
+ };
1255
+ createdDateTime?: string | null | undefined;
1256
+ lastModifiedDateTime?: string | null | undefined;
1257
+ chatId?: string | null | undefined;
1258
+ }> & {
1259
+ slug: "sendChannelMessage";
1260
+ }) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
1261
+ contentType: z.ZodDefault<z.ZodEnum<{
1262
+ text: "text";
1263
+ html: "html";
1264
+ }>>;
1265
+ content: z.ZodString;
1266
+ chatId: z.ZodString;
1267
+ }, z.core.$strip>, z.ZodObject<{
1268
+ id: z.ZodString;
1269
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1270
+ lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1271
+ chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1272
+ body: z.ZodObject<{
1273
+ content: z.ZodString;
1274
+ contentType: z.ZodString;
1275
+ }, z.core.$loose>;
1276
+ }, z.core.$loose>, {
1277
+ botAppType: "MultiTenant" | "SingleTenant";
1278
+ botUsername: string;
1279
+ botTenantId?: string | undefined;
1280
+ botApiUrl?: string | undefined;
1281
+ }, {
1282
+ baseUrl: string;
1283
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1284
+ method?: string;
1285
+ body?: unknown;
1286
+ headers?: Record<string, string>;
1287
+ query?: Record<string, string | number>;
1288
+ signal?: AbortSignal;
1289
+ }) => Promise<T>;
1290
+ text(path: string, options?: {
1291
+ method?: string;
1292
+ body?: unknown;
1293
+ headers?: Record<string, string>;
1294
+ query?: Record<string, string | number>;
1295
+ signal?: AbortSignal;
1296
+ }): Promise<string>;
1297
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
1298
+ method?: string;
1299
+ body?: unknown;
1300
+ headers?: Record<string, string>;
1301
+ query?: Record<string, string | number>;
1302
+ signal?: AbortSignal;
1303
+ }) => Promise<T[]>;
1304
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
1305
+ method?: string;
1306
+ body?: unknown;
1307
+ headers?: Record<string, string>;
1308
+ query?: Record<string, string | number>;
1309
+ signal?: AbortSignal;
1310
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
1311
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1312
+ custom<T>(path: string, schema: z.ZodType<T>, options?: {
1313
+ method?: string;
1314
+ body?: unknown;
1315
+ headers?: Record<string, string>;
1316
+ query?: Record<string, string | number>;
1317
+ signal?: AbortSignal;
1318
+ }): Promise<{
1319
+ status: number;
1320
+ body: T;
638
1321
  }>;
639
- } | {
640
- slug: string;
641
- description: string;
642
- input: z.ZodObject<{
643
- contentType: z.ZodDefault<z.ZodEnum<{
644
- text: "text";
645
- html: "html";
646
- }>>;
1322
+ }, {
1323
+ [x: string]: unknown;
1324
+ id: string;
1325
+ body: {
1326
+ [x: string]: unknown;
1327
+ content: string;
1328
+ contentType: string;
1329
+ };
1330
+ createdDateTime?: string | null | undefined;
1331
+ lastModifiedDateTime?: string | null | undefined;
1332
+ chatId?: string | null | undefined;
1333
+ }> & {
1334
+ slug: "sendChatMessage";
1335
+ }) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
1336
+ contentType: z.ZodDefault<z.ZodEnum<{
1337
+ text: "text";
1338
+ html: "html";
1339
+ }>>;
1340
+ content: z.ZodString;
1341
+ messageId: z.ZodString;
1342
+ channelId: z.ZodString;
1343
+ teamId: z.ZodString;
1344
+ }, z.core.$strip>, z.ZodObject<{
1345
+ id: z.ZodString;
1346
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1347
+ lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1348
+ chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1349
+ body: z.ZodObject<{
647
1350
  content: z.ZodString;
648
- channelId: z.ZodString;
649
- teamId: z.ZodString;
650
- }, z.core.$strip>;
651
- output: z.ZodObject<{
1351
+ contentType: z.ZodString;
1352
+ }, z.core.$loose>;
1353
+ }, z.core.$loose>, {
1354
+ botAppType: "MultiTenant" | "SingleTenant";
1355
+ botUsername: string;
1356
+ botTenantId?: string | undefined;
1357
+ botApiUrl?: string | undefined;
1358
+ }, {
1359
+ baseUrl: string;
1360
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1361
+ method?: string;
1362
+ body?: unknown;
1363
+ headers?: Record<string, string>;
1364
+ query?: Record<string, string | number>;
1365
+ signal?: AbortSignal;
1366
+ }) => Promise<T>;
1367
+ text(path: string, options?: {
1368
+ method?: string;
1369
+ body?: unknown;
1370
+ headers?: Record<string, string>;
1371
+ query?: Record<string, string | number>;
1372
+ signal?: AbortSignal;
1373
+ }): Promise<string>;
1374
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
1375
+ method?: string;
1376
+ body?: unknown;
1377
+ headers?: Record<string, string>;
1378
+ query?: Record<string, string | number>;
1379
+ signal?: AbortSignal;
1380
+ }) => Promise<T[]>;
1381
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
1382
+ method?: string;
1383
+ body?: unknown;
1384
+ headers?: Record<string, string>;
1385
+ query?: Record<string, string | number>;
1386
+ signal?: AbortSignal;
1387
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
1388
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1389
+ custom<T>(path: string, schema: z.ZodType<T>, options?: {
1390
+ method?: string;
1391
+ body?: unknown;
1392
+ headers?: Record<string, string>;
1393
+ query?: Record<string, string | number>;
1394
+ signal?: AbortSignal;
1395
+ }): Promise<{
1396
+ status: number;
1397
+ body: T;
1398
+ }>;
1399
+ }, {
1400
+ [x: string]: unknown;
1401
+ id: string;
1402
+ body: {
1403
+ [x: string]: unknown;
1404
+ content: string;
1405
+ contentType: string;
1406
+ };
1407
+ createdDateTime?: string | null | undefined;
1408
+ lastModifiedDateTime?: string | null | undefined;
1409
+ chatId?: string | null | undefined;
1410
+ }> & {
1411
+ slug: "replyToChannelMessage";
1412
+ }) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
1413
+ contentType: z.ZodDefault<z.ZodEnum<{
1414
+ text: "text";
1415
+ html: "html";
1416
+ }>>;
1417
+ content: z.ZodString;
1418
+ members: z.ZodArray<z.ZodString>;
1419
+ teamId: z.ZodString;
1420
+ }, z.core.$strip>, z.ZodObject<{
1421
+ chat: z.ZodObject<{
652
1422
  id: z.ZodString;
1423
+ topic: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1424
+ chatType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1425
+ oneOnOne: "oneOnOne";
1426
+ group: "group";
1427
+ meeting: "meeting";
1428
+ unknownFutureValue: "unknownFutureValue";
1429
+ }>>>;
653
1430
  createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
654
- lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
655
- chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
656
- body: z.ZodObject<{
657
- content: z.ZodString;
658
- contentType: z.ZodString;
659
- }, z.core.$loose>;
1431
+ lastUpdatedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1432
+ members: z.ZodOptional<z.ZodArray<z.ZodObject<{
1433
+ id: z.ZodString;
1434
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1435
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1436
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1437
+ }, z.core.$loose>>>;
660
1438
  }, z.core.$loose>;
661
- options: {
662
- teamId: typeof teams;
663
- channelId: typeof channels;
664
- };
665
- idempotent: boolean;
666
- run({ client, input, req }: Run<typeof sendChannelMessageInput>): Promise<{
667
- [x: string]: unknown;
668
- id: string;
669
- body: {
670
- [x: string]: unknown;
671
- content: string;
672
- contentType: string;
673
- };
674
- createdDateTime?: string | null | undefined;
675
- lastModifiedDateTime?: string | null | undefined;
676
- chatId?: string | null | undefined;
677
- }>;
678
- } | {
679
- slug: string;
680
- description: string;
681
- input: z.ZodObject<{
682
- contentType: z.ZodDefault<z.ZodEnum<{
683
- text: "text";
684
- html: "html";
685
- }>>;
686
- content: z.ZodString;
687
- chatId: z.ZodString;
688
- }, z.core.$strip>;
689
- output: z.ZodObject<{
1439
+ message: z.ZodObject<{
690
1440
  id: z.ZodString;
691
1441
  createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
692
1442
  lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -696,120 +1446,69 @@ export declare const microsoftTeamsActionDefinitions: ({
696
1446
  contentType: z.ZodString;
697
1447
  }, z.core.$loose>;
698
1448
  }, z.core.$loose>;
699
- options: {
700
- chatId: typeof chats;
701
- };
702
- idempotent: boolean;
703
- run({ client, input, req }: Run<typeof sendChatMessageInput>): Promise<{
1449
+ }, z.core.$strip>, {
1450
+ botAppType: "MultiTenant" | "SingleTenant";
1451
+ botUsername: string;
1452
+ botTenantId?: string | undefined;
1453
+ botApiUrl?: string | undefined;
1454
+ }, {
1455
+ baseUrl: string;
1456
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1457
+ method?: string;
1458
+ body?: unknown;
1459
+ headers?: Record<string, string>;
1460
+ query?: Record<string, string | number>;
1461
+ signal?: AbortSignal;
1462
+ }) => Promise<T>;
1463
+ text(path: string, options?: {
1464
+ method?: string;
1465
+ body?: unknown;
1466
+ headers?: Record<string, string>;
1467
+ query?: Record<string, string | number>;
1468
+ signal?: AbortSignal;
1469
+ }): Promise<string>;
1470
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
1471
+ method?: string;
1472
+ body?: unknown;
1473
+ headers?: Record<string, string>;
1474
+ query?: Record<string, string | number>;
1475
+ signal?: AbortSignal;
1476
+ }) => Promise<T[]>;
1477
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
1478
+ method?: string;
1479
+ body?: unknown;
1480
+ headers?: Record<string, string>;
1481
+ query?: Record<string, string | number>;
1482
+ signal?: AbortSignal;
1483
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
1484
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1485
+ custom<T>(path: string, schema: z.ZodType<T>, options?: {
1486
+ method?: string;
1487
+ body?: unknown;
1488
+ headers?: Record<string, string>;
1489
+ query?: Record<string, string | number>;
1490
+ signal?: AbortSignal;
1491
+ }): Promise<{
1492
+ status: number;
1493
+ body: T;
1494
+ }>;
1495
+ }, {
1496
+ chat: {
704
1497
  [x: string]: unknown;
705
1498
  id: string;
706
- body: {
707
- [x: string]: unknown;
708
- content: string;
709
- contentType: string;
710
- };
1499
+ topic?: string | null | undefined;
1500
+ chatType?: "oneOnOne" | "group" | "meeting" | "unknownFutureValue" | null | undefined;
711
1501
  createdDateTime?: string | null | undefined;
712
- lastModifiedDateTime?: string | null | undefined;
713
- chatId?: string | null | undefined;
714
- }>;
715
- } | {
716
- slug: string;
717
- description: string;
718
- input: z.ZodObject<{
719
- contentType: z.ZodDefault<z.ZodEnum<{
720
- text: "text";
721
- html: "html";
722
- }>>;
723
- content: z.ZodString;
724
- members: z.ZodArray<z.ZodString>;
725
- teamId: z.ZodString;
726
- }, z.core.$strip>;
727
- output: z.ZodObject<{
728
- chat: z.ZodObject<{
729
- id: z.ZodString;
730
- topic: z.ZodOptional<z.ZodNullable<z.ZodString>>;
731
- chatType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
732
- oneOnOne: "oneOnOne";
733
- group: "group";
734
- meeting: "meeting";
735
- unknownFutureValue: "unknownFutureValue";
736
- }>>>;
737
- createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
738
- lastUpdatedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
739
- members: z.ZodOptional<z.ZodArray<z.ZodObject<{
740
- id: z.ZodString;
741
- displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
742
- email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
743
- userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
744
- }, z.core.$loose>>>;
745
- }, z.core.$loose>;
746
- message: z.ZodObject<{
747
- id: z.ZodString;
748
- createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
749
- lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
750
- chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
751
- body: z.ZodObject<{
752
- content: z.ZodString;
753
- contentType: z.ZodString;
754
- }, z.core.$loose>;
755
- }, z.core.$loose>;
756
- }, z.core.$strip>;
757
- options: {
758
- teamId: typeof teams;
759
- members: typeof members;
760
- };
761
- idempotent: boolean;
762
- run({ client, input, req }: Run<typeof createChatInput>): Promise<{
763
- chat: {
764
- [x: string]: unknown;
765
- id: string;
766
- topic?: string | null | undefined;
767
- chatType?: "oneOnOne" | "group" | "meeting" | "unknownFutureValue" | null | undefined;
768
- createdDateTime?: string | null | undefined;
769
- lastUpdatedDateTime?: string | null | undefined;
770
- members?: {
771
- [x: string]: unknown;
772
- id: string;
773
- displayName?: string | null | undefined;
774
- email?: string | null | undefined;
775
- userId?: string | null | undefined;
776
- }[] | undefined;
777
- };
778
- message: {
1502
+ lastUpdatedDateTime?: string | null | undefined;
1503
+ members?: {
779
1504
  [x: string]: unknown;
780
1505
  id: string;
781
- body: {
782
- [x: string]: unknown;
783
- content: string;
784
- contentType: string;
785
- };
786
- createdDateTime?: string | null | undefined;
787
- lastModifiedDateTime?: string | null | undefined;
788
- chatId?: string | null | undefined;
789
- };
790
- }>;
791
- } | {
792
- slug: string;
793
- description: string;
794
- input: z.ZodObject<{
795
- messageId: z.ZodString;
796
- chatId: z.ZodString;
797
- }, z.core.$strip>;
798
- output: z.ZodObject<{
799
- id: z.ZodString;
800
- createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
801
- lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
802
- chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
803
- body: z.ZodObject<{
804
- content: z.ZodString;
805
- contentType: z.ZodString;
806
- }, z.core.$loose>;
807
- }, z.core.$loose>;
808
- options: {
809
- chatId: typeof chats;
1506
+ displayName?: string | null | undefined;
1507
+ email?: string | null | undefined;
1508
+ userId?: string | null | undefined;
1509
+ }[] | undefined;
810
1510
  };
811
- idempotent: boolean;
812
- run({ client, input, req }: Run<typeof getChatMessageInput>): Promise<{
1511
+ message: {
813
1512
  [x: string]: unknown;
814
1513
  id: string;
815
1514
  body: {
@@ -820,221 +1519,567 @@ export declare const microsoftTeamsActionDefinitions: ({
820
1519
  createdDateTime?: string | null | undefined;
821
1520
  lastModifiedDateTime?: string | null | undefined;
822
1521
  chatId?: string | null | undefined;
823
- }>;
824
- } | {
825
- slug: string;
826
- description: string;
827
- input: z.ZodObject<{
828
- messageId: z.ZodString;
829
- chatId: z.ZodString;
830
- }, z.core.$strip>;
831
- output: z.ZodObject<{
832
- success: z.ZodLiteral<true>;
833
- messageId: z.ZodString;
834
- chatId: z.ZodString;
835
- }, z.core.$strip>;
836
- options: {
837
- chatId: typeof chats;
838
1522
  };
839
- idempotent: boolean;
840
- run({ client, input, req }: Run<typeof getChatMessageInput>): Promise<{
841
- success: boolean;
842
- messageId: string;
843
- chatId: string;
844
- }>;
845
- } | {
846
- slug: string;
847
- description: string;
848
- input: z.ZodObject<{
849
- messageId: z.ZodString;
850
- replyId: z.ZodOptional<z.ZodString>;
851
- channelId: z.ZodString;
852
- teamId: z.ZodString;
853
- }, z.core.$strip>;
854
- output: z.ZodObject<{
855
- id: z.ZodString;
856
- createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
857
- lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
858
- chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
859
- body: z.ZodObject<{
860
- content: z.ZodString;
861
- contentType: z.ZodString;
862
- }, z.core.$loose>;
1523
+ }> & {
1524
+ slug: "createChatAndSendMessage";
1525
+ }) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
1526
+ messageId: z.ZodString;
1527
+ chatId: z.ZodString;
1528
+ }, z.core.$strip>, z.ZodObject<{
1529
+ id: z.ZodString;
1530
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1531
+ lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1532
+ chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1533
+ body: z.ZodObject<{
1534
+ content: z.ZodString;
1535
+ contentType: z.ZodString;
863
1536
  }, z.core.$loose>;
864
- options: {
865
- teamId: typeof teams;
866
- channelId: typeof channels;
867
- };
868
- idempotent: boolean;
869
- run({ client, input, req }: Run<typeof getChannelMessageInput>): Promise<{
870
- [x: string]: unknown;
871
- id: string;
872
- body: {
873
- [x: string]: unknown;
874
- content: string;
875
- contentType: string;
876
- };
877
- createdDateTime?: string | null | undefined;
878
- lastModifiedDateTime?: string | null | undefined;
879
- chatId?: string | null | undefined;
880
- }>;
881
- } | {
882
- slug: string;
883
- description: string;
884
- input: z.ZodObject<{
885
- channelName: z.ZodString;
886
- teamId: z.ZodString;
887
- }, z.core.$strip>;
888
- output: z.ZodObject<{
889
- found: z.ZodBoolean;
890
- result: z.ZodArray<z.ZodObject<{
891
- id: z.ZodString;
892
- displayName: z.ZodString;
893
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
894
- createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
895
- membershipType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
896
- isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
897
- }, z.core.$loose>>;
898
- }, z.core.$strip>;
899
- options: {
900
- teamId: typeof teams;
901
- };
902
- idempotent: boolean;
903
- run({ client, input, req }: Run<typeof findChannelInput>): Promise<{
904
- found: boolean;
905
- result: {
906
- [x: string]: unknown;
907
- id: string;
908
- displayName: string;
909
- description?: string | null | undefined;
910
- createdDateTime?: string | null | undefined;
911
- membershipType?: string | null | undefined;
912
- isArchived?: boolean | null | undefined;
913
- }[];
1537
+ }, z.core.$loose>, {
1538
+ botAppType: "MultiTenant" | "SingleTenant";
1539
+ botUsername: string;
1540
+ botTenantId?: string | undefined;
1541
+ botApiUrl?: string | undefined;
1542
+ }, {
1543
+ baseUrl: string;
1544
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1545
+ method?: string;
1546
+ body?: unknown;
1547
+ headers?: Record<string, string>;
1548
+ query?: Record<string, string | number>;
1549
+ signal?: AbortSignal;
1550
+ }) => Promise<T>;
1551
+ text(path: string, options?: {
1552
+ method?: string;
1553
+ body?: unknown;
1554
+ headers?: Record<string, string>;
1555
+ query?: Record<string, string | number>;
1556
+ signal?: AbortSignal;
1557
+ }): Promise<string>;
1558
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
1559
+ method?: string;
1560
+ body?: unknown;
1561
+ headers?: Record<string, string>;
1562
+ query?: Record<string, string | number>;
1563
+ signal?: AbortSignal;
1564
+ }) => Promise<T[]>;
1565
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
1566
+ method?: string;
1567
+ body?: unknown;
1568
+ headers?: Record<string, string>;
1569
+ query?: Record<string, string | number>;
1570
+ signal?: AbortSignal;
1571
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
1572
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1573
+ custom<T>(path: string, schema: z.ZodType<T>, options?: {
1574
+ method?: string;
1575
+ body?: unknown;
1576
+ headers?: Record<string, string>;
1577
+ query?: Record<string, string | number>;
1578
+ signal?: AbortSignal;
1579
+ }): Promise<{
1580
+ status: number;
1581
+ body: T;
914
1582
  }>;
915
- } | {
916
- slug: string;
917
- description: string;
918
- input: z.ZodObject<{
919
- searchBy: z.ZodDefault<z.ZodEnum<{
920
- email: "email";
921
- name: "name";
922
- }>>;
923
- searchValue: z.ZodString;
924
- teamId: z.ZodString;
925
- }, z.core.$strip>;
926
- output: z.ZodObject<{
927
- found: z.ZodBoolean;
928
- result: z.ZodArray<z.ZodObject<{
929
- id: z.ZodString;
930
- displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
931
- email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
932
- userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
933
- }, z.core.$loose>>;
934
- }, z.core.$strip>;
935
- options: {
936
- teamId: typeof teams;
1583
+ }, {
1584
+ [x: string]: unknown;
1585
+ id: string;
1586
+ body: {
1587
+ [x: string]: unknown;
1588
+ content: string;
1589
+ contentType: string;
937
1590
  };
938
- idempotent: boolean;
939
- run({ client, input, req }: Run<typeof findMemberInput>): Promise<{
940
- found: boolean;
941
- result: {
942
- [x: string]: unknown;
943
- id: string;
944
- displayName?: string | null | undefined;
945
- email?: string | null | undefined;
946
- userId?: string | null | undefined;
947
- }[];
1591
+ createdDateTime?: string | null | undefined;
1592
+ lastModifiedDateTime?: string | null | undefined;
1593
+ chatId?: string | null | undefined;
1594
+ }> & {
1595
+ slug: "getChatMessage";
1596
+ }) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
1597
+ messageId: z.ZodString;
1598
+ chatId: z.ZodString;
1599
+ }, z.core.$strip>, z.ZodObject<{
1600
+ success: z.ZodLiteral<true>;
1601
+ messageId: z.ZodString;
1602
+ chatId: z.ZodString;
1603
+ }, z.core.$strip>, {
1604
+ botAppType: "MultiTenant" | "SingleTenant";
1605
+ botUsername: string;
1606
+ botTenantId?: string | undefined;
1607
+ botApiUrl?: string | undefined;
1608
+ }, {
1609
+ baseUrl: string;
1610
+ request: <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
+ text(path: string, options?: {
1618
+ method?: string;
1619
+ body?: unknown;
1620
+ headers?: Record<string, string>;
1621
+ query?: Record<string, string | number>;
1622
+ signal?: AbortSignal;
1623
+ }): Promise<string>;
1624
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
1625
+ method?: string;
1626
+ body?: unknown;
1627
+ headers?: Record<string, string>;
1628
+ query?: Record<string, string | number>;
1629
+ signal?: AbortSignal;
1630
+ }) => Promise<T[]>;
1631
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
1632
+ method?: string;
1633
+ body?: unknown;
1634
+ headers?: Record<string, string>;
1635
+ query?: Record<string, string | number>;
1636
+ signal?: AbortSignal;
1637
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
1638
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1639
+ custom<T>(path: string, schema: z.ZodType<T>, options?: {
1640
+ method?: string;
1641
+ body?: unknown;
1642
+ headers?: Record<string, string>;
1643
+ query?: Record<string, string | number>;
1644
+ signal?: AbortSignal;
1645
+ }): Promise<{
1646
+ status: number;
1647
+ body: T;
948
1648
  }>;
949
- } | {
950
- slug: string;
951
- description: string;
952
- input: z.ZodObject<{
953
- transcriptId: z.ZodOptional<z.ZodString>;
954
- meetingIdentifierType: z.ZodDefault<z.ZodEnum<{
955
- meetingId: "meetingId";
956
- joinWebUrl: "joinWebUrl";
957
- joinMeetingId: "joinMeetingId";
958
- }>>;
959
- meetingIdentifierValue: z.ZodString;
960
- }, z.core.$strip>;
961
- output: z.ZodUnion<readonly [z.ZodObject<{
1649
+ }, {
1650
+ success: true;
1651
+ messageId: string;
1652
+ chatId: string;
1653
+ }> & {
1654
+ slug: "deleteChatMessage";
1655
+ }) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
1656
+ messageId: z.ZodString;
1657
+ replyId: z.ZodOptional<z.ZodString>;
1658
+ channelId: z.ZodString;
1659
+ teamId: z.ZodString;
1660
+ }, z.core.$strip>, z.ZodObject<{
1661
+ id: z.ZodString;
1662
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1663
+ lastModifiedDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1664
+ chatId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1665
+ body: z.ZodObject<{
962
1666
  content: z.ZodString;
963
- }, z.core.$strip>, z.ZodType<import("./schemas.js").GraphPage<{
964
- [x: string]: unknown;
965
- id: string;
966
- createdDateTime?: string | null | undefined;
967
- }>, unknown, z.core.$ZodTypeInternals<import("./schemas.js").GraphPage<{
968
- [x: string]: unknown;
969
- id: string;
970
- createdDateTime?: string | null | undefined;
971
- }>, unknown>>]>;
972
- idempotent: boolean;
973
- run({ client, input, req }: Run<typeof transcriptInput>): Promise<import("./schemas.js").GraphPage<{
1667
+ contentType: z.ZodString;
1668
+ }, z.core.$loose>;
1669
+ }, z.core.$loose>, {
1670
+ botAppType: "MultiTenant" | "SingleTenant";
1671
+ botUsername: string;
1672
+ botTenantId?: string | undefined;
1673
+ botApiUrl?: string | undefined;
1674
+ }, {
1675
+ baseUrl: string;
1676
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1677
+ method?: string;
1678
+ body?: unknown;
1679
+ headers?: Record<string, string>;
1680
+ query?: Record<string, string | number>;
1681
+ signal?: AbortSignal;
1682
+ }) => Promise<T>;
1683
+ text(path: string, options?: {
1684
+ method?: string;
1685
+ body?: unknown;
1686
+ headers?: Record<string, string>;
1687
+ query?: Record<string, string | number>;
1688
+ signal?: AbortSignal;
1689
+ }): Promise<string>;
1690
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
1691
+ method?: string;
1692
+ body?: unknown;
1693
+ headers?: Record<string, string>;
1694
+ query?: Record<string, string | number>;
1695
+ signal?: AbortSignal;
1696
+ }) => Promise<T[]>;
1697
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
1698
+ method?: string;
1699
+ body?: unknown;
1700
+ headers?: Record<string, string>;
1701
+ query?: Record<string, string | number>;
1702
+ signal?: AbortSignal;
1703
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
1704
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1705
+ custom<T>(path: string, schema: z.ZodType<T>, options?: {
1706
+ method?: string;
1707
+ body?: unknown;
1708
+ headers?: Record<string, string>;
1709
+ query?: Record<string, string | number>;
1710
+ signal?: AbortSignal;
1711
+ }): Promise<{
1712
+ status: number;
1713
+ body: T;
1714
+ }>;
1715
+ }, {
1716
+ [x: string]: unknown;
1717
+ id: string;
1718
+ body: {
974
1719
  [x: string]: unknown;
975
- id: string;
976
- createdDateTime?: string | null | undefined;
977
- }> | {
978
1720
  content: string;
979
- }>;
980
- } | {
981
- slug: string;
982
- description: string;
983
- input: z.ZodObject<{
984
- recordingId: z.ZodOptional<z.ZodString>;
985
- meetingIdentifierType: z.ZodDefault<z.ZodEnum<{
986
- meetingId: "meetingId";
987
- joinWebUrl: "joinWebUrl";
988
- joinMeetingId: "joinMeetingId";
989
- }>>;
990
- meetingIdentifierValue: z.ZodString;
991
- }, z.core.$strip>;
992
- output: z.ZodUnion<readonly [z.ZodObject<{
1721
+ contentType: string;
1722
+ };
1723
+ createdDateTime?: string | null | undefined;
1724
+ lastModifiedDateTime?: string | null | undefined;
1725
+ chatId?: string | null | undefined;
1726
+ }> & {
1727
+ slug: "getChannelMessage";
1728
+ }) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
1729
+ channelName: z.ZodString;
1730
+ teamId: z.ZodString;
1731
+ }, z.core.$strip>, z.ZodObject<{
1732
+ found: z.ZodBoolean;
1733
+ result: z.ZodArray<z.ZodObject<{
993
1734
  id: z.ZodString;
1735
+ displayName: z.ZodString;
1736
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
994
1737
  createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
995
- }, z.core.$loose>, z.ZodType<import("./schemas.js").GraphPage<{
996
- [x: string]: unknown;
997
- id: string;
998
- createdDateTime?: string | null | undefined;
999
- }>, unknown, z.core.$ZodTypeInternals<import("./schemas.js").GraphPage<{
1000
- [x: string]: unknown;
1001
- id: string;
1002
- createdDateTime?: string | null | undefined;
1003
- }>, unknown>>]>;
1004
- idempotent: boolean;
1005
- run({ client, input, req }: Run<typeof recordingInput>): Promise<{
1738
+ membershipType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1739
+ isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1740
+ }, z.core.$loose>>;
1741
+ }, z.core.$strip>, {
1742
+ botAppType: "MultiTenant" | "SingleTenant";
1743
+ botUsername: string;
1744
+ botTenantId?: string | undefined;
1745
+ botApiUrl?: string | undefined;
1746
+ }, {
1747
+ baseUrl: string;
1748
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1749
+ method?: string;
1750
+ body?: unknown;
1751
+ headers?: Record<string, string>;
1752
+ query?: Record<string, string | number>;
1753
+ signal?: AbortSignal;
1754
+ }) => Promise<T>;
1755
+ text(path: string, options?: {
1756
+ method?: string;
1757
+ body?: unknown;
1758
+ headers?: Record<string, string>;
1759
+ query?: Record<string, string | number>;
1760
+ signal?: AbortSignal;
1761
+ }): Promise<string>;
1762
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
1763
+ method?: string;
1764
+ body?: unknown;
1765
+ headers?: Record<string, string>;
1766
+ query?: Record<string, string | number>;
1767
+ signal?: AbortSignal;
1768
+ }) => Promise<T[]>;
1769
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
1770
+ method?: string;
1771
+ body?: unknown;
1772
+ headers?: Record<string, string>;
1773
+ query?: Record<string, string | number>;
1774
+ signal?: AbortSignal;
1775
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
1776
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1777
+ custom<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<{
1784
+ status: number;
1785
+ body: T;
1786
+ }>;
1787
+ }, {
1788
+ found: boolean;
1789
+ result: {
1006
1790
  [x: string]: unknown;
1007
1791
  id: string;
1792
+ displayName: string;
1793
+ description?: string | null | undefined;
1008
1794
  createdDateTime?: string | null | undefined;
1009
- } | import("./schemas.js").GraphPage<{
1795
+ membershipType?: string | null | undefined;
1796
+ isArchived?: boolean | null | undefined;
1797
+ }[];
1798
+ }> & {
1799
+ slug: "findChannel";
1800
+ }) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
1801
+ searchBy: z.ZodDefault<z.ZodEnum<{
1802
+ email: "email";
1803
+ name: "name";
1804
+ }>>;
1805
+ searchValue: z.ZodString;
1806
+ teamId: z.ZodString;
1807
+ }, z.core.$strip>, z.ZodObject<{
1808
+ found: z.ZodBoolean;
1809
+ result: z.ZodArray<z.ZodObject<{
1810
+ id: z.ZodString;
1811
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1812
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1813
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1814
+ }, z.core.$loose>>;
1815
+ }, z.core.$strip>, {
1816
+ botAppType: "MultiTenant" | "SingleTenant";
1817
+ botUsername: string;
1818
+ botTenantId?: string | undefined;
1819
+ botApiUrl?: string | undefined;
1820
+ }, {
1821
+ baseUrl: string;
1822
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1823
+ method?: string;
1824
+ body?: unknown;
1825
+ headers?: Record<string, string>;
1826
+ query?: Record<string, string | number>;
1827
+ signal?: AbortSignal;
1828
+ }) => Promise<T>;
1829
+ text(path: string, options?: {
1830
+ method?: string;
1831
+ body?: unknown;
1832
+ headers?: Record<string, string>;
1833
+ query?: Record<string, string | number>;
1834
+ signal?: AbortSignal;
1835
+ }): Promise<string>;
1836
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
1837
+ method?: string;
1838
+ body?: unknown;
1839
+ headers?: Record<string, string>;
1840
+ query?: Record<string, string | number>;
1841
+ signal?: AbortSignal;
1842
+ }) => Promise<T[]>;
1843
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
1844
+ method?: string;
1845
+ body?: unknown;
1846
+ headers?: Record<string, string>;
1847
+ query?: Record<string, string | number>;
1848
+ signal?: AbortSignal;
1849
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
1850
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1851
+ custom<T>(path: string, schema: z.ZodType<T>, options?: {
1852
+ method?: string;
1853
+ body?: unknown;
1854
+ headers?: Record<string, string>;
1855
+ query?: Record<string, string | number>;
1856
+ signal?: AbortSignal;
1857
+ }): Promise<{
1858
+ status: number;
1859
+ body: T;
1860
+ }>;
1861
+ }, {
1862
+ found: boolean;
1863
+ result: {
1010
1864
  [x: string]: unknown;
1011
1865
  id: string;
1012
- createdDateTime?: string | null | undefined;
1866
+ displayName?: string | null | undefined;
1867
+ email?: string | null | undefined;
1868
+ userId?: string | null | undefined;
1869
+ }[];
1870
+ }> & {
1871
+ slug: "findTeamMember";
1872
+ }) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
1873
+ transcriptId: z.ZodOptional<z.ZodString>;
1874
+ meetingIdentifierType: z.ZodDefault<z.ZodEnum<{
1875
+ meetingId: "meetingId";
1876
+ joinWebUrl: "joinWebUrl";
1877
+ joinMeetingId: "joinMeetingId";
1878
+ }>>;
1879
+ meetingIdentifierValue: z.ZodString;
1880
+ }, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
1881
+ content: z.ZodString;
1882
+ }, z.core.$strip>, z.ZodType<import("./schemas.js").GraphPage<{
1883
+ [x: string]: unknown;
1884
+ id: string;
1885
+ createdDateTime?: string | null | undefined;
1886
+ }>, unknown, z.core.$ZodTypeInternals<import("./schemas.js").GraphPage<{
1887
+ [x: string]: unknown;
1888
+ id: string;
1889
+ createdDateTime?: string | null | undefined;
1890
+ }>, unknown>>]>, {
1891
+ botAppType: "MultiTenant" | "SingleTenant";
1892
+ botUsername: string;
1893
+ botTenantId?: string | undefined;
1894
+ botApiUrl?: string | undefined;
1895
+ }, {
1896
+ baseUrl: string;
1897
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1898
+ method?: string;
1899
+ body?: unknown;
1900
+ headers?: Record<string, string>;
1901
+ query?: Record<string, string | number>;
1902
+ signal?: AbortSignal;
1903
+ }) => Promise<T>;
1904
+ text(path: string, options?: {
1905
+ method?: string;
1906
+ body?: unknown;
1907
+ headers?: Record<string, string>;
1908
+ query?: Record<string, string | number>;
1909
+ signal?: AbortSignal;
1910
+ }): Promise<string>;
1911
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
1912
+ method?: string;
1913
+ body?: unknown;
1914
+ headers?: Record<string, string>;
1915
+ query?: Record<string, string | number>;
1916
+ signal?: AbortSignal;
1917
+ }) => Promise<T[]>;
1918
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
1919
+ method?: string;
1920
+ body?: unknown;
1921
+ headers?: Record<string, string>;
1922
+ query?: Record<string, string | number>;
1923
+ signal?: AbortSignal;
1924
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
1925
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1926
+ custom<T>(path: string, schema: z.ZodType<T>, options?: {
1927
+ method?: string;
1928
+ body?: unknown;
1929
+ headers?: Record<string, string>;
1930
+ query?: Record<string, string | number>;
1931
+ signal?: AbortSignal;
1932
+ }): Promise<{
1933
+ status: number;
1934
+ body: T;
1935
+ }>;
1936
+ }, import("./schemas.js").GraphPage<{
1937
+ [x: string]: unknown;
1938
+ id: string;
1939
+ createdDateTime?: string | null | undefined;
1940
+ }> | {
1941
+ content: string;
1942
+ }> & {
1943
+ slug: "getMeetingTranscript";
1944
+ }) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
1945
+ recordingId: z.ZodOptional<z.ZodString>;
1946
+ meetingIdentifierType: z.ZodDefault<z.ZodEnum<{
1947
+ meetingId: "meetingId";
1948
+ joinWebUrl: "joinWebUrl";
1949
+ joinMeetingId: "joinMeetingId";
1013
1950
  }>>;
1014
- } | {
1015
- slug: string;
1016
- description: string;
1017
- input: z.ZodObject<{
1018
- method: z.ZodEnum<{
1019
- GET: "GET";
1020
- POST: "POST";
1021
- PATCH: "PATCH";
1022
- PUT: "PUT";
1023
- DELETE: "DELETE";
1024
- }>;
1025
- path: z.ZodString;
1026
- query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
1027
- body: z.ZodOptional<z.ZodJSONSchema>;
1028
- }, z.core.$strip>;
1029
- output: z.ZodObject<{
1030
- status: z.ZodNumber;
1031
- body: z.ZodJSONSchema;
1032
- }, z.core.$strip>;
1033
- idempotent: boolean;
1034
- run({ client, input, req }: Run<typeof customInput>): Promise<{
1951
+ meetingIdentifierValue: z.ZodString;
1952
+ }, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
1953
+ id: z.ZodString;
1954
+ createdDateTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1955
+ }, z.core.$loose>, z.ZodType<import("./schemas.js").GraphPage<{
1956
+ [x: string]: unknown;
1957
+ id: string;
1958
+ createdDateTime?: string | null | undefined;
1959
+ }>, unknown, z.core.$ZodTypeInternals<import("./schemas.js").GraphPage<{
1960
+ [x: string]: unknown;
1961
+ id: string;
1962
+ createdDateTime?: string | null | undefined;
1963
+ }>, unknown>>]>, {
1964
+ botAppType: "MultiTenant" | "SingleTenant";
1965
+ botUsername: string;
1966
+ botTenantId?: string | undefined;
1967
+ botApiUrl?: string | undefined;
1968
+ }, {
1969
+ baseUrl: string;
1970
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
1971
+ method?: string;
1972
+ body?: unknown;
1973
+ headers?: Record<string, string>;
1974
+ query?: Record<string, string | number>;
1975
+ signal?: AbortSignal;
1976
+ }) => Promise<T>;
1977
+ text(path: string, options?: {
1978
+ method?: string;
1979
+ body?: unknown;
1980
+ headers?: Record<string, string>;
1981
+ query?: Record<string, string | number>;
1982
+ signal?: AbortSignal;
1983
+ }): Promise<string>;
1984
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
1985
+ method?: string;
1986
+ body?: unknown;
1987
+ headers?: Record<string, string>;
1988
+ query?: Record<string, string | number>;
1989
+ signal?: AbortSignal;
1990
+ }) => Promise<T[]>;
1991
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
1992
+ method?: string;
1993
+ body?: unknown;
1994
+ headers?: Record<string, string>;
1995
+ query?: Record<string, string | number>;
1996
+ signal?: AbortSignal;
1997
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
1998
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
1999
+ custom<T>(path: string, schema: z.ZodType<T>, options?: {
2000
+ method?: string;
2001
+ body?: unknown;
2002
+ headers?: Record<string, string>;
2003
+ query?: Record<string, string | number>;
2004
+ signal?: AbortSignal;
2005
+ }): Promise<{
2006
+ status: number;
2007
+ body: T;
2008
+ }>;
2009
+ }, {
2010
+ [x: string]: unknown;
2011
+ id: string;
2012
+ createdDateTime?: string | null | undefined;
2013
+ } | import("./schemas.js").GraphPage<{
2014
+ [x: string]: unknown;
2015
+ id: string;
2016
+ createdDateTime?: string | null | undefined;
2017
+ }>> & {
2018
+ slug: "getMeetingRecording";
2019
+ }) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
2020
+ method: z.ZodEnum<{
2021
+ GET: "GET";
2022
+ POST: "POST";
2023
+ PATCH: "PATCH";
2024
+ PUT: "PUT";
2025
+ DELETE: "DELETE";
2026
+ }>;
2027
+ path: z.ZodString;
2028
+ query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
2029
+ body: z.ZodOptional<z.ZodJSONSchema>;
2030
+ }, z.core.$strip>, z.ZodObject<{
2031
+ status: z.ZodNumber;
2032
+ body: z.ZodJSONSchema;
2033
+ }, z.core.$strip>, {
2034
+ botAppType: "MultiTenant" | "SingleTenant";
2035
+ botUsername: string;
2036
+ botTenantId?: string | undefined;
2037
+ botApiUrl?: string | undefined;
2038
+ }, {
2039
+ baseUrl: string;
2040
+ request: <T>(path: string, schema: z.ZodType<T>, options?: {
2041
+ method?: string;
2042
+ body?: unknown;
2043
+ headers?: Record<string, string>;
2044
+ query?: Record<string, string | number>;
2045
+ signal?: AbortSignal;
2046
+ }) => Promise<T>;
2047
+ text(path: string, options?: {
2048
+ method?: string;
2049
+ body?: unknown;
2050
+ headers?: Record<string, string>;
2051
+ query?: Record<string, string | number>;
2052
+ signal?: AbortSignal;
2053
+ }): Promise<string>;
2054
+ list: <T>(path: string, schema: z.ZodType<T>, options?: {
2055
+ method?: string;
2056
+ body?: unknown;
2057
+ headers?: Record<string, string>;
2058
+ query?: Record<string, string | number>;
2059
+ signal?: AbortSignal;
2060
+ }) => Promise<T[]>;
2061
+ page: <T>(path: string, schema: z.ZodType<T>, options?: {
2062
+ method?: string;
2063
+ body?: unknown;
2064
+ headers?: Record<string, string>;
2065
+ query?: Record<string, string | number>;
2066
+ signal?: AbortSignal;
2067
+ }) => Promise<import("./schemas.js").GraphPage<T>>;
2068
+ meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
2069
+ custom<T>(path: string, schema: z.ZodType<T>, options?: {
2070
+ method?: string;
2071
+ body?: unknown;
2072
+ headers?: Record<string, string>;
2073
+ query?: Record<string, string | number>;
2074
+ signal?: AbortSignal;
2075
+ }): Promise<{
1035
2076
  status: number;
1036
- body: unknown;
2077
+ body: T;
1037
2078
  }>;
1038
- })[];
1039
- export {};
2079
+ }, {
2080
+ status: number;
2081
+ body: z.core.util.JSONType;
2082
+ }> & {
2083
+ slug: "customApiCall";
2084
+ }))[];
1040
2085
  //# sourceMappingURL=actions.d.ts.map