@inkeep/agents-work-apps 0.0.0-dev-20260204182014 → 0.0.0-dev-20260204185956

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.
Files changed (72) hide show
  1. package/dist/db/index.d.ts +1 -2
  2. package/dist/db/index.js +1 -2
  3. package/dist/db/runDbClient.d.ts +2 -2
  4. package/dist/env.d.ts +0 -22
  5. package/dist/env.js +1 -12
  6. package/dist/github/index.d.ts +3 -3
  7. package/dist/github/mcp/index.d.ts +2 -2
  8. package/dist/github/mcp/schemas.d.ts +1 -1
  9. package/dist/github/routes/setup.d.ts +2 -2
  10. package/dist/github/routes/tokenExchange.d.ts +2 -2
  11. package/dist/github/routes/webhooks.d.ts +2 -2
  12. package/package.json +2 -10
  13. package/dist/db/manageDbClient.d.ts +0 -7
  14. package/dist/db/manageDbClient.js +0 -16
  15. package/dist/slack/index.d.ts +0 -19
  16. package/dist/slack/index.js +0 -29
  17. package/dist/slack/middleware/permissions.d.ts +0 -16
  18. package/dist/slack/middleware/permissions.js +0 -49
  19. package/dist/slack/routes/events.d.ts +0 -10
  20. package/dist/slack/routes/events.js +0 -319
  21. package/dist/slack/routes/index.d.ts +0 -11
  22. package/dist/slack/routes/index.js +0 -64
  23. package/dist/slack/routes/internal.d.ts +0 -10
  24. package/dist/slack/routes/internal.js +0 -107
  25. package/dist/slack/routes/oauth.d.ts +0 -12
  26. package/dist/slack/routes/oauth.js +0 -218
  27. package/dist/slack/routes/resources.d.ts +0 -10
  28. package/dist/slack/routes/resources.js +0 -163
  29. package/dist/slack/routes/users.d.ts +0 -15
  30. package/dist/slack/routes/users.js +0 -430
  31. package/dist/slack/routes/workspaces.d.ts +0 -10
  32. package/dist/slack/routes/workspaces.js +0 -828
  33. package/dist/slack/routes.d.ts +0 -7
  34. package/dist/slack/routes.js +0 -12
  35. package/dist/slack/services/agent-resolution.d.ts +0 -49
  36. package/dist/slack/services/agent-resolution.js +0 -135
  37. package/dist/slack/services/api-client.d.ts +0 -161
  38. package/dist/slack/services/api-client.js +0 -248
  39. package/dist/slack/services/auth/index.d.ts +0 -61
  40. package/dist/slack/services/auth/index.js +0 -164
  41. package/dist/slack/services/blocks/index.d.ts +0 -60
  42. package/dist/slack/services/blocks/index.js +0 -143
  43. package/dist/slack/services/client.d.ts +0 -78
  44. package/dist/slack/services/client.js +0 -152
  45. package/dist/slack/services/commands/index.d.ts +0 -15
  46. package/dist/slack/services/commands/index.js +0 -556
  47. package/dist/slack/services/events/app-mention.d.ts +0 -41
  48. package/dist/slack/services/events/app-mention.js +0 -212
  49. package/dist/slack/services/events/block-actions.d.ts +0 -47
  50. package/dist/slack/services/events/block-actions.js +0 -287
  51. package/dist/slack/services/events/index.d.ts +0 -6
  52. package/dist/slack/services/events/index.js +0 -7
  53. package/dist/slack/services/events/modal-submission.d.ts +0 -12
  54. package/dist/slack/services/events/modal-submission.js +0 -279
  55. package/dist/slack/services/events/streaming.d.ts +0 -27
  56. package/dist/slack/services/events/streaming.js +0 -285
  57. package/dist/slack/services/events/utils.d.ts +0 -129
  58. package/dist/slack/services/events/utils.js +0 -315
  59. package/dist/slack/services/index.d.ts +0 -18
  60. package/dist/slack/services/index.js +0 -18
  61. package/dist/slack/services/modals.d.ts +0 -67
  62. package/dist/slack/services/modals.js +0 -203
  63. package/dist/slack/services/nango.d.ts +0 -82
  64. package/dist/slack/services/nango.js +0 -326
  65. package/dist/slack/services/security.d.ts +0 -35
  66. package/dist/slack/services/security.js +0 -65
  67. package/dist/slack/services/types.d.ts +0 -26
  68. package/dist/slack/services/types.js +0 -1
  69. package/dist/slack/services/workspace-tokens.d.ts +0 -37
  70. package/dist/slack/services/workspace-tokens.js +0 -39
  71. package/dist/slack/types.d.ts +0 -10
  72. 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 };
@@ -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 };
@@ -1 +0,0 @@
1
- export { };