@frogbotai/piece-microsoft-teams 0.31.0 → 0.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -1
- package/dist/actions.d.ts +32 -322
- package/dist/actions.d.ts.map +1 -1
- package/dist/actions.js +6 -38
- package/dist/actions.js.map +1 -1
- package/dist/client.d.ts +1 -4
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +8 -9
- package/dist/client.js.map +1 -1
- package/dist/config.d.ts +40 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +40 -18
- package/dist/config.js.map +1 -1
- package/dist/define.d.ts +76 -61
- package/dist/define.d.ts.map +1 -1
- package/dist/define.js +1 -1
- package/dist/define.js.map +1 -1
- package/dist/index.d.ts +148 -604
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +23 -1
- package/dist/index.js.map +1 -1
- package/dist/triggers.d.ts +22 -220
- package/dist/triggers.d.ts.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -44,6 +44,14 @@ The separate Graph OAuth app registration uses the scopes below for user actions
|
|
|
44
44
|
|
|
45
45
|
When an agent with the `question` tool runs in Teams, each question call appears as one Adaptive Card with the choices, an optional text box, and **Submit** and **Dismiss** buttons. The card is replaced in place with the answer and who gave it, and the agent continues in the same conversation. The person who submits is matched to a FrogBot user by the email from the conversation's member list and must pass the agent's `access` check; others get a private notice. No Microsoft Graph permission is required. See the Microsoft Teams page in the FrogBot docs for the manifest, limits, and troubleshooting.
|
|
46
46
|
|
|
47
|
+
## OAuth scopes
|
|
48
|
+
|
|
49
|
+
Change the requested scopes with the factory's `scopes` option: `createMicrosoftTeams({ oauth, scopes: ({ defaultScopes }) => [...defaultScopes, 'Chat.Create'] })` adds one, and an array replaces the defaults. `microsoftTeamsScopes` maps each name to the provider's scope string.
|
|
50
|
+
|
|
51
|
+
- Always requested: `offline_access`, `User.Read`.
|
|
52
|
+
- Defaults: `openid`, `email`, `profile`, `Channel.Create`, `Channel.ReadBasic.All`, `ChannelMessage.Send`, `Team.ReadBasic.All`, `Chat.ReadWrite`, `ChannelMessage.Read.All`, `TeamMember.Read.All`, `User.ReadBasic.All`, `Presence.Read.All`, `OnlineMeetingTranscript.Read.All`, `OnlineMeetingRecording.Read.All`.
|
|
53
|
+
- Also available: `User.Read.All`, `Team.Create`, `TeamSettings.Read.All`, `TeamSettings.ReadWrite.All`, `Channel.Delete.All`, `ChannelSettings.Read.All`, `ChannelSettings.ReadWrite.All`, `ChannelMember.Read.All`, `ChannelMember.ReadWrite.All`, `ChannelMessage.ReadWrite`, `ChannelMessage.Edit`, `Chat.Create`, `Chat.Read`, `Chat.ReadBasic`, `ChatMessage.Send`, `ChatMessage.Read`, `ChatMember.Read`, `ChatMember.ReadWrite`, `TeamMember.ReadWrite.All`, `Presence.Read`, `OnlineMeetings.Read`, `OnlineMeetings.ReadWrite`.
|
|
54
|
+
|
|
47
55
|
## Actions
|
|
48
56
|
|
|
49
57
|
| Upstream action slug | Previous wrapper export | Native action | Notes |
|
|
@@ -63,7 +71,7 @@ When an agent with the `question` tool runs in Teams, each question call appears
|
|
|
63
71
|
| `microsoft_teams_get_meeting_recording` | `microsoftTeamsGetMeetingRecording` | `getMeetingRecording` | Lists or returns metadata; upstream does not download recording bytes |
|
|
64
72
|
| `request_approval_in_channel` | `requestApprovalInChannel` | Omitted | Activepieces-specific waitpoint action calls `run.pause` and resumes from an approval URL; durable waits belong to the FrogBot workflow host |
|
|
65
73
|
| `request_approval_direct_message` | `requestApprovalDirectMessage` | Omitted | Activepieces-specific waitpoint action calls `run.pause` and resumes from an approval URL; durable waits belong to the FrogBot workflow host |
|
|
66
|
-
| `custom_api_call` | `customApiCall` | `customApiCall` |
|
|
74
|
+
| `custom_api_call` | `customApiCall` | `customApiCall` | Paths are relative to Microsoft Graph v1.0 in the configured cloud; redirects are not followed |
|
|
67
75
|
|
|
68
76
|
## Triggers
|
|
69
77
|
|
package/dist/actions.d.ts
CHANGED
|
@@ -46,16 +46,7 @@ export declare const createChannel: import("frogbot").PieceActionDefinition<z.Zo
|
|
|
46
46
|
signal?: AbortSignal;
|
|
47
47
|
}) => Promise<import("./schemas.js").GraphPage<T>>;
|
|
48
48
|
meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
|
|
49
|
-
|
|
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;
|
|
58
|
-
}>;
|
|
49
|
+
authorize(target: URL, headers: Headers): void;
|
|
59
50
|
}, {
|
|
60
51
|
[x: string]: unknown;
|
|
61
52
|
id: string;
|
|
@@ -114,16 +105,7 @@ export declare const createPrivateChannel: import("frogbot").PieceActionDefiniti
|
|
|
114
105
|
signal?: AbortSignal;
|
|
115
106
|
}) => Promise<import("./schemas.js").GraphPage<T>>;
|
|
116
107
|
meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
|
|
117
|
-
|
|
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;
|
|
126
|
-
}>;
|
|
108
|
+
authorize(target: URL, headers: Headers): void;
|
|
127
109
|
}, {
|
|
128
110
|
[x: string]: unknown;
|
|
129
111
|
id: string;
|
|
@@ -188,16 +170,7 @@ export declare const sendChannelMessage: import("frogbot").PieceActionDefinition
|
|
|
188
170
|
signal?: AbortSignal;
|
|
189
171
|
}) => Promise<import("./schemas.js").GraphPage<T>>;
|
|
190
172
|
meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
|
|
191
|
-
|
|
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;
|
|
200
|
-
}>;
|
|
173
|
+
authorize(target: URL, headers: Headers): void;
|
|
201
174
|
}, {
|
|
202
175
|
[x: string]: unknown;
|
|
203
176
|
id: string;
|
|
@@ -264,16 +237,7 @@ export declare const sendChatMessage: import("frogbot").PieceActionDefinition<z.
|
|
|
264
237
|
signal?: AbortSignal;
|
|
265
238
|
}) => Promise<import("./schemas.js").GraphPage<T>>;
|
|
266
239
|
meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
|
|
267
|
-
|
|
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;
|
|
276
|
-
}>;
|
|
240
|
+
authorize(target: URL, headers: Headers): void;
|
|
277
241
|
}, {
|
|
278
242
|
[x: string]: unknown;
|
|
279
243
|
id: string;
|
|
@@ -342,16 +306,7 @@ export declare const replyToChannelMessage: import("frogbot").PieceActionDefinit
|
|
|
342
306
|
signal?: AbortSignal;
|
|
343
307
|
}) => Promise<import("./schemas.js").GraphPage<T>>;
|
|
344
308
|
meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
|
|
345
|
-
|
|
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;
|
|
354
|
-
}>;
|
|
309
|
+
authorize(target: URL, headers: Headers): void;
|
|
355
310
|
}, {
|
|
356
311
|
[x: string]: unknown;
|
|
357
312
|
id: string;
|
|
@@ -439,16 +394,7 @@ export declare const createChatAndSendMessage: import("frogbot").PieceActionDefi
|
|
|
439
394
|
signal?: AbortSignal;
|
|
440
395
|
}) => Promise<import("./schemas.js").GraphPage<T>>;
|
|
441
396
|
meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
|
|
442
|
-
|
|
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
|
-
}>;
|
|
397
|
+
authorize(target: URL, headers: Headers): void;
|
|
452
398
|
}, {
|
|
453
399
|
chat: {
|
|
454
400
|
[x: string]: unknown;
|
|
@@ -528,16 +474,7 @@ export declare const getChatMessage: import("frogbot").PieceActionDefinition<z.Z
|
|
|
528
474
|
signal?: AbortSignal;
|
|
529
475
|
}) => Promise<import("./schemas.js").GraphPage<T>>;
|
|
530
476
|
meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
|
|
531
|
-
|
|
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
|
-
}>;
|
|
477
|
+
authorize(target: URL, headers: Headers): void;
|
|
541
478
|
}, {
|
|
542
479
|
[x: string]: unknown;
|
|
543
480
|
id: string;
|
|
@@ -595,16 +532,7 @@ export declare const deleteChatMessage: import("frogbot").PieceActionDefinition<
|
|
|
595
532
|
signal?: AbortSignal;
|
|
596
533
|
}) => Promise<import("./schemas.js").GraphPage<T>>;
|
|
597
534
|
meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
|
|
598
|
-
|
|
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;
|
|
607
|
-
}>;
|
|
535
|
+
authorize(target: URL, headers: Headers): void;
|
|
608
536
|
}, {
|
|
609
537
|
success: true;
|
|
610
538
|
messageId: string;
|
|
@@ -662,16 +590,7 @@ export declare const getChannelMessage: import("frogbot").PieceActionDefinition<
|
|
|
662
590
|
signal?: AbortSignal;
|
|
663
591
|
}) => Promise<import("./schemas.js").GraphPage<T>>;
|
|
664
592
|
meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
|
|
665
|
-
|
|
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;
|
|
674
|
-
}>;
|
|
593
|
+
authorize(target: URL, headers: Headers): void;
|
|
675
594
|
}, {
|
|
676
595
|
[x: string]: unknown;
|
|
677
596
|
id: string;
|
|
@@ -735,16 +654,7 @@ export declare const findChannel: import("frogbot").PieceActionDefinition<z.ZodO
|
|
|
735
654
|
signal?: AbortSignal;
|
|
736
655
|
}) => Promise<import("./schemas.js").GraphPage<T>>;
|
|
737
656
|
meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
|
|
738
|
-
|
|
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;
|
|
747
|
-
}>;
|
|
657
|
+
authorize(target: URL, headers: Headers): void;
|
|
748
658
|
}, {
|
|
749
659
|
found: boolean;
|
|
750
660
|
result: {
|
|
@@ -810,16 +720,7 @@ export declare const findTeamMember: import("frogbot").PieceActionDefinition<z.Z
|
|
|
810
720
|
signal?: AbortSignal;
|
|
811
721
|
}) => Promise<import("./schemas.js").GraphPage<T>>;
|
|
812
722
|
meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
|
|
813
|
-
|
|
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;
|
|
822
|
-
}>;
|
|
723
|
+
authorize(target: URL, headers: Headers): void;
|
|
823
724
|
}, {
|
|
824
725
|
found: boolean;
|
|
825
726
|
result: {
|
|
@@ -886,16 +787,7 @@ export declare const getMeetingTranscript: import("frogbot").PieceActionDefiniti
|
|
|
886
787
|
signal?: AbortSignal;
|
|
887
788
|
}) => Promise<import("./schemas.js").GraphPage<T>>;
|
|
888
789
|
meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
|
|
889
|
-
|
|
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;
|
|
898
|
-
}>;
|
|
790
|
+
authorize(target: URL, headers: Headers): void;
|
|
899
791
|
}, import("./schemas.js").GraphPage<{
|
|
900
792
|
[x: string]: unknown;
|
|
901
793
|
id: string;
|
|
@@ -960,16 +852,7 @@ export declare const getMeetingRecording: import("frogbot").PieceActionDefinitio
|
|
|
960
852
|
signal?: AbortSignal;
|
|
961
853
|
}) => Promise<import("./schemas.js").GraphPage<T>>;
|
|
962
854
|
meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
|
|
963
|
-
|
|
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
|
-
}>;
|
|
855
|
+
authorize(target: URL, headers: Headers): void;
|
|
973
856
|
}, {
|
|
974
857
|
[x: string]: unknown;
|
|
975
858
|
id: string;
|
|
@@ -981,21 +864,7 @@ export declare const getMeetingRecording: import("frogbot").PieceActionDefinitio
|
|
|
981
864
|
}>> & {
|
|
982
865
|
slug: "getMeetingRecording";
|
|
983
866
|
};
|
|
984
|
-
export declare const customApiCall: import("frogbot").
|
|
985
|
-
method: z.ZodEnum<{
|
|
986
|
-
GET: "GET";
|
|
987
|
-
POST: "POST";
|
|
988
|
-
PATCH: "PATCH";
|
|
989
|
-
PUT: "PUT";
|
|
990
|
-
DELETE: "DELETE";
|
|
991
|
-
}>;
|
|
992
|
-
path: z.ZodString;
|
|
993
|
-
query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
994
|
-
body: z.ZodOptional<z.ZodJSONSchema>;
|
|
995
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
996
|
-
status: z.ZodNumber;
|
|
997
|
-
body: z.ZodJSONSchema;
|
|
998
|
-
}, z.core.$strip>, {
|
|
867
|
+
export declare const customApiCall: import("frogbot/pieces").CustomApiCallAction<{
|
|
999
868
|
botAppType: "MultiTenant" | "SingleTenant";
|
|
1000
869
|
botUsername: string;
|
|
1001
870
|
botTenantId?: string | undefined;
|
|
@@ -1031,22 +900,8 @@ export declare const customApiCall: import("frogbot").PieceActionDefinition<z.Zo
|
|
|
1031
900
|
signal?: AbortSignal;
|
|
1032
901
|
}) => Promise<import("./schemas.js").GraphPage<T>>;
|
|
1033
902
|
meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
body?: unknown;
|
|
1037
|
-
headers?: Record<string, string>;
|
|
1038
|
-
query?: Record<string, string | number>;
|
|
1039
|
-
signal?: AbortSignal;
|
|
1040
|
-
}): Promise<{
|
|
1041
|
-
status: number;
|
|
1042
|
-
body: T;
|
|
1043
|
-
}>;
|
|
1044
|
-
}, {
|
|
1045
|
-
status: number;
|
|
1046
|
-
body: z.core.util.JSONType;
|
|
1047
|
-
}> & {
|
|
1048
|
-
slug: "customApiCall";
|
|
1049
|
-
};
|
|
903
|
+
authorize(target: URL, headers: Headers): void;
|
|
904
|
+
}>;
|
|
1050
905
|
export declare const microsoftTeamsActionDefinitions: ((import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
1051
906
|
channelDisplayName: z.ZodString;
|
|
1052
907
|
channelDescription: z.ZodOptional<z.ZodString>;
|
|
@@ -1094,16 +949,7 @@ export declare const microsoftTeamsActionDefinitions: ((import("frogbot").PieceA
|
|
|
1094
949
|
signal?: AbortSignal;
|
|
1095
950
|
}) => Promise<import("./schemas.js").GraphPage<T>>;
|
|
1096
951
|
meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
|
|
1097
|
-
|
|
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
|
-
}>;
|
|
952
|
+
authorize(target: URL, headers: Headers): void;
|
|
1107
953
|
}, {
|
|
1108
954
|
[x: string]: unknown;
|
|
1109
955
|
id: string;
|
|
@@ -1161,16 +1007,7 @@ export declare const microsoftTeamsActionDefinitions: ((import("frogbot").PieceA
|
|
|
1161
1007
|
signal?: AbortSignal;
|
|
1162
1008
|
}) => Promise<import("./schemas.js").GraphPage<T>>;
|
|
1163
1009
|
meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
|
|
1164
|
-
|
|
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
|
-
}>;
|
|
1010
|
+
authorize(target: URL, headers: Headers): void;
|
|
1174
1011
|
}, {
|
|
1175
1012
|
[x: string]: unknown;
|
|
1176
1013
|
id: string;
|
|
@@ -1234,16 +1071,7 @@ export declare const microsoftTeamsActionDefinitions: ((import("frogbot").PieceA
|
|
|
1234
1071
|
signal?: AbortSignal;
|
|
1235
1072
|
}) => Promise<import("./schemas.js").GraphPage<T>>;
|
|
1236
1073
|
meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
|
|
1237
|
-
|
|
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
|
-
}>;
|
|
1074
|
+
authorize(target: URL, headers: Headers): void;
|
|
1247
1075
|
}, {
|
|
1248
1076
|
[x: string]: unknown;
|
|
1249
1077
|
id: string;
|
|
@@ -1309,16 +1137,7 @@ export declare const microsoftTeamsActionDefinitions: ((import("frogbot").PieceA
|
|
|
1309
1137
|
signal?: AbortSignal;
|
|
1310
1138
|
}) => Promise<import("./schemas.js").GraphPage<T>>;
|
|
1311
1139
|
meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
|
|
1312
|
-
|
|
1313
|
-
method?: string;
|
|
1314
|
-
body?: unknown;
|
|
1315
|
-
headers?: Record<string, string>;
|
|
1316
|
-
query?: Record<string, string | number>;
|
|
1317
|
-
signal?: AbortSignal;
|
|
1318
|
-
}): Promise<{
|
|
1319
|
-
status: number;
|
|
1320
|
-
body: T;
|
|
1321
|
-
}>;
|
|
1140
|
+
authorize(target: URL, headers: Headers): void;
|
|
1322
1141
|
}, {
|
|
1323
1142
|
[x: string]: unknown;
|
|
1324
1143
|
id: string;
|
|
@@ -1386,16 +1205,7 @@ export declare const microsoftTeamsActionDefinitions: ((import("frogbot").PieceA
|
|
|
1386
1205
|
signal?: AbortSignal;
|
|
1387
1206
|
}) => Promise<import("./schemas.js").GraphPage<T>>;
|
|
1388
1207
|
meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
|
|
1389
|
-
|
|
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
|
-
}>;
|
|
1208
|
+
authorize(target: URL, headers: Headers): void;
|
|
1399
1209
|
}, {
|
|
1400
1210
|
[x: string]: unknown;
|
|
1401
1211
|
id: string;
|
|
@@ -1482,16 +1292,7 @@ export declare const microsoftTeamsActionDefinitions: ((import("frogbot").PieceA
|
|
|
1482
1292
|
signal?: AbortSignal;
|
|
1483
1293
|
}) => Promise<import("./schemas.js").GraphPage<T>>;
|
|
1484
1294
|
meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
|
|
1485
|
-
|
|
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
|
-
}>;
|
|
1295
|
+
authorize(target: URL, headers: Headers): void;
|
|
1495
1296
|
}, {
|
|
1496
1297
|
chat: {
|
|
1497
1298
|
[x: string]: unknown;
|
|
@@ -1570,16 +1371,7 @@ export declare const microsoftTeamsActionDefinitions: ((import("frogbot").PieceA
|
|
|
1570
1371
|
signal?: AbortSignal;
|
|
1571
1372
|
}) => Promise<import("./schemas.js").GraphPage<T>>;
|
|
1572
1373
|
meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
|
|
1573
|
-
|
|
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;
|
|
1582
|
-
}>;
|
|
1374
|
+
authorize(target: URL, headers: Headers): void;
|
|
1583
1375
|
}, {
|
|
1584
1376
|
[x: string]: unknown;
|
|
1585
1377
|
id: string;
|
|
@@ -1636,16 +1428,7 @@ export declare const microsoftTeamsActionDefinitions: ((import("frogbot").PieceA
|
|
|
1636
1428
|
signal?: AbortSignal;
|
|
1637
1429
|
}) => Promise<import("./schemas.js").GraphPage<T>>;
|
|
1638
1430
|
meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
|
|
1639
|
-
|
|
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;
|
|
1648
|
-
}>;
|
|
1431
|
+
authorize(target: URL, headers: Headers): void;
|
|
1649
1432
|
}, {
|
|
1650
1433
|
success: true;
|
|
1651
1434
|
messageId: string;
|
|
@@ -1702,16 +1485,7 @@ export declare const microsoftTeamsActionDefinitions: ((import("frogbot").PieceA
|
|
|
1702
1485
|
signal?: AbortSignal;
|
|
1703
1486
|
}) => Promise<import("./schemas.js").GraphPage<T>>;
|
|
1704
1487
|
meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
|
|
1705
|
-
|
|
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
|
-
}>;
|
|
1488
|
+
authorize(target: URL, headers: Headers): void;
|
|
1715
1489
|
}, {
|
|
1716
1490
|
[x: string]: unknown;
|
|
1717
1491
|
id: string;
|
|
@@ -1774,16 +1548,7 @@ export declare const microsoftTeamsActionDefinitions: ((import("frogbot").PieceA
|
|
|
1774
1548
|
signal?: AbortSignal;
|
|
1775
1549
|
}) => Promise<import("./schemas.js").GraphPage<T>>;
|
|
1776
1550
|
meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
|
|
1777
|
-
|
|
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
|
-
}>;
|
|
1551
|
+
authorize(target: URL, headers: Headers): void;
|
|
1787
1552
|
}, {
|
|
1788
1553
|
found: boolean;
|
|
1789
1554
|
result: {
|
|
@@ -1848,16 +1613,7 @@ export declare const microsoftTeamsActionDefinitions: ((import("frogbot").PieceA
|
|
|
1848
1613
|
signal?: AbortSignal;
|
|
1849
1614
|
}) => Promise<import("./schemas.js").GraphPage<T>>;
|
|
1850
1615
|
meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
|
|
1851
|
-
|
|
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
|
-
}>;
|
|
1616
|
+
authorize(target: URL, headers: Headers): void;
|
|
1861
1617
|
}, {
|
|
1862
1618
|
found: boolean;
|
|
1863
1619
|
result: {
|
|
@@ -1923,16 +1679,7 @@ export declare const microsoftTeamsActionDefinitions: ((import("frogbot").PieceA
|
|
|
1923
1679
|
signal?: AbortSignal;
|
|
1924
1680
|
}) => Promise<import("./schemas.js").GraphPage<T>>;
|
|
1925
1681
|
meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
|
|
1926
|
-
|
|
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
|
-
}>;
|
|
1682
|
+
authorize(target: URL, headers: Headers): void;
|
|
1936
1683
|
}, import("./schemas.js").GraphPage<{
|
|
1937
1684
|
[x: string]: unknown;
|
|
1938
1685
|
id: string;
|
|
@@ -1996,16 +1743,7 @@ export declare const microsoftTeamsActionDefinitions: ((import("frogbot").PieceA
|
|
|
1996
1743
|
signal?: AbortSignal;
|
|
1997
1744
|
}) => Promise<import("./schemas.js").GraphPage<T>>;
|
|
1998
1745
|
meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
|
|
1999
|
-
|
|
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
|
-
}>;
|
|
1746
|
+
authorize(target: URL, headers: Headers): void;
|
|
2009
1747
|
}, {
|
|
2010
1748
|
[x: string]: unknown;
|
|
2011
1749
|
id: string;
|
|
@@ -2016,21 +1754,7 @@ export declare const microsoftTeamsActionDefinitions: ((import("frogbot").PieceA
|
|
|
2016
1754
|
createdDateTime?: string | null | undefined;
|
|
2017
1755
|
}>> & {
|
|
2018
1756
|
slug: "getMeetingRecording";
|
|
2019
|
-
}) |
|
|
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>, {
|
|
1757
|
+
}) | import("frogbot/pieces").CustomApiCallAction<{
|
|
2034
1758
|
botAppType: "MultiTenant" | "SingleTenant";
|
|
2035
1759
|
botUsername: string;
|
|
2036
1760
|
botTenantId?: string | undefined;
|
|
@@ -2066,20 +1790,6 @@ export declare const microsoftTeamsActionDefinitions: ((import("frogbot").PieceA
|
|
|
2066
1790
|
signal?: AbortSignal;
|
|
2067
1791
|
}) => Promise<import("./schemas.js").GraphPage<T>>;
|
|
2068
1792
|
meetingId: (type: string, value: string, abortSignal?: AbortSignal) => Promise<string>;
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
body?: unknown;
|
|
2072
|
-
headers?: Record<string, string>;
|
|
2073
|
-
query?: Record<string, string | number>;
|
|
2074
|
-
signal?: AbortSignal;
|
|
2075
|
-
}): Promise<{
|
|
2076
|
-
status: number;
|
|
2077
|
-
body: T;
|
|
2078
|
-
}>;
|
|
2079
|
-
}, {
|
|
2080
|
-
status: number;
|
|
2081
|
-
body: z.core.util.JSONType;
|
|
2082
|
-
}> & {
|
|
2083
|
-
slug: "customApiCall";
|
|
2084
|
-
}))[];
|
|
1793
|
+
authorize(target: URL, headers: Headers): void;
|
|
1794
|
+
}>)[];
|
|
2085
1795
|
//# sourceMappingURL=actions.d.ts.map
|
package/dist/actions.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../src/actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAmCxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../src/actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAmCxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;uCAsCnB,EAAG,OAAO;;;;;;;;;;;;;;oCAOX,EAAA,OAAM;;;;;;;oCAiBV,EAAG,OAAO;;;;;;;;;;;;;;;;;;;CAhDV,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;yCAsBvB,OAAO;;;;;;;;;;;;;;sCAOX,OAAM;;;;;;;sCAiBP,OAAO;;;;;;;;;;;;;;;;;;;CA/BV,CAAC;AAIH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;yCAGrB,OAAO;;;;;;;;;;;;;;sCAOX,OAAM;;;;;;;sCAiBP,OAAO;;;;;;;;;;;;;;;;;;;;;;CATV,CAAC;AAIH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;yCAnBlB,OAAO;;;;;;;;;;;;;;sCAOX,OAAM;;;;;;;sCAiBP,OAAO;;;;;;;;;;;;;;;;;;;;;;CASV,CAAC;AAIH,eAAO,MAAM,qBA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iBP,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yCAxBF,OAAO;;;;;;;;;;;;;;sCAOX,OAAM;;;;;;;sCAiBP,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yCAxBF,OAAO;;;;;;;;;;;;;;sCAOX,OAAM;;;;;;;sCAiBP,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yCAxBF,OAAO;;;;;;;;;;;;;;sCAOX,OAAM;;;;;;;sCAiBP,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yCAxBF,OAAO;;;;;;;;;;;;;;sCAOX,OAAM;;;;;;;sCAiBP,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yCAxBF,OAAO;;;;;;;;;;;;;;sCAOX,OAAM;;;;;;;sCAiBP,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;yCAxBF,OAAO;;;;;;;;;;;;;;sCAOX,OAAM;;;;;;;sCAiBP,OAAO;;;;;;;;;KA4QX,CAAC"}
|
package/dist/actions.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { signal } from './client.js';
|
|
3
3
|
import { contentType, identifier, meetingIdentifierType } from './config.js';
|
|
4
|
-
import { defineAction } from './define.js';
|
|
4
|
+
import { defineAction, defineCustomApiCall } from './define.js';
|
|
5
5
|
import { channels, chats, members, teams } from './options.js';
|
|
6
6
|
import { channel, chat, member, message, page, recording, searchResult, transcript, user } from './schemas.js';
|
|
7
7
|
const teamInput = {
|
|
@@ -399,43 +399,11 @@ export const getMeetingRecording = defineAction({
|
|
|
399
399
|
});
|
|
400
400
|
}
|
|
401
401
|
});
|
|
402
|
-
const
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
'PUT',
|
|
408
|
-
'DELETE'
|
|
409
|
-
]),
|
|
410
|
-
path: z.string().min(1),
|
|
411
|
-
query: z.record(z.string(), z.union([
|
|
412
|
-
z.string(),
|
|
413
|
-
z.number()
|
|
414
|
-
])).optional(),
|
|
415
|
-
body: z.json().optional()
|
|
416
|
-
});
|
|
417
|
-
const customOutput = z.object({
|
|
418
|
-
status: z.number().int(),
|
|
419
|
-
body: z.json()
|
|
420
|
-
});
|
|
421
|
-
export const customApiCall = defineAction({
|
|
422
|
-
slug: 'customApiCall',
|
|
423
|
-
description: 'Make an authenticated JSON request within Microsoft Graph v1.0.',
|
|
424
|
-
input: customInput,
|
|
425
|
-
output: customOutput,
|
|
426
|
-
idempotent: false,
|
|
427
|
-
async run ({ client, input, req }) {
|
|
428
|
-
const target = new URL(input.path, `${client.baseUrl}/v1.0/`);
|
|
429
|
-
if (target.origin !== client.baseUrl || !target.pathname.startsWith('/v1.0/')) {
|
|
430
|
-
throw new Error('Custom API calls must target Microsoft Graph v1.0 in the configured cloud.');
|
|
431
|
-
}
|
|
432
|
-
return client.custom(target.toString(), z.json(), {
|
|
433
|
-
method: input.method,
|
|
434
|
-
query: input.query,
|
|
435
|
-
body: input.body,
|
|
436
|
-
signal: signal(req)
|
|
437
|
-
});
|
|
438
|
-
}
|
|
402
|
+
export const customApiCall = defineCustomApiCall({
|
|
403
|
+
name: 'Microsoft Graph',
|
|
404
|
+
description: 'Make an authenticated request within Microsoft Graph v1.0.',
|
|
405
|
+
baseUrl: (client)=>`${client.baseUrl}/v1.0`,
|
|
406
|
+
authorize: ({ client, url, headers })=>client.authorize(url, headers)
|
|
439
407
|
});
|
|
440
408
|
export const microsoftTeamsActionDefinitions = [
|
|
441
409
|
createChannel,
|