@squadbase/connectors 0.1.2-dev.5 → 0.1.2-dev.7
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/{chunk-HHVJKPCD.js → chunk-YXL7FUX2.js} +10 -10
- package/dist/index.d.ts +2 -2
- package/dist/index.js +15 -8
- package/dist/sdk.js +1 -1
- package/package.json +1 -1
|
@@ -385,21 +385,12 @@ var parameters18 = {
|
|
|
385
385
|
clientId: new ParameterDefinition({
|
|
386
386
|
slug: "client-id",
|
|
387
387
|
name: "Azure AD Client ID",
|
|
388
|
-
description: "The Application (client) ID from your Azure AD app registration.",
|
|
388
|
+
description: "The Application (client) ID from your Azure AD app registration. Required API Permissions (Application, admin consent required): Team.ReadBasic.All, Channel.ReadBasic.All, ChannelMessage.Read.All, Chat.Read.All, User.Read.All",
|
|
389
389
|
envVarBaseKey: "MS_TEAMS_CLIENT_ID",
|
|
390
390
|
type: "text",
|
|
391
391
|
secret: false,
|
|
392
392
|
required: true
|
|
393
393
|
}),
|
|
394
|
-
clientSecret: new ParameterDefinition({
|
|
395
|
-
slug: "client-secret",
|
|
396
|
-
name: "Azure AD Client Secret",
|
|
397
|
-
description: "The client secret from your Azure AD app registration.",
|
|
398
|
-
envVarBaseKey: "MS_TEAMS_CLIENT_SECRET",
|
|
399
|
-
type: "text",
|
|
400
|
-
secret: true,
|
|
401
|
-
required: true
|
|
402
|
-
}),
|
|
403
394
|
tenantId: new ParameterDefinition({
|
|
404
395
|
slug: "tenant-id",
|
|
405
396
|
name: "Azure AD Tenant ID",
|
|
@@ -408,6 +399,15 @@ var parameters18 = {
|
|
|
408
399
|
type: "text",
|
|
409
400
|
secret: false,
|
|
410
401
|
required: true
|
|
402
|
+
}),
|
|
403
|
+
clientSecret: new ParameterDefinition({
|
|
404
|
+
slug: "client-secret",
|
|
405
|
+
name: "Azure AD Client Secret",
|
|
406
|
+
description: "The client secret from your Azure AD app registration.",
|
|
407
|
+
envVarBaseKey: "MS_TEAMS_CLIENT_SECRET",
|
|
408
|
+
type: "text",
|
|
409
|
+
secret: true,
|
|
410
|
+
required: true
|
|
411
411
|
})
|
|
412
412
|
};
|
|
413
413
|
|
package/dist/index.d.ts
CHANGED
|
@@ -709,8 +709,8 @@ declare const connectors: {
|
|
|
709
709
|
}>;
|
|
710
710
|
msTeams: ConnectorPlugin<{
|
|
711
711
|
clientId: ParameterDefinition;
|
|
712
|
-
clientSecret: ParameterDefinition;
|
|
713
712
|
tenantId: ParameterDefinition;
|
|
713
|
+
clientSecret: ParameterDefinition;
|
|
714
714
|
}, {}>;
|
|
715
715
|
msTeamsOauth: ConnectorPlugin<{}, {
|
|
716
716
|
request: ConnectorTool<{
|
|
@@ -1315,8 +1315,8 @@ declare const shopifyOauthConnector: ConnectorPlugin<{}, {
|
|
|
1315
1315
|
|
|
1316
1316
|
declare const msTeamsConnector: ConnectorPlugin<{
|
|
1317
1317
|
clientId: ParameterDefinition;
|
|
1318
|
-
clientSecret: ParameterDefinition;
|
|
1319
1318
|
tenantId: ParameterDefinition;
|
|
1319
|
+
clientSecret: ParameterDefinition;
|
|
1320
1320
|
}, {}>;
|
|
1321
1321
|
|
|
1322
1322
|
declare const msTeamsOauthConnector: ConnectorPlugin<{}, {
|
package/dist/index.js
CHANGED
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
parameters7,
|
|
19
19
|
parameters8,
|
|
20
20
|
parameters9
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-YXL7FUX2.js";
|
|
22
22
|
|
|
23
23
|
// src/connector-setup.ts
|
|
24
24
|
var ConnectorSetup = class {
|
|
@@ -6466,7 +6466,12 @@ const data = await res.json();
|
|
|
6466
6466
|
- Use the client credentials flow to get an access token
|
|
6467
6467
|
- Application permissions require admin consent in Azure AD
|
|
6468
6468
|
- Pagination uses \`@odata.nextLink\` URL in the response
|
|
6469
|
-
- Required API permissions: Team.ReadBasic.All, Channel.ReadBasic.All, ChannelMessage.Read.All, Chat.Read.All, User.Read.All
|
|
6469
|
+
- Required API permissions: Team.ReadBasic.All, Channel.ReadBasic.All, ChannelMessage.Read.All, Chat.Read.All, User.Read.All
|
|
6470
|
+
|
|
6471
|
+
### Troubleshooting
|
|
6472
|
+
- If the token request returns an error, verify that the Client ID, Client Secret, and Tenant ID are correct
|
|
6473
|
+
- If Graph API returns **403 Forbidden**, the Azure AD app is missing required Application permissions or admin consent has not been granted. Ask the user to go to Azure Portal > App registrations > API permissions and grant admin consent for: Team.ReadBasic.All, Channel.ReadBasic.All, ChannelMessage.Read.All, Chat.Read.All, User.Read.All
|
|
6474
|
+
- If Graph API returns **401 Unauthorized**, the access token may be invalid or expired \u2014 re-acquire it using the client credentials flow`,
|
|
6470
6475
|
tools: tools31
|
|
6471
6476
|
});
|
|
6472
6477
|
|
|
@@ -6590,7 +6595,7 @@ var requestToolName6 = `microsoft-teams-oauth_${requestTool14.name}`;
|
|
|
6590
6595
|
var msTeamsOauthSetup = new ConnectorSetup({
|
|
6591
6596
|
ja: `## Microsoft Teams \u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u624B\u9806
|
|
6592
6597
|
|
|
6593
|
-
\u4EE5\u4E0B\u306E\u624B\u9806\
|
|
6598
|
+
\u4EE5\u4E0B\u306E\u624B\u9806\u3092\u6B63\u78BA\u306B\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u624B\u9806\u306B\u8A18\u8F09\u306E\u306A\u3044\u8FFD\u52A0\u306EAPI\u30EA\u30AF\u30A8\u30B9\u30C8\u306F\u4E00\u5207\u884C\u308F\u306A\u3044\u3067\u304F\u3060\u3055\u3044\u3002
|
|
6594
6599
|
|
|
6595
6600
|
### \u624B\u9806
|
|
6596
6601
|
|
|
@@ -6602,18 +6607,19 @@ var msTeamsOauthSetup = new ConnectorSetup({
|
|
|
6602
6607
|
|
|
6603
6608
|
#### \u30B9\u30C6\u30C3\u30D72: \u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5B8C\u4E86
|
|
6604
6609
|
1. \`updateConnectionContext\` \u3092\u547C\u3073\u51FA\u3059:
|
|
6605
|
-
- \`user\`: Microsoft \u30E6\u30FC\u30B6\u30FC\u60C5\u5831
|
|
6610
|
+
- \`user\`: Microsoft \u30E6\u30FC\u30B6\u30FC\u60C5\u5831\uFF08displayName, mail \u306A\u3069\uFF09
|
|
6606
6611
|
- \`note\`: \u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5185\u5BB9\u306E\u7C21\u5358\u306A\u8AAC\u660E
|
|
6607
6612
|
|
|
6608
6613
|
### \u91CD\u8981\u306A\u5236\u7D04
|
|
6609
|
-
- **\
|
|
6614
|
+
- **\u4E0A\u8A182\u30B9\u30C6\u30C3\u30D7\u306E\u307F\u5B9F\u884C\u3059\u308B\u3053\u3068**\u3002Teams\u4E00\u89A7\u306E\u53D6\u5F97\u3001\u30C1\u30E3\u30F3\u30CD\u30EB\u4E00\u89A7\u306E\u53D6\u5F97\u3001\u30E1\u30C3\u30BB\u30FC\u30B8\u306E\u8AAD\u307F\u53D6\u308A\u306A\u3069\u3001\u624B\u9806\u306B\u8A18\u8F09\u306E\u306A\u3044API\u30EA\u30AF\u30A8\u30B9\u30C8\u306F\u4E00\u5207\u7981\u6B62
|
|
6615
|
+
- \u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u306F\u63A5\u7D9A\u78BA\u8A8D\u306E\u307F\u304C\u76EE\u7684\u3002\u30C7\u30FC\u30BF\u63A2\u7D22\u306F\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5B8C\u4E86\u5F8C\u306B\u30E6\u30FC\u30B6\u30FC\u304C\u884C\u3046
|
|
6610
6616
|
|
|
6611
6617
|
### \u5B9F\u884C\u65B9\u91DD
|
|
6612
6618
|
- \u30C4\u30FC\u30EB\u9593\u306F1\u6587\u3060\u3051\u66F8\u3044\u3066\u5373\u6B21\u306E\u30C4\u30FC\u30EB\u547C\u3073\u51FA\u3057
|
|
6613
6619
|
- \u4E0D\u8981\u306A\u8AAC\u660E\u306F\u7701\u7565\u3057\u3001\u52B9\u7387\u7684\u306B\u9032\u3081\u308B`,
|
|
6614
6620
|
en: `## Microsoft Teams Setup Instructions
|
|
6615
6621
|
|
|
6616
|
-
Follow these steps
|
|
6622
|
+
Follow these steps exactly. Do NOT make any API requests not listed in the steps below.
|
|
6617
6623
|
|
|
6618
6624
|
### Steps
|
|
6619
6625
|
|
|
@@ -6625,11 +6631,12 @@ Follow these steps to set up the Microsoft Teams connection.
|
|
|
6625
6631
|
|
|
6626
6632
|
#### Step 2: Complete Setup
|
|
6627
6633
|
1. Call \`updateConnectionContext\`:
|
|
6628
|
-
- \`user\`: Microsoft user info
|
|
6634
|
+
- \`user\`: Microsoft user info (displayName, mail, etc.)
|
|
6629
6635
|
- \`note\`: Brief description of the setup
|
|
6630
6636
|
|
|
6631
6637
|
### Important Constraints
|
|
6632
|
-
- **Do NOT
|
|
6638
|
+
- **Only execute the 2 steps above**. Do NOT fetch Teams list, channels, messages, or make any API requests not specified in the steps
|
|
6639
|
+
- Setup is only for connection verification. Data exploration is done by the user after setup is complete
|
|
6633
6640
|
|
|
6634
6641
|
### Execution Policy
|
|
6635
6642
|
- Write only 1 sentence between tool calls, then immediately call the next tool
|
package/dist/sdk.js
CHANGED