@frogbotai/piece-microsoft-teams 0.39.0 → 0.40.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions.d.ts +30 -30
- package/dist/client.d.ts +1 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +3 -4
- package/dist/client.js.map +1 -1
- package/dist/config.d.ts +5 -22
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +2 -22
- package/dist/config.js.map +1 -1
- package/dist/define.d.ts +176 -156
- package/dist/define.d.ts.map +1 -1
- package/dist/index.d.ts +1093 -1046
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -25
- package/dist/index.js.map +1 -1
- package/dist/triggers.d.ts +960 -850
- package/dist/triggers.d.ts.map +1 -1
- package/dist/triggers.js +28 -28
- package/dist/triggers.js.map +1 -1
- package/package.json +5 -4
package/dist/actions.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export declare const createChannel: import("frogbot").PieceActionDefinition<z.Zo
|
|
|
16
16
|
botTenantId?: string | undefined;
|
|
17
17
|
botApiUrl?: string | undefined;
|
|
18
18
|
}, {
|
|
19
|
-
baseUrl:
|
|
19
|
+
baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
|
|
20
20
|
request: <T>(path: string, schema: z.ZodType<T>, options?: {
|
|
21
21
|
method?: string;
|
|
22
22
|
body?: unknown;
|
|
@@ -75,7 +75,7 @@ export declare const createPrivateChannel: import("frogbot").PieceActionDefiniti
|
|
|
75
75
|
botTenantId?: string | undefined;
|
|
76
76
|
botApiUrl?: string | undefined;
|
|
77
77
|
}, {
|
|
78
|
-
baseUrl:
|
|
78
|
+
baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
|
|
79
79
|
request: <T>(path: string, schema: z.ZodType<T>, options?: {
|
|
80
80
|
method?: string;
|
|
81
81
|
body?: unknown;
|
|
@@ -140,7 +140,7 @@ export declare const sendChannelMessage: import("frogbot").PieceActionDefinition
|
|
|
140
140
|
botTenantId?: string | undefined;
|
|
141
141
|
botApiUrl?: string | undefined;
|
|
142
142
|
}, {
|
|
143
|
-
baseUrl:
|
|
143
|
+
baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
|
|
144
144
|
request: <T>(path: string, schema: z.ZodType<T>, options?: {
|
|
145
145
|
method?: string;
|
|
146
146
|
body?: unknown;
|
|
@@ -207,7 +207,7 @@ export declare const sendChatMessage: import("frogbot").PieceActionDefinition<z.
|
|
|
207
207
|
botTenantId?: string | undefined;
|
|
208
208
|
botApiUrl?: string | undefined;
|
|
209
209
|
}, {
|
|
210
|
-
baseUrl:
|
|
210
|
+
baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
|
|
211
211
|
request: <T>(path: string, schema: z.ZodType<T>, options?: {
|
|
212
212
|
method?: string;
|
|
213
213
|
body?: unknown;
|
|
@@ -276,7 +276,7 @@ export declare const replyToChannelMessage: import("frogbot").PieceActionDefinit
|
|
|
276
276
|
botTenantId?: string | undefined;
|
|
277
277
|
botApiUrl?: string | undefined;
|
|
278
278
|
}, {
|
|
279
|
-
baseUrl:
|
|
279
|
+
baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
|
|
280
280
|
request: <T>(path: string, schema: z.ZodType<T>, options?: {
|
|
281
281
|
method?: string;
|
|
282
282
|
body?: unknown;
|
|
@@ -364,7 +364,7 @@ export declare const createChatAndSendMessage: import("frogbot").PieceActionDefi
|
|
|
364
364
|
botTenantId?: string | undefined;
|
|
365
365
|
botApiUrl?: string | undefined;
|
|
366
366
|
}, {
|
|
367
|
-
baseUrl:
|
|
367
|
+
baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
|
|
368
368
|
request: <T>(path: string, schema: z.ZodType<T>, options?: {
|
|
369
369
|
method?: string;
|
|
370
370
|
body?: unknown;
|
|
@@ -444,7 +444,7 @@ export declare const getChatMessage: import("frogbot").PieceActionDefinition<z.Z
|
|
|
444
444
|
botTenantId?: string | undefined;
|
|
445
445
|
botApiUrl?: string | undefined;
|
|
446
446
|
}, {
|
|
447
|
-
baseUrl:
|
|
447
|
+
baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
|
|
448
448
|
request: <T>(path: string, schema: z.ZodType<T>, options?: {
|
|
449
449
|
method?: string;
|
|
450
450
|
body?: unknown;
|
|
@@ -502,7 +502,7 @@ export declare const deleteChatMessage: import("frogbot").PieceActionDefinition<
|
|
|
502
502
|
botTenantId?: string | undefined;
|
|
503
503
|
botApiUrl?: string | undefined;
|
|
504
504
|
}, {
|
|
505
|
-
baseUrl:
|
|
505
|
+
baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
|
|
506
506
|
request: <T>(path: string, schema: z.ZodType<T>, options?: {
|
|
507
507
|
method?: string;
|
|
508
508
|
body?: unknown;
|
|
@@ -560,7 +560,7 @@ export declare const getChannelMessage: import("frogbot").PieceActionDefinition<
|
|
|
560
560
|
botTenantId?: string | undefined;
|
|
561
561
|
botApiUrl?: string | undefined;
|
|
562
562
|
}, {
|
|
563
|
-
baseUrl:
|
|
563
|
+
baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
|
|
564
564
|
request: <T>(path: string, schema: z.ZodType<T>, options?: {
|
|
565
565
|
method?: string;
|
|
566
566
|
body?: unknown;
|
|
@@ -624,7 +624,7 @@ export declare const findChannel: import("frogbot").PieceActionDefinition<z.ZodO
|
|
|
624
624
|
botTenantId?: string | undefined;
|
|
625
625
|
botApiUrl?: string | undefined;
|
|
626
626
|
}, {
|
|
627
|
-
baseUrl:
|
|
627
|
+
baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
|
|
628
628
|
request: <T>(path: string, schema: z.ZodType<T>, options?: {
|
|
629
629
|
method?: string;
|
|
630
630
|
body?: unknown;
|
|
@@ -671,8 +671,8 @@ export declare const findChannel: import("frogbot").PieceActionDefinition<z.ZodO
|
|
|
671
671
|
};
|
|
672
672
|
export declare const findTeamMember: import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
673
673
|
searchBy: z.ZodDefault<z.ZodEnum<{
|
|
674
|
-
name: "name";
|
|
675
674
|
email: "email";
|
|
675
|
+
name: "name";
|
|
676
676
|
}>>;
|
|
677
677
|
searchValue: z.ZodString;
|
|
678
678
|
teamId: z.ZodString;
|
|
@@ -690,7 +690,7 @@ export declare const findTeamMember: import("frogbot").PieceActionDefinition<z.Z
|
|
|
690
690
|
botTenantId?: string | undefined;
|
|
691
691
|
botApiUrl?: string | undefined;
|
|
692
692
|
}, {
|
|
693
|
-
baseUrl:
|
|
693
|
+
baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
|
|
694
694
|
request: <T>(path: string, schema: z.ZodType<T>, options?: {
|
|
695
695
|
method?: string;
|
|
696
696
|
body?: unknown;
|
|
@@ -757,7 +757,7 @@ export declare const getMeetingTranscript: import("frogbot").PieceActionDefiniti
|
|
|
757
757
|
botTenantId?: string | undefined;
|
|
758
758
|
botApiUrl?: string | undefined;
|
|
759
759
|
}, {
|
|
760
|
-
baseUrl:
|
|
760
|
+
baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
|
|
761
761
|
request: <T>(path: string, schema: z.ZodType<T>, options?: {
|
|
762
762
|
method?: string;
|
|
763
763
|
body?: unknown;
|
|
@@ -822,7 +822,7 @@ export declare const getMeetingRecording: import("frogbot").PieceActionDefinitio
|
|
|
822
822
|
botTenantId?: string | undefined;
|
|
823
823
|
botApiUrl?: string | undefined;
|
|
824
824
|
}, {
|
|
825
|
-
baseUrl:
|
|
825
|
+
baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
|
|
826
826
|
request: <T>(path: string, schema: z.ZodType<T>, options?: {
|
|
827
827
|
method?: string;
|
|
828
828
|
body?: unknown;
|
|
@@ -870,7 +870,7 @@ export declare const customApiCall: import("frogbot/pieces").CustomApiCallAction
|
|
|
870
870
|
botTenantId?: string | undefined;
|
|
871
871
|
botApiUrl?: string | undefined;
|
|
872
872
|
}, {
|
|
873
|
-
baseUrl:
|
|
873
|
+
baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
|
|
874
874
|
request: <T>(path: string, schema: z.ZodType<T>, options?: {
|
|
875
875
|
method?: string;
|
|
876
876
|
body?: unknown;
|
|
@@ -919,7 +919,7 @@ export declare const microsoftTeamsActionDefinitions: ((import("frogbot").PieceA
|
|
|
919
919
|
botTenantId?: string | undefined;
|
|
920
920
|
botApiUrl?: string | undefined;
|
|
921
921
|
}, {
|
|
922
|
-
baseUrl:
|
|
922
|
+
baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
|
|
923
923
|
request: <T>(path: string, schema: z.ZodType<T>, options?: {
|
|
924
924
|
method?: string;
|
|
925
925
|
body?: unknown;
|
|
@@ -977,7 +977,7 @@ export declare const microsoftTeamsActionDefinitions: ((import("frogbot").PieceA
|
|
|
977
977
|
botTenantId?: string | undefined;
|
|
978
978
|
botApiUrl?: string | undefined;
|
|
979
979
|
}, {
|
|
980
|
-
baseUrl:
|
|
980
|
+
baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
|
|
981
981
|
request: <T>(path: string, schema: z.ZodType<T>, options?: {
|
|
982
982
|
method?: string;
|
|
983
983
|
body?: unknown;
|
|
@@ -1041,7 +1041,7 @@ export declare const microsoftTeamsActionDefinitions: ((import("frogbot").PieceA
|
|
|
1041
1041
|
botTenantId?: string | undefined;
|
|
1042
1042
|
botApiUrl?: string | undefined;
|
|
1043
1043
|
}, {
|
|
1044
|
-
baseUrl:
|
|
1044
|
+
baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
|
|
1045
1045
|
request: <T>(path: string, schema: z.ZodType<T>, options?: {
|
|
1046
1046
|
method?: string;
|
|
1047
1047
|
body?: unknown;
|
|
@@ -1107,7 +1107,7 @@ export declare const microsoftTeamsActionDefinitions: ((import("frogbot").PieceA
|
|
|
1107
1107
|
botTenantId?: string | undefined;
|
|
1108
1108
|
botApiUrl?: string | undefined;
|
|
1109
1109
|
}, {
|
|
1110
|
-
baseUrl:
|
|
1110
|
+
baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
|
|
1111
1111
|
request: <T>(path: string, schema: z.ZodType<T>, options?: {
|
|
1112
1112
|
method?: string;
|
|
1113
1113
|
body?: unknown;
|
|
@@ -1175,7 +1175,7 @@ export declare const microsoftTeamsActionDefinitions: ((import("frogbot").PieceA
|
|
|
1175
1175
|
botTenantId?: string | undefined;
|
|
1176
1176
|
botApiUrl?: string | undefined;
|
|
1177
1177
|
}, {
|
|
1178
|
-
baseUrl:
|
|
1178
|
+
baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
|
|
1179
1179
|
request: <T>(path: string, schema: z.ZodType<T>, options?: {
|
|
1180
1180
|
method?: string;
|
|
1181
1181
|
body?: unknown;
|
|
@@ -1262,7 +1262,7 @@ export declare const microsoftTeamsActionDefinitions: ((import("frogbot").PieceA
|
|
|
1262
1262
|
botTenantId?: string | undefined;
|
|
1263
1263
|
botApiUrl?: string | undefined;
|
|
1264
1264
|
}, {
|
|
1265
|
-
baseUrl:
|
|
1265
|
+
baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
|
|
1266
1266
|
request: <T>(path: string, schema: z.ZodType<T>, options?: {
|
|
1267
1267
|
method?: string;
|
|
1268
1268
|
body?: unknown;
|
|
@@ -1341,7 +1341,7 @@ export declare const microsoftTeamsActionDefinitions: ((import("frogbot").PieceA
|
|
|
1341
1341
|
botTenantId?: string | undefined;
|
|
1342
1342
|
botApiUrl?: string | undefined;
|
|
1343
1343
|
}, {
|
|
1344
|
-
baseUrl:
|
|
1344
|
+
baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
|
|
1345
1345
|
request: <T>(path: string, schema: z.ZodType<T>, options?: {
|
|
1346
1346
|
method?: string;
|
|
1347
1347
|
body?: unknown;
|
|
@@ -1398,7 +1398,7 @@ export declare const microsoftTeamsActionDefinitions: ((import("frogbot").PieceA
|
|
|
1398
1398
|
botTenantId?: string | undefined;
|
|
1399
1399
|
botApiUrl?: string | undefined;
|
|
1400
1400
|
}, {
|
|
1401
|
-
baseUrl:
|
|
1401
|
+
baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
|
|
1402
1402
|
request: <T>(path: string, schema: z.ZodType<T>, options?: {
|
|
1403
1403
|
method?: string;
|
|
1404
1404
|
body?: unknown;
|
|
@@ -1455,7 +1455,7 @@ export declare const microsoftTeamsActionDefinitions: ((import("frogbot").PieceA
|
|
|
1455
1455
|
botTenantId?: string | undefined;
|
|
1456
1456
|
botApiUrl?: string | undefined;
|
|
1457
1457
|
}, {
|
|
1458
|
-
baseUrl:
|
|
1458
|
+
baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
|
|
1459
1459
|
request: <T>(path: string, schema: z.ZodType<T>, options?: {
|
|
1460
1460
|
method?: string;
|
|
1461
1461
|
body?: unknown;
|
|
@@ -1518,7 +1518,7 @@ export declare const microsoftTeamsActionDefinitions: ((import("frogbot").PieceA
|
|
|
1518
1518
|
botTenantId?: string | undefined;
|
|
1519
1519
|
botApiUrl?: string | undefined;
|
|
1520
1520
|
}, {
|
|
1521
|
-
baseUrl:
|
|
1521
|
+
baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
|
|
1522
1522
|
request: <T>(path: string, schema: z.ZodType<T>, options?: {
|
|
1523
1523
|
method?: string;
|
|
1524
1524
|
body?: unknown;
|
|
@@ -1564,8 +1564,8 @@ export declare const microsoftTeamsActionDefinitions: ((import("frogbot").PieceA
|
|
|
1564
1564
|
slug: "findChannel";
|
|
1565
1565
|
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
1566
1566
|
searchBy: z.ZodDefault<z.ZodEnum<{
|
|
1567
|
-
name: "name";
|
|
1568
1567
|
email: "email";
|
|
1568
|
+
name: "name";
|
|
1569
1569
|
}>>;
|
|
1570
1570
|
searchValue: z.ZodString;
|
|
1571
1571
|
teamId: z.ZodString;
|
|
@@ -1583,7 +1583,7 @@ export declare const microsoftTeamsActionDefinitions: ((import("frogbot").PieceA
|
|
|
1583
1583
|
botTenantId?: string | undefined;
|
|
1584
1584
|
botApiUrl?: string | undefined;
|
|
1585
1585
|
}, {
|
|
1586
|
-
baseUrl:
|
|
1586
|
+
baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
|
|
1587
1587
|
request: <T>(path: string, schema: z.ZodType<T>, options?: {
|
|
1588
1588
|
method?: string;
|
|
1589
1589
|
body?: unknown;
|
|
@@ -1649,7 +1649,7 @@ export declare const microsoftTeamsActionDefinitions: ((import("frogbot").PieceA
|
|
|
1649
1649
|
botTenantId?: string | undefined;
|
|
1650
1650
|
botApiUrl?: string | undefined;
|
|
1651
1651
|
}, {
|
|
1652
|
-
baseUrl:
|
|
1652
|
+
baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
|
|
1653
1653
|
request: <T>(path: string, schema: z.ZodType<T>, options?: {
|
|
1654
1654
|
method?: string;
|
|
1655
1655
|
body?: unknown;
|
|
@@ -1713,7 +1713,7 @@ export declare const microsoftTeamsActionDefinitions: ((import("frogbot").PieceA
|
|
|
1713
1713
|
botTenantId?: string | undefined;
|
|
1714
1714
|
botApiUrl?: string | undefined;
|
|
1715
1715
|
}, {
|
|
1716
|
-
baseUrl:
|
|
1716
|
+
baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
|
|
1717
1717
|
request: <T>(path: string, schema: z.ZodType<T>, options?: {
|
|
1718
1718
|
method?: string;
|
|
1719
1719
|
body?: unknown;
|
|
@@ -1760,7 +1760,7 @@ export declare const microsoftTeamsActionDefinitions: ((import("frogbot").PieceA
|
|
|
1760
1760
|
botTenantId?: string | undefined;
|
|
1761
1761
|
botApiUrl?: string | undefined;
|
|
1762
1762
|
}, {
|
|
1763
|
-
baseUrl:
|
|
1763
|
+
baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
|
|
1764
1764
|
request: <T>(path: string, schema: z.ZodType<T>, options?: {
|
|
1765
1765
|
method?: string;
|
|
1766
1766
|
body?: unknown;
|
package/dist/client.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export type MicrosoftTeamsClient = ReturnType<typeof createMicrosoftTeamsClient>
|
|
|
12
12
|
export declare function createMicrosoftTeamsClient({ auth }: {
|
|
13
13
|
auth: unknown;
|
|
14
14
|
}): {
|
|
15
|
-
baseUrl:
|
|
15
|
+
baseUrl: "https://graph.microsoft.com" | "https://graph.microsoft.us";
|
|
16
16
|
request: <T>(path: string, schema: z.ZodType<T>, options?: RequestOptions) => Promise<T>;
|
|
17
17
|
text(path: string, options?: RequestOptions): Promise<string>;
|
|
18
18
|
list: <T>(path: string, schema: z.ZodType<T>, options?: RequestOptions) => Promise<T[]>;
|
package/dist/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,KAAK,SAAS,EAAQ,MAAM,cAAc,CAAC;AAEpD,KAAK,cAAc,GAAG;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;IACxC,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAEjF,wBAAgB,0BAA0B,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE;;cAsD7C,CAAC,QAChB,MAAM,UACJ,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,YACV,cAAc,KACvB,OAAO,CAAC,CAAC,CAAC;eAyDM,MAAM,YAAY,cAAc;WAlD/B,CAAC,QAAQ,MAAM,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,YAAY,cAAc;WAkB5D,CAAC,QAChB,MAAM,UACJ,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,YACV,cAAc,KACvB,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;sBAIO,MAAM,SAAS,MAAM,gBAAgB,WAAW;sBA8B3D,GAAG,WAAW,OAAO;EAK1C;AAED,wBAAgB,MAAM,CAAC,GAAG,EAAE,cAAc,2BAIzC"}
|
package/dist/client.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
+
import { microsoftCloud } from '@frogbotai/piece-microsoft';
|
|
1
2
|
import { z } from 'zod';
|
|
2
|
-
import { microsoftTeamsAuth
|
|
3
|
+
import { microsoftTeamsAuth } from './config.js';
|
|
3
4
|
import { page } from './schemas.js';
|
|
4
5
|
export function createMicrosoftTeamsClient({ auth }) {
|
|
5
6
|
const credential = microsoftTeamsAuth.parse(auth);
|
|
6
|
-
const
|
|
7
|
-
if (!environment) throw new Error('Microsoft Teams cloud environment is unsupported.');
|
|
8
|
-
const baseUrl = environment.graphUrl;
|
|
7
|
+
const baseUrl = microsoftCloud(credential.cloud).graphUrl;
|
|
9
8
|
function accessToken() {
|
|
10
9
|
if (!credential.accessToken) {
|
|
11
10
|
throw new Error('Microsoft Graph actions require a user Graph OAuth connection.');
|
package/dist/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/client.ts"],"names":["
|
|
1
|
+
{"version":3,"sources":["../src/client.ts"],"names":["microsoftCloud","z","microsoftTeamsAuth","page","createMicrosoftTeamsClient","auth","credential","parse","baseUrl","cloud","graphUrl","accessToken","Error","assertCloudUrl","target","origin","username","password","url","path","query","URL","name","value","Object","entries","searchParams","set","String","raw","options","response","fetch","method","headers","authorization","body","undefined","JSON","stringify","redirect","signal","ok","detail","text","catch","status","request","schema","json","list","items","next","result","push","getPage","meetingId","type","abortSignal","escaped","replaceAll","filter","meetings","object","id","string","$filter","meeting","authorize","req","throwIfAborted"],"mappings":"AAAA,SAASA,cAAc,QAAQ,6BAA6B;AAE5D,SAASC,CAAC,QAAQ,MAAM;AAExB,SAASC,kBAAkB,QAAQ,cAAc;AACjD,SAAyBC,IAAI,QAAQ,eAAe;AAYpD,OAAO,SAASC,2BAA2B,EAAEC,IAAI,EAAqB;IACpE,MAAMC,aAAaJ,mBAAmBK,KAAK,CAACF;IAC5C,MAAMG,UAAUR,eAAeM,WAAWG,KAAK,EAAEC,QAAQ;IAEzD,SAASC;QACP,IAAI,CAACL,WAAWK,WAAW,EAAE;YAC3B,MAAM,IAAIC,MAAM;QAClB;QAEA,OAAON,WAAWK,WAAW;IAC/B;IAEA,SAASE,eAAeC,MAAW;QACjC,IAAIA,OAAOC,MAAM,KAAKP,WAAWM,OAAOE,QAAQ,IAAIF,OAAOG,QAAQ,EAAE;YACnE,MAAM,IAAIL,MAAM;QAClB;IACF;IAEA,SAASM,IAAIC,IAAY,EAAEC,KAA+B;QACxD,MAAMN,SAAS,IAAIO,IAAIF,MAAM,GAAGX,QAAQ,MAAM,CAAC;QAE/CK,eAAeC;QAEf,KAAK,MAAM,CAACQ,MAAMC,MAAM,IAAIC,OAAOC,OAAO,CAACL,SAAS,CAAC,GAAI;YACvDN,OAAOY,YAAY,CAACC,GAAG,CAACL,MAAMM,OAAOL;QACvC;QAEA,OAAOT;IACT;IAEA,eAAee,IAAIV,IAAY,EAAEW,UAA0B,CAAC,CAAC;QAC3D,MAAMC,WAAW,MAAMC,MAAMd,IAAIC,MAAMW,QAAQV,KAAK,GAAG;YACrDa,QAAQH,QAAQG,MAAM,IAAI;YAC1BC,SAAS;gBACPC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QAC7E,IAAID,SAAS,aAAa,OAAOlC;QAEjC,MAAMoC,UAAUpC,MAAMqC,UAAU,CAAC,KAAK;QACtC,MAAMC,SACJJ,SAAS,eACL,CAAC,eAAe,EAAEE,QAAQ,CAAC,CAAC,GAC5B,CAAC,wCAAwC,EAAEA,QAAQ,CAAC,CAAC;QAE3D,MAAMG,WAAW,MAAMf,QAAQ,2BAA2B5C,KAAKF,EAAE8D,MAAM,CAAC;YAAEC,IAAI/D,EAAEgE,MAAM;QAAG,KAAK;YAC5F7C,OAAO;gBAAE8C,SAASL;YAAO;YACzBpB,QAAQiB;QACV;QAEA,MAAMS,UAAUL,SAASvC,KAAK,CAAC,EAAE;QAEjC,IAAI,CAAC4C,SAAS,MAAM,IAAIvD,MAAM;QAE9B,OAAOuD,QAAQH,EAAE;IACnB;IAEA,OAAO;QACLxD;QACAuC;QACA,MAAMH,MAAKzB,IAAY,EAAEW,OAAwB;YAC/C,OAAO,AAAC,CAAA,MAAMD,IAAIV,MAAMW,QAAO,EAAGc,IAAI;QACxC;QACAM;QACA/C,MAAMoD;QACNC;QACAY,WAAUtD,MAAW,EAAEoB,OAAgB;YACrCrB,eAAeC;YACfoB,QAAQP,GAAG,CAAC,iBAAiB,CAAC,OAAO,EAAEhB,eAAe;QACxD;IACF;AACF;AAEA,OAAO,SAAS8B,OAAO4B,GAAmB;IACxCA,IAAI5B,MAAM,EAAE6B;IAEZ,OAAOD,IAAI5B,MAAM,IAAIJ;AACvB","file":"client.js"}
|
package/dist/config.d.ts
CHANGED
|
@@ -9,13 +9,6 @@ export declare const microsoftTeamsAuth: z.ZodObject<{
|
|
|
9
9
|
}>>;
|
|
10
10
|
tenantId: z.ZodDefault<z.ZodString>;
|
|
11
11
|
}, z.core.$strip>;
|
|
12
|
-
export declare const microsoftTeamsEnvironment: z.ZodObject<{
|
|
13
|
-
cloud: z.ZodDefault<z.ZodEnum<{
|
|
14
|
-
commercial: "commercial";
|
|
15
|
-
usGovernment: "usGovernment";
|
|
16
|
-
}>>;
|
|
17
|
-
tenantId: z.ZodDefault<z.ZodString>;
|
|
18
|
-
}, z.core.$strip>;
|
|
19
12
|
export declare const microsoftTeamsOptions: z.ZodObject<{
|
|
20
13
|
botAppType: z.ZodDefault<z.ZodEnum<{
|
|
21
14
|
MultiTenant: "MultiTenant";
|
|
@@ -26,22 +19,7 @@ export declare const microsoftTeamsOptions: z.ZodObject<{
|
|
|
26
19
|
botUsername: z.ZodDefault<z.ZodString>;
|
|
27
20
|
}, z.core.$strip>;
|
|
28
21
|
export type MicrosoftTeamsOptions = z.output<typeof microsoftTeamsOptions>;
|
|
29
|
-
export declare const microsoftTeamsClouds: {
|
|
30
|
-
commercial: {
|
|
31
|
-
loginHost: string;
|
|
32
|
-
graphUrl: string;
|
|
33
|
-
};
|
|
34
|
-
usGovernment: {
|
|
35
|
-
loginHost: string;
|
|
36
|
-
graphUrl: string;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
22
|
export declare const microsoftTeamsScopes: {
|
|
40
|
-
readonly openid: "openid";
|
|
41
|
-
readonly email: "email";
|
|
42
|
-
readonly profile: "profile";
|
|
43
|
-
readonly offline_access: "offline_access";
|
|
44
|
-
readonly 'User.Read': "User.Read";
|
|
45
23
|
readonly 'Channel.Create': "Channel.Create";
|
|
46
24
|
readonly 'Channel.ReadBasic.All': "Channel.ReadBasic.All";
|
|
47
25
|
readonly 'ChannelMessage.Send': "ChannelMessage.Send";
|
|
@@ -75,6 +53,11 @@ export declare const microsoftTeamsScopes: {
|
|
|
75
53
|
readonly 'Presence.Read': "Presence.Read";
|
|
76
54
|
readonly 'OnlineMeetings.Read': "OnlineMeetings.Read";
|
|
77
55
|
readonly 'OnlineMeetings.ReadWrite': "OnlineMeetings.ReadWrite";
|
|
56
|
+
readonly openid: "openid";
|
|
57
|
+
readonly email: "email";
|
|
58
|
+
readonly profile: "profile";
|
|
59
|
+
readonly offline_access: "offline_access";
|
|
60
|
+
readonly 'User.Read': "User.Read";
|
|
78
61
|
};
|
|
79
62
|
export declare const identifier: z.ZodString;
|
|
80
63
|
export declare const contentType: z.ZodDefault<z.ZodEnum<{
|
package/dist/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,kBAAkB;;;;;;;;;iBAS7B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;iBAKhC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE3E,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCvB,CAAC;AAEX,eAAO,MAAM,UAAU,aAA2B,CAAC;AACnD,eAAO,MAAM,WAAW;;;GAA2C,CAAC;AACpE,eAAO,MAAM,qBAAqB;;;;GAEX,CAAC"}
|
package/dist/config.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { microsoftScopes } from '@frogbotai/piece-microsoft';
|
|
1
2
|
import { z } from 'zod';
|
|
2
3
|
export const microsoftTeamsAuth = z.object({
|
|
3
4
|
accessToken: z.string().min(1).optional().meta({
|
|
@@ -21,13 +22,6 @@ export const microsoftTeamsAuth = z.object({
|
|
|
21
22
|
label: 'Tenant ID'
|
|
22
23
|
})
|
|
23
24
|
});
|
|
24
|
-
export const microsoftTeamsEnvironment = z.object({
|
|
25
|
-
cloud: z.enum([
|
|
26
|
-
'commercial',
|
|
27
|
-
'usGovernment'
|
|
28
|
-
]).default('commercial'),
|
|
29
|
-
tenantId: z.string().trim().min(1).default('common')
|
|
30
|
-
});
|
|
31
25
|
export const microsoftTeamsOptions = z.object({
|
|
32
26
|
botAppType: z.enum([
|
|
33
27
|
'MultiTenant',
|
|
@@ -37,22 +31,8 @@ export const microsoftTeamsOptions = z.object({
|
|
|
37
31
|
botApiUrl: z.url().optional(),
|
|
38
32
|
botUsername: z.string().trim().min(1).default('bot')
|
|
39
33
|
});
|
|
40
|
-
export const microsoftTeamsClouds = {
|
|
41
|
-
commercial: {
|
|
42
|
-
loginHost: 'login.microsoftonline.com',
|
|
43
|
-
graphUrl: 'https://graph.microsoft.com'
|
|
44
|
-
},
|
|
45
|
-
usGovernment: {
|
|
46
|
-
loginHost: 'login.microsoftonline.us',
|
|
47
|
-
graphUrl: 'https://graph.microsoft.us'
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
34
|
export const microsoftTeamsScopes = {
|
|
51
|
-
|
|
52
|
-
email: 'email',
|
|
53
|
-
profile: 'profile',
|
|
54
|
-
offline_access: 'offline_access',
|
|
55
|
-
'User.Read': 'User.Read',
|
|
35
|
+
...microsoftScopes,
|
|
56
36
|
'Channel.Create': 'Channel.Create',
|
|
57
37
|
'Channel.ReadBasic.All': 'Channel.ReadBasic.All',
|
|
58
38
|
'ChannelMessage.Send': 'ChannelMessage.Send',
|
package/dist/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/config.ts"],"names":["z","microsoftTeamsAuth","object","accessToken","string","min","optional","meta","label","secret","appId","appPassword","cloud","enum","default","tenantId","trim","
|
|
1
|
+
{"version":3,"sources":["../src/config.ts"],"names":["microsoftScopes","z","microsoftTeamsAuth","object","accessToken","string","min","optional","meta","label","secret","appId","appPassword","cloud","enum","default","tenantId","trim","microsoftTeamsOptions","botAppType","botTenantId","botApiUrl","url","botUsername","microsoftTeamsScopes","identifier","contentType","meetingIdentifierType"],"mappings":"AAAA,SAASA,eAAe,QAAQ,6BAA6B;AAC7D,SAASC,CAAC,QAAQ,MAAM;AAExB,OAAO,MAAMC,qBAAqBD,EAAEE,MAAM,CAAC;IACzCC,aAAaH,EAAEI,MAAM,GAAGC,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