@inkeep/agents-work-apps 0.0.0-dev-20260204182014 → 0.0.0-dev-20260204210021
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/db/index.d.ts +1 -2
- package/dist/db/index.js +1 -2
- package/dist/db/runDbClient.d.ts +2 -2
- package/dist/env.d.ts +2 -24
- package/dist/env.js +1 -12
- package/dist/github/routes/setup.d.ts +2 -2
- package/dist/github/routes/tokenExchange.d.ts +2 -2
- package/package.json +2 -10
- package/dist/db/manageDbClient.d.ts +0 -7
- package/dist/db/manageDbClient.js +0 -16
- package/dist/slack/index.d.ts +0 -19
- package/dist/slack/index.js +0 -29
- package/dist/slack/middleware/permissions.d.ts +0 -16
- package/dist/slack/middleware/permissions.js +0 -49
- package/dist/slack/routes/events.d.ts +0 -10
- package/dist/slack/routes/events.js +0 -319
- package/dist/slack/routes/index.d.ts +0 -11
- package/dist/slack/routes/index.js +0 -64
- package/dist/slack/routes/internal.d.ts +0 -10
- package/dist/slack/routes/internal.js +0 -107
- package/dist/slack/routes/oauth.d.ts +0 -12
- package/dist/slack/routes/oauth.js +0 -218
- package/dist/slack/routes/resources.d.ts +0 -10
- package/dist/slack/routes/resources.js +0 -163
- package/dist/slack/routes/users.d.ts +0 -15
- package/dist/slack/routes/users.js +0 -430
- package/dist/slack/routes/workspaces.d.ts +0 -10
- package/dist/slack/routes/workspaces.js +0 -828
- package/dist/slack/routes.d.ts +0 -7
- package/dist/slack/routes.js +0 -12
- package/dist/slack/services/agent-resolution.d.ts +0 -49
- package/dist/slack/services/agent-resolution.js +0 -135
- package/dist/slack/services/api-client.d.ts +0 -161
- package/dist/slack/services/api-client.js +0 -248
- package/dist/slack/services/auth/index.d.ts +0 -61
- package/dist/slack/services/auth/index.js +0 -164
- package/dist/slack/services/blocks/index.d.ts +0 -60
- package/dist/slack/services/blocks/index.js +0 -143
- package/dist/slack/services/client.d.ts +0 -78
- package/dist/slack/services/client.js +0 -152
- package/dist/slack/services/commands/index.d.ts +0 -15
- package/dist/slack/services/commands/index.js +0 -556
- package/dist/slack/services/events/app-mention.d.ts +0 -41
- package/dist/slack/services/events/app-mention.js +0 -212
- package/dist/slack/services/events/block-actions.d.ts +0 -47
- package/dist/slack/services/events/block-actions.js +0 -287
- package/dist/slack/services/events/index.d.ts +0 -6
- package/dist/slack/services/events/index.js +0 -7
- package/dist/slack/services/events/modal-submission.d.ts +0 -12
- package/dist/slack/services/events/modal-submission.js +0 -279
- package/dist/slack/services/events/streaming.d.ts +0 -27
- package/dist/slack/services/events/streaming.js +0 -285
- package/dist/slack/services/events/utils.d.ts +0 -129
- package/dist/slack/services/events/utils.js +0 -315
- package/dist/slack/services/index.d.ts +0 -18
- package/dist/slack/services/index.js +0 -18
- package/dist/slack/services/modals.d.ts +0 -67
- package/dist/slack/services/modals.js +0 -203
- package/dist/slack/services/nango.d.ts +0 -82
- package/dist/slack/services/nango.js +0 -326
- package/dist/slack/services/security.d.ts +0 -35
- package/dist/slack/services/security.js +0 -65
- package/dist/slack/services/types.d.ts +0 -26
- package/dist/slack/services/types.js +0 -1
- package/dist/slack/services/workspace-tokens.d.ts +0 -37
- package/dist/slack/services/workspace-tokens.js +0 -39
- package/dist/slack/types.d.ts +0 -10
- package/dist/slack/types.js +0 -1
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { MessageAttachment } from "@slack/types";
|
|
2
|
-
|
|
3
|
-
//#region src/slack/services/types.d.ts
|
|
4
|
-
interface SlackCommandPayload {
|
|
5
|
-
command: string;
|
|
6
|
-
text: string;
|
|
7
|
-
userId: string;
|
|
8
|
-
userName: string;
|
|
9
|
-
teamId: string;
|
|
10
|
-
teamDomain: string;
|
|
11
|
-
enterpriseId?: string;
|
|
12
|
-
channelId: string;
|
|
13
|
-
channelName: string;
|
|
14
|
-
responseUrl: string;
|
|
15
|
-
triggerId: string;
|
|
16
|
-
}
|
|
17
|
-
interface SlackCommandResponse {
|
|
18
|
-
response_type?: 'ephemeral' | 'in_channel';
|
|
19
|
-
text?: string;
|
|
20
|
-
blocks?: unknown[];
|
|
21
|
-
attachments?: MessageAttachment[];
|
|
22
|
-
replace_original?: boolean;
|
|
23
|
-
delete_original?: boolean;
|
|
24
|
-
}
|
|
25
|
-
//#endregion
|
|
26
|
-
export { SlackCommandPayload, SlackCommandResponse };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
//#region src/slack/services/workspace-tokens.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* Workspace Token Service
|
|
4
|
-
*
|
|
5
|
-
* In-memory cache for Slack bot tokens during OAuth installation flow.
|
|
6
|
-
* Primary token storage is in Nango; this is a temporary fallback.
|
|
7
|
-
*
|
|
8
|
-
* Note: Tokens stored here do not persist across server restarts.
|
|
9
|
-
* Always prefer fetching tokens from Nango for production use.
|
|
10
|
-
*/
|
|
11
|
-
/**
|
|
12
|
-
* Get the cached bot token for a Slack team.
|
|
13
|
-
* Falls back to null if not cached (caller should fetch from Nango).
|
|
14
|
-
*/
|
|
15
|
-
declare function getBotTokenForTeam(teamId: string): string | null;
|
|
16
|
-
/**
|
|
17
|
-
* Cache a bot token for a Slack team (used during OAuth installation).
|
|
18
|
-
*/
|
|
19
|
-
declare function setBotTokenForTeam(teamId: string, data: {
|
|
20
|
-
botToken: string;
|
|
21
|
-
teamName: string;
|
|
22
|
-
installedAt: string;
|
|
23
|
-
}): void;
|
|
24
|
-
/**
|
|
25
|
-
* Remove a cached bot token for a Slack team.
|
|
26
|
-
*/
|
|
27
|
-
declare function clearBotTokenForTeam(teamId: string): boolean;
|
|
28
|
-
/**
|
|
29
|
-
* Get all cached workspace tokens (for debugging/monitoring).
|
|
30
|
-
*/
|
|
31
|
-
declare function getAllWorkspaceTokens(): Map<string, {
|
|
32
|
-
botToken: string;
|
|
33
|
-
teamName: string;
|
|
34
|
-
installedAt: string;
|
|
35
|
-
}>;
|
|
36
|
-
//#endregion
|
|
37
|
-
export { clearBotTokenForTeam, getAllWorkspaceTokens, getBotTokenForTeam, setBotTokenForTeam };
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
//#region src/slack/services/workspace-tokens.ts
|
|
2
|
-
/**
|
|
3
|
-
* Workspace Token Service
|
|
4
|
-
*
|
|
5
|
-
* In-memory cache for Slack bot tokens during OAuth installation flow.
|
|
6
|
-
* Primary token storage is in Nango; this is a temporary fallback.
|
|
7
|
-
*
|
|
8
|
-
* Note: Tokens stored here do not persist across server restarts.
|
|
9
|
-
* Always prefer fetching tokens from Nango for production use.
|
|
10
|
-
*/
|
|
11
|
-
const workspaceBotTokens = /* @__PURE__ */ new Map();
|
|
12
|
-
/**
|
|
13
|
-
* Get the cached bot token for a Slack team.
|
|
14
|
-
* Falls back to null if not cached (caller should fetch from Nango).
|
|
15
|
-
*/
|
|
16
|
-
function getBotTokenForTeam(teamId) {
|
|
17
|
-
return workspaceBotTokens.get(teamId)?.botToken || null;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Cache a bot token for a Slack team (used during OAuth installation).
|
|
21
|
-
*/
|
|
22
|
-
function setBotTokenForTeam(teamId, data) {
|
|
23
|
-
workspaceBotTokens.set(teamId, data);
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Remove a cached bot token for a Slack team.
|
|
27
|
-
*/
|
|
28
|
-
function clearBotTokenForTeam(teamId) {
|
|
29
|
-
return workspaceBotTokens.delete(teamId);
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Get all cached workspace tokens (for debugging/monitoring).
|
|
33
|
-
*/
|
|
34
|
-
function getAllWorkspaceTokens() {
|
|
35
|
-
return workspaceBotTokens;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
//#endregion
|
|
39
|
-
export { clearBotTokenForTeam, getAllWorkspaceTokens, getBotTokenForTeam, setBotTokenForTeam };
|
package/dist/slack/types.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
//#region src/slack/types.d.ts
|
|
2
|
-
interface WorkAppsVariables {
|
|
3
|
-
tenantId?: string;
|
|
4
|
-
userId?: string;
|
|
5
|
-
userEmail?: string;
|
|
6
|
-
tenantRole?: string;
|
|
7
|
-
}
|
|
8
|
-
type ManageAppVariables = WorkAppsVariables;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { ManageAppVariables, WorkAppsVariables };
|
package/dist/slack/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|