@inixiative/integrations 0.1.0 → 0.2.1
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 +3 -3
- package/package.json +1 -1
- package/src/{declaredOperations.ts → catalog/declaredOperations.ts} +1 -1
- package/src/{familyProducts.ts → catalog/familyProducts.ts} +2 -2
- package/src/{findProvider.ts → catalog/findProvider.ts} +2 -2
- package/src/{integrationEventResource.ts → catalog/integrationEventResource.ts} +1 -1
- package/src/{isAccountSuppliedByHost.ts → catalog/isAccountSuppliedByHost.ts} +1 -1
- package/src/{isFamilyManaged.ts → catalog/isFamilyManaged.ts} +1 -1
- package/src/{operationLeaves.ts → catalog/operationLeaves.ts} +1 -1
- package/src/{providerFamily.ts → catalog/providerFamily.ts} +1 -1
- package/src/{providerHasEvents.ts → catalog/providerHasEvents.ts} +1 -1
- package/src/{providerModel.ts → catalog/providerModel.ts} +1 -1
- package/src/catalog/providers.ts +54 -0
- package/src/credentials/credentialClient.ts +4 -0
- package/src/{exchangeOauthCode.ts → credentials/exchangeOauthCode.ts} +5 -5
- package/src/{fetchRenewalResponse.ts → credentials/fetchRenewalResponse.ts} +2 -2
- package/src/{mintProviderCredential.ts → credentials/mintProviderCredential.ts} +5 -5
- package/src/{refreshProviderCredential.ts → credentials/refreshProviderCredential.ts} +4 -4
- package/src/{subscriptionAccountId.ts → credentials/subscriptionAccountId.ts} +2 -2
- package/src/{validateCredentialSecret.ts → credentials/validateCredentialSecret.ts} +2 -2
- package/src/index.ts +1 -1
- package/src/{buildProviderRequest.ts → operations/buildProviderRequest.ts} +8 -8
- package/src/{executeProvider.ts → operations/executeProvider.ts} +5 -5
- package/src/{findOperationHandler.ts → operations/findOperationHandler.ts} +1 -1
- package/src/{operationHandler.ts → operations/operationHandler.ts} +1 -1
- package/src/operations/operationHandlers.ts +41 -0
- package/src/{operationRequestInput.ts → operations/operationRequestInput.ts} +1 -1
- package/src/providers/archive/archiveProvider.ts +1 -1
- package/src/providers/chorus/chorusProvider.ts +2 -1
- package/src/providers/confluence/confluenceOperationHandler.ts +1 -1
- package/src/providers/discord/discordOperationHandler.ts +1 -1
- package/src/providers/drive/driveOperationHandler.ts +1 -1
- package/src/providers/foundry/foundryProvider.ts +1 -1
- package/src/providers/github/auth/githubUserAuthorizeUrl.ts +1 -1
- package/src/providers/github/events/normalizeGithubEvent.ts +2 -2
- package/src/providers/github/events/normalizeGithubNotification.ts +2 -2
- package/src/providers/github/models/account/githubAccount.ts +2 -2
- package/src/providers/github/models/repository/githubOperationHandler.ts +1 -1
- package/src/providers/github/models/repository/githubRepository.ts +2 -2
- package/src/providers/gmail/gmailOperationHandler.ts +1 -1
- package/src/providers/google/auth/buildGoogleAuthorizationUrl.ts +1 -1
- package/src/providers/jira/jiraOperationHandler.ts +1 -1
- package/src/providers/linear/events/normalizeLinearEvent.ts +2 -2
- package/src/providers/linear/linearProvider.ts +4 -17
- package/src/providers/linear/models/issue/linearIssue.ts +11 -0
- package/src/providers/linear/models/issue/linearOperationHandler.ts +1 -1
- package/src/providers/linear/models/team/linearTeam.ts +18 -0
- package/src/providers/notion/notionOperationHandler.ts +1 -1
- package/src/providers/slack/events/normalizeSlackEvent.ts +2 -2
- package/src/providers/slack/models/account/slackAccount.ts +13 -0
- package/src/providers/slack/models/channel/slackChannel.ts +31 -0
- package/src/providers/slack/models/channel/slackOperationHandler.ts +1 -1
- package/src/providers/slack/slackProvider.ts +4 -39
- package/src/providers/teams/teamsOperationHandler.ts +1 -1
- package/src/{integrationConfigurationSchemas.ts → resources/integrationConfigurationSchemas.ts} +1 -1
- package/src/{perProvider.ts → resources/perProvider.ts} +1 -1
- package/src/{resourceExternalIdSchema.ts → resources/resourceExternalIdSchema.ts} +1 -1
- package/src/{resourceExternalIdSchemas.ts → resources/resourceExternalIdSchemas.ts} +1 -1
- package/src/{resourceMetadataSchema.ts → resources/resourceMetadataSchema.ts} +1 -1
- package/src/{resourceMetadataSchemas.ts → resources/resourceMetadataSchemas.ts} +1 -1
- package/src/catalog.ts +0 -54
- package/src/credentialClient.ts +0 -4
- package/src/operationHandlers.ts +0 -41
- /package/src/{eventLeaves.ts → catalog/eventLeaves.ts} +0 -0
- /package/src/{integrationKeyedKinds.ts → catalog/integrationKeyedKinds.ts} +0 -0
- /package/src/{isEventLeaf.ts → catalog/isEventLeaf.ts} +0 -0
- /package/src/{isUncalledLeaf.ts → catalog/isUncalledLeaf.ts} +0 -0
- /package/src/{providerEvent.ts → catalog/providerEvent.ts} +0 -0
- /package/src/{providerEventSchema.ts → catalog/providerEventSchema.ts} +0 -0
- /package/src/{codexClientId.ts → credentials/codexClientId.ts} +0 -0
- /package/src/{codexTokenUrl.ts → credentials/codexTokenUrl.ts} +0 -0
- /package/src/{consentReason.ts → credentials/consentReason.ts} +0 -0
- /package/src/{consentReasonSchema.ts → credentials/consentReasonSchema.ts} +0 -0
- /package/src/{providerExchangeTimeoutMs.ts → credentials/providerExchangeTimeoutMs.ts} +0 -0
- /package/src/{renewalRequest.ts → credentials/renewalRequest.ts} +0 -0
- /package/src/{providerRequestSpec.ts → operations/providerRequestSpec.ts} +0 -0
- /package/src/{archiveCandidate.ts → providers/archive/archiveCandidate.ts} +0 -0
- /package/src/{archiveConfigurationSchema.ts → providers/archive/archiveConfigurationSchema.ts} +0 -0
- /package/src/{isLocalArchive.ts → providers/archive/isLocalArchive.ts} +0 -0
- /package/src/{localArchiveConfigurationSchema.ts → providers/archive/localArchiveConfigurationSchema.ts} +0 -0
- /package/src/{localArchiveSourceId.ts → providers/archive/localArchiveSourceId.ts} +0 -0
package/README.md
CHANGED
|
@@ -15,8 +15,8 @@ bun add @inixiative/integrations zod
|
|
|
15
15
|
Every file under `src/` holds one export and is importable by its path.
|
|
16
16
|
|
|
17
17
|
```ts
|
|
18
|
-
import { findProvider } from '@inixiative/integrations/findProvider';
|
|
19
|
-
import { operationLeaves } from '@inixiative/integrations/operationLeaves';
|
|
18
|
+
import { findProvider } from '@inixiative/integrations/catalog/findProvider';
|
|
19
|
+
import { operationLeaves } from '@inixiative/integrations/catalog/operationLeaves';
|
|
20
20
|
|
|
21
21
|
findProvider('slack')?.operations;
|
|
22
22
|
operationLeaves('githubOrganization', 'repository');
|
|
@@ -24,7 +24,7 @@ operationLeaves('githubOrganization', 'repository');
|
|
|
24
24
|
|
|
25
25
|
## Shape
|
|
26
26
|
|
|
27
|
-
Each provider has a folder under `src/providers/`, with `auth/`, `events/` and `models/<model>/` inside it where it has that code, and a `<provider>Provider.ts` definition that `src/catalog.ts` lists.
|
|
27
|
+
Each provider has a folder under `src/providers/`, with `auth/`, `events/` and `models/<model>/` inside it where it has that code, and a `<provider>Provider.ts` definition that `src/catalog/providers.ts` lists.
|
|
28
28
|
|
|
29
29
|
A call that reaches a provider takes the client first, then the request, then anything that is not part of the request:
|
|
30
30
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inixiative/integrations",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "The provider catalog behind Kingdom integrations: each provider's operations, events, resource kinds and scopes, with the request, webhook and credential code that reaches it.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import type { Provider } from '../contracts';
|
|
2
|
+
import { providers } from './providers';
|
|
3
3
|
|
|
4
4
|
export const familyProducts = (family: Provider) =>
|
|
5
5
|
providers.filter((definition) => definition.family === family);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import type { Provider } from '../contracts';
|
|
2
|
+
import { providers } from './providers';
|
|
3
3
|
|
|
4
4
|
export const findProvider = (value: Provider | null | undefined) =>
|
|
5
5
|
providers.find((provider) => provider.key === value);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { eventOperationKey, type IntegrationEvent } from '@inixiative/signet/contracts';
|
|
2
|
-
import type { Provider } from '
|
|
2
|
+
import type { Provider } from '../contracts';
|
|
3
3
|
import { findProvider } from './findProvider';
|
|
4
4
|
import { isIntegrationKeyedKind } from './integrationKeyedKinds';
|
|
5
5
|
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { ProviderDefinition } from '../contracts';
|
|
2
|
+
import { anthropicProvider } from '../providers/anthropic/anthropicProvider';
|
|
3
|
+
import { archiveProvider } from '../providers/archive/archiveProvider';
|
|
4
|
+
import { chorusProvider } from '../providers/chorus/chorusProvider';
|
|
5
|
+
import { claudeProvider } from '../providers/claude/claudeProvider';
|
|
6
|
+
import { codexProvider } from '../providers/codex/codexProvider';
|
|
7
|
+
import { confluenceProvider } from '../providers/confluence/confluenceProvider';
|
|
8
|
+
import { discordProvider } from '../providers/discord/discordProvider';
|
|
9
|
+
import { driveProvider } from '../providers/drive/driveProvider';
|
|
10
|
+
import { foundryProvider } from '../providers/foundry/foundryProvider';
|
|
11
|
+
import { geminiApiProvider } from '../providers/geminiApi/geminiApiProvider';
|
|
12
|
+
import { githubOrganizationProvider } from '../providers/github/githubOrganizationProvider';
|
|
13
|
+
import { githubProvider } from '../providers/github/githubProvider';
|
|
14
|
+
import { githubUserProvider } from '../providers/github/githubUserProvider';
|
|
15
|
+
import { gmailProvider } from '../providers/gmail/gmailProvider';
|
|
16
|
+
import { googleProvider } from '../providers/google/googleProvider';
|
|
17
|
+
import { jiraProvider } from '../providers/jira/jiraProvider';
|
|
18
|
+
import { linearProvider } from '../providers/linear/linearProvider';
|
|
19
|
+
import { museProvider } from '../providers/muse/museProvider';
|
|
20
|
+
import { notionProvider } from '../providers/notion/notionProvider';
|
|
21
|
+
import { openaiProvider } from '../providers/openai/openaiProvider';
|
|
22
|
+
import { oracleProvider } from '../providers/oracle/oracleProvider';
|
|
23
|
+
import { railwayProvider } from '../providers/railway/railwayProvider';
|
|
24
|
+
import { renderProvider } from '../providers/render/renderProvider';
|
|
25
|
+
import { slackProvider } from '../providers/slack/slackProvider';
|
|
26
|
+
import { teamsProvider } from '../providers/teams/teamsProvider';
|
|
27
|
+
|
|
28
|
+
export const providers: ProviderDefinition[] = [
|
|
29
|
+
slackProvider,
|
|
30
|
+
discordProvider,
|
|
31
|
+
teamsProvider,
|
|
32
|
+
linearProvider,
|
|
33
|
+
notionProvider,
|
|
34
|
+
jiraProvider,
|
|
35
|
+
googleProvider,
|
|
36
|
+
gmailProvider,
|
|
37
|
+
driveProvider,
|
|
38
|
+
confluenceProvider,
|
|
39
|
+
anthropicProvider,
|
|
40
|
+
openaiProvider,
|
|
41
|
+
geminiApiProvider,
|
|
42
|
+
archiveProvider,
|
|
43
|
+
foundryProvider,
|
|
44
|
+
oracleProvider,
|
|
45
|
+
chorusProvider,
|
|
46
|
+
githubProvider,
|
|
47
|
+
githubOrganizationProvider,
|
|
48
|
+
githubUserProvider,
|
|
49
|
+
railwayProvider,
|
|
50
|
+
renderProvider,
|
|
51
|
+
claudeProvider,
|
|
52
|
+
codexProvider,
|
|
53
|
+
museProvider,
|
|
54
|
+
];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { ProviderError } from '
|
|
5
|
-
import type { ProviderSend } from '
|
|
6
|
-
import { readProviderJson } from '
|
|
2
|
+
import { findProvider } from '../catalog/findProvider';
|
|
3
|
+
import type { OAuthClient, Provider } from '../contracts';
|
|
4
|
+
import { ProviderError } from '../utils/providerError';
|
|
5
|
+
import type { ProviderSend } from '../utils/providerSend';
|
|
6
|
+
import { readProviderJson } from '../utils/readProviderJson';
|
|
7
7
|
|
|
8
8
|
const tokenResponseSchema = z.object({
|
|
9
9
|
access_token: z.string().min(1).max(16000),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { ProviderError } from '../utils/providerError';
|
|
3
|
+
import { readProviderJson } from '../utils/readProviderJson';
|
|
2
4
|
import { PROVIDER_EXCHANGE_TIMEOUT_MS } from './providerExchangeTimeoutMs';
|
|
3
5
|
import type { RenewalRequest } from './renewalRequest';
|
|
4
|
-
import { ProviderError } from './utils/providerError';
|
|
5
|
-
import { readProviderJson } from './utils/readProviderJson';
|
|
6
6
|
|
|
7
7
|
export const fetchRenewalResponse = async (
|
|
8
8
|
send: (request: Request) => Promise<Response>,
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
credentialSecretSchema,
|
|
5
5
|
type OAuthClient,
|
|
6
6
|
type SigningClient,
|
|
7
|
-
} from '
|
|
7
|
+
} from '../contracts';
|
|
8
|
+
import { githubAppJwt } from '../providers/github/auth/githubAppJwt';
|
|
9
|
+
import { githubPermissionScopes } from '../providers/github/auth/githubPermissionScopes';
|
|
10
|
+
import { githubRequestHeaders } from '../providers/github/githubRequestHeaders';
|
|
11
|
+
import { ProviderError } from '../utils/providerError';
|
|
8
12
|
import type { CredentialClient } from './credentialClient';
|
|
9
13
|
import { fetchRenewalResponse } from './fetchRenewalResponse';
|
|
10
|
-
import { githubAppJwt } from './providers/github/auth/githubAppJwt';
|
|
11
|
-
import { githubPermissionScopes } from './providers/github/auth/githubPermissionScopes';
|
|
12
|
-
import { githubRequestHeaders } from './providers/github/githubRequestHeaders';
|
|
13
14
|
import type { RenewalRequest } from './renewalRequest';
|
|
14
|
-
import { ProviderError } from './utils/providerError';
|
|
15
15
|
|
|
16
16
|
type ClientCredentials = NonNullable<CredentialSecret['clientCredentials']>;
|
|
17
17
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Buffer } from 'node:buffer';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { providers } from '
|
|
3
|
+
import { providers } from '../catalog/providers';
|
|
4
|
+
import { type CredentialSecret, credentialSecretSchema, type OAuthClient } from '../contracts';
|
|
5
|
+
import { jwtClaims } from '../utils/jwtClaims';
|
|
6
|
+
import { ProviderError } from '../utils/providerError';
|
|
4
7
|
import { CODEX_TOKEN_URL } from './codexTokenUrl';
|
|
5
|
-
import { type CredentialSecret, credentialSecretSchema, type OAuthClient } from './contracts';
|
|
6
8
|
import type { CredentialClient } from './credentialClient';
|
|
7
9
|
import { fetchRenewalResponse } from './fetchRenewalResponse';
|
|
8
10
|
import { mintProviderCredential } from './mintProviderCredential';
|
|
9
11
|
import type { RenewalRequest } from './renewalRequest';
|
|
10
|
-
import { jwtClaims } from './utils/jwtClaims';
|
|
11
|
-
import { ProviderError } from './utils/providerError';
|
|
12
12
|
|
|
13
13
|
const secondsUntilJwtExpiry = (token: string) => {
|
|
14
14
|
const exp = z.number().int().positive().safeParse(jwtClaims(token)?.exp);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { SubscriptionRuntime } from '
|
|
2
|
-
import { jwtClaims } from '
|
|
1
|
+
import type { SubscriptionRuntime } from '../contracts';
|
|
2
|
+
import { jwtClaims } from '../utils/jwtClaims';
|
|
3
3
|
|
|
4
4
|
export const subscriptionAccountId = (runtime: SubscriptionRuntime, accessToken: string) => {
|
|
5
5
|
if (runtime !== 'codex') return null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { credentialSecretSchema } from '
|
|
2
|
-
import { ProviderError } from '
|
|
1
|
+
import { credentialSecretSchema } from '../contracts';
|
|
2
|
+
import { ProviderError } from '../utils/providerError';
|
|
3
3
|
|
|
4
4
|
export const validateCredentialSecret = (method: string, secret: unknown, provider: string) => {
|
|
5
5
|
const parsed = credentialSecretSchema.parse(secret);
|
package/src/index.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
2
|
+
import { isUncalledLeaf } from '../catalog/isUncalledLeaf';
|
|
3
|
+
import { providers } from '../catalog/providers';
|
|
4
|
+
import type { ProviderContext } from '../contracts';
|
|
5
|
+
import { credentialSecretSchema } from '../contracts';
|
|
6
|
+
import { integrationConfigurationSchemas } from '../resources/integrationConfigurationSchemas';
|
|
7
|
+
import { resourceExternalIdSchemas } from '../resources/resourceExternalIdSchemas';
|
|
8
|
+
import { resourceMetadataSchemas } from '../resources/resourceMetadataSchemas';
|
|
9
|
+
import { ProviderError } from '../utils/providerError';
|
|
5
10
|
import { findOperationHandler } from './findOperationHandler';
|
|
6
|
-
import { integrationConfigurationSchemas } from './integrationConfigurationSchemas';
|
|
7
|
-
import { isUncalledLeaf } from './isUncalledLeaf';
|
|
8
|
-
import { resourceExternalIdSchemas } from './resourceExternalIdSchemas';
|
|
9
|
-
import { resourceMetadataSchemas } from './resourceMetadataSchemas';
|
|
10
|
-
import { ProviderError } from './utils/providerError';
|
|
11
11
|
|
|
12
12
|
export const buildProviderRequest = (
|
|
13
13
|
context: ProviderContext,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import type { ProviderContext } from '../contracts';
|
|
2
|
+
import { fetchGmailMessages } from '../providers/gmail/fetchGmailMessages';
|
|
3
|
+
import { ProviderError } from '../utils/providerError';
|
|
4
|
+
import type { ProviderSend } from '../utils/providerSend';
|
|
5
|
+
import { requestProviderJson } from '../utils/requestProviderJson';
|
|
1
6
|
import { buildProviderRequest } from './buildProviderRequest';
|
|
2
|
-
import type { ProviderContext } from './contracts';
|
|
3
7
|
import { findOperationHandler } from './findOperationHandler';
|
|
4
|
-
import { fetchGmailMessages } from './providers/gmail/fetchGmailMessages';
|
|
5
|
-
import { ProviderError } from './utils/providerError';
|
|
6
|
-
import type { ProviderSend } from './utils/providerSend';
|
|
7
|
-
import { requestProviderJson } from './utils/requestProviderJson';
|
|
8
8
|
|
|
9
9
|
export const executeProvider = async (
|
|
10
10
|
{ send = fetch }: { send?: ProviderSend },
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { Provider } from '../contracts';
|
|
2
|
+
import { confluenceOperationHandler } from '../providers/confluence/confluenceOperationHandler';
|
|
3
|
+
import { discordOperationHandler } from '../providers/discord/discordOperationHandler';
|
|
4
|
+
import { driveOperationHandler } from '../providers/drive/driveOperationHandler';
|
|
5
|
+
import { githubOperationHandler } from '../providers/github/models/repository/githubOperationHandler';
|
|
6
|
+
import { gmailOperationHandler } from '../providers/gmail/gmailOperationHandler';
|
|
7
|
+
import { jiraOperationHandler } from '../providers/jira/jiraOperationHandler';
|
|
8
|
+
import { linearOperationHandler } from '../providers/linear/models/issue/linearOperationHandler';
|
|
9
|
+
import { notionOperationHandler } from '../providers/notion/notionOperationHandler';
|
|
10
|
+
import { slackOperationHandler } from '../providers/slack/models/channel/slackOperationHandler';
|
|
11
|
+
import { teamsOperationHandler } from '../providers/teams/teamsOperationHandler';
|
|
12
|
+
import type { OperationHandler } from './operationHandler';
|
|
13
|
+
|
|
14
|
+
// why: null marks a provider reached outside the generic HTTP path (own client, Signet, family, or admitted elsewhere).
|
|
15
|
+
export const operationHandlers: Record<Provider, OperationHandler | null> = {
|
|
16
|
+
slack: slackOperationHandler,
|
|
17
|
+
discord: discordOperationHandler,
|
|
18
|
+
teams: teamsOperationHandler,
|
|
19
|
+
linear: linearOperationHandler,
|
|
20
|
+
notion: notionOperationHandler,
|
|
21
|
+
jira: jiraOperationHandler,
|
|
22
|
+
drive: driveOperationHandler,
|
|
23
|
+
confluence: confluenceOperationHandler,
|
|
24
|
+
github: null,
|
|
25
|
+
githubOrganization: githubOperationHandler,
|
|
26
|
+
githubUser: githubOperationHandler,
|
|
27
|
+
google: null,
|
|
28
|
+
anthropic: null,
|
|
29
|
+
openai: null,
|
|
30
|
+
geminiApi: null,
|
|
31
|
+
archive: null,
|
|
32
|
+
gmail: gmailOperationHandler,
|
|
33
|
+
foundry: null,
|
|
34
|
+
oracle: null,
|
|
35
|
+
chorus: null,
|
|
36
|
+
railway: null,
|
|
37
|
+
render: null,
|
|
38
|
+
claude: null,
|
|
39
|
+
codex: null,
|
|
40
|
+
muse: null,
|
|
41
|
+
};
|
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
archiveOperationNames,
|
|
4
4
|
archiveOperationSchema,
|
|
5
5
|
} from '@inixiative/signet/contracts';
|
|
6
|
+
import { declaredOperations } from '../../catalog/declaredOperations';
|
|
6
7
|
import type { ProviderDefinition } from '../../contracts';
|
|
7
|
-
import { declaredOperations } from '../../declaredOperations';
|
|
8
8
|
|
|
9
9
|
export const archiveProvider: ProviderDefinition = {
|
|
10
10
|
key: 'archive',
|
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
chorusOperationSchema,
|
|
4
4
|
chorusResourceKind,
|
|
5
5
|
} from '@inixiative/signet/contracts';
|
|
6
|
+
import { declaredOperations } from '../../catalog/declaredOperations';
|
|
6
7
|
import type { ProviderDefinition } from '../../contracts';
|
|
7
|
-
import { declaredOperations } from '../../declaredOperations';
|
|
8
8
|
|
|
9
9
|
export const chorusProvider: ProviderDefinition = {
|
|
10
10
|
key: 'chorus',
|
|
@@ -13,6 +13,7 @@ export const chorusProvider: ProviderDefinition = {
|
|
|
13
13
|
authMethods: [],
|
|
14
14
|
inbound: true,
|
|
15
15
|
delivery: 'installationSocket',
|
|
16
|
+
holderHandleKinds: [chorusResourceKind],
|
|
16
17
|
operations: declaredOperations(
|
|
17
18
|
chorusOperationNames,
|
|
18
19
|
chorusResourceKind,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import type { OperationHandler } from '../../operationHandler';
|
|
2
|
+
import type { OperationHandler } from '../../operations/operationHandler';
|
|
3
3
|
import { objectSchema } from '../../utils/objectSchema';
|
|
4
4
|
import { select } from '../../utils/select';
|
|
5
5
|
|
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
threadOperationNames,
|
|
6
6
|
threadOperationSchema,
|
|
7
7
|
} from '@inixiative/signet/contracts';
|
|
8
|
+
import { declaredOperations } from '../../catalog/declaredOperations';
|
|
8
9
|
import type { ProviderDefinition } from '../../contracts';
|
|
9
|
-
import { declaredOperations } from '../../declaredOperations';
|
|
10
10
|
|
|
11
11
|
export const foundryProvider: ProviderDefinition = {
|
|
12
12
|
key: 'foundry',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { findProvider } from '../../../catalog/findProvider';
|
|
2
3
|
import type { OAuthClient } from '../../../contracts';
|
|
3
|
-
import { findProvider } from '../../../findProvider';
|
|
4
4
|
|
|
5
5
|
export const githubUserAuthorizeUrl = (app: Pick<OAuthClient, 'clientId'>, state: string) => {
|
|
6
6
|
const url = new URL(z.url().parse(findProvider('github')?.oauth?.authorizeUrl));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IntegrationEvent } from '@inixiative/signet/contracts';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import type { ProviderEvent } from '../../../providerEvent';
|
|
4
|
-
import { providerEventSchema } from '../../../providerEventSchema';
|
|
3
|
+
import type { ProviderEvent } from '../../../catalog/providerEvent';
|
|
4
|
+
import { providerEventSchema } from '../../../catalog/providerEventSchema';
|
|
5
5
|
import { readGithubRepositoryName } from '../models/repository/readGithubRepositoryName';
|
|
6
6
|
|
|
7
7
|
const excerptLength = 500;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IntegrationEvent } from '@inixiative/signet/contracts';
|
|
2
|
-
import type { ProviderEvent } from '../../../providerEvent';
|
|
3
|
-
import { providerEventSchema } from '../../../providerEventSchema';
|
|
2
|
+
import type { ProviderEvent } from '../../../catalog/providerEvent';
|
|
3
|
+
import { providerEventSchema } from '../../../catalog/providerEventSchema';
|
|
4
4
|
import { readGithubRepositoryName } from '../models/repository/readGithubRepositoryName';
|
|
5
5
|
import type { GithubNotification } from './githubNotification';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { accountResourceKind } from '@inixiative/signet/contracts';
|
|
2
|
-
import { declaredOperations } from '../../../../declaredOperations';
|
|
3
|
-
import type { ProviderModel } from '../../../../providerModel';
|
|
2
|
+
import { declaredOperations } from '../../../../catalog/declaredOperations';
|
|
3
|
+
import type { ProviderModel } from '../../../../catalog/providerModel';
|
|
4
4
|
|
|
5
5
|
export const githubAccount = {
|
|
6
6
|
kind: accountResourceKind,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { githubInputSchemas, githubOperationSchema } from '@inixiative/signet/contracts';
|
|
2
|
-
import type { OperationHandler } from '../../../../operationHandler';
|
|
2
|
+
import type { OperationHandler } from '../../../../operations/operationHandler';
|
|
3
3
|
import { objectSchema } from '../../../../utils/objectSchema';
|
|
4
4
|
import { githubRequestHeaders } from '../../githubRequestHeaders';
|
|
5
5
|
import { githubRepositoryMetadataSchema } from './githubRepositoryMetadataSchema';
|
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
githubOperationSchema,
|
|
4
4
|
repositoryResourceKind,
|
|
5
5
|
} from '@inixiative/signet/contracts';
|
|
6
|
-
import { declaredOperations } from '../../../../declaredOperations';
|
|
7
|
-
import type { ProviderModel } from '../../../../providerModel';
|
|
6
|
+
import { declaredOperations } from '../../../../catalog/declaredOperations';
|
|
7
|
+
import type { ProviderModel } from '../../../../catalog/providerModel';
|
|
8
8
|
import { githubEventRepositoryId } from '../../events/githubEventRepositoryId';
|
|
9
9
|
import { githubRepositoryIdSchema } from './githubRepositoryIdSchema';
|
|
10
10
|
import { githubRepositoryMetadataSchema } from './githubRepositoryMetadataSchema';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { OperationHandler } from '../../operationHandler';
|
|
1
|
+
import type { OperationHandler } from '../../operations/operationHandler';
|
|
2
2
|
|
|
3
3
|
// why: Gmail reads its own response (a label listing, then a fetch per message), so parse passes it through.
|
|
4
4
|
export const gmailOperationHandler: OperationHandler = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { findProvider } from '../../../catalog/findProvider';
|
|
2
3
|
import type { Provider } from '../../../contracts';
|
|
3
|
-
import { findProvider } from '../../../findProvider';
|
|
4
4
|
|
|
5
5
|
export const buildGoogleAuthorizationUrl = (input: {
|
|
6
6
|
clientId: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IntegrationEvent } from '@inixiative/signet/contracts';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import type { ProviderEvent } from '../../../providerEvent';
|
|
4
|
-
import { providerEventSchema } from '../../../providerEventSchema';
|
|
3
|
+
import type { ProviderEvent } from '../../../catalog/providerEvent';
|
|
4
|
+
import { providerEventSchema } from '../../../catalog/providerEventSchema';
|
|
5
5
|
import { linearUserSchema } from './linearUserSchema';
|
|
6
6
|
import type { LinearWebhookPayload } from './linearWebhookPayload';
|
|
7
7
|
|
|
@@ -1,25 +1,12 @@
|
|
|
1
1
|
import type { ProviderDefinition } from '../../contracts';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
const linearTeamEvents = {
|
|
5
|
-
'events.Issue.create': 'Receive issues created in this team',
|
|
6
|
-
'events.Issue.update': 'Receive issue changes in this team',
|
|
7
|
-
'events.Comment.create': "Receive comments on this team's issues",
|
|
8
|
-
} as const;
|
|
2
|
+
import { linearIssue } from './models/issue/linearIssue';
|
|
3
|
+
import { linearTeam } from './models/team/linearTeam';
|
|
9
4
|
|
|
10
5
|
export const linearProvider: ProviderDefinition = {
|
|
11
6
|
key: 'linear',
|
|
12
7
|
name: 'Linear',
|
|
13
8
|
documentationUrl: 'https://linear.app/developers/graphql',
|
|
14
9
|
authMethods: ['apiKey', 'bearer', 'oauth2'],
|
|
15
|
-
operations: [
|
|
16
|
-
|
|
17
|
-
key: 'issues.read',
|
|
18
|
-
name: 'Read an issue',
|
|
19
|
-
resourceKind: 'issue',
|
|
20
|
-
requiredScopes: ['read'],
|
|
21
|
-
},
|
|
22
|
-
...declaredOperations(linearTeamEvents, 'team', ['read']),
|
|
23
|
-
],
|
|
24
|
-
syncedResourceKinds: ['team'],
|
|
10
|
+
operations: [...linearIssue.operations, ...linearTeam.events],
|
|
11
|
+
syncedResourceKinds: [linearTeam.kind],
|
|
25
12
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ProviderModel } from '../../../../catalog/providerModel';
|
|
2
|
+
|
|
3
|
+
const kind = 'issue';
|
|
4
|
+
|
|
5
|
+
export const linearIssue = {
|
|
6
|
+
kind,
|
|
7
|
+
operations: [
|
|
8
|
+
{ key: 'issues.read', name: 'Read an issue', resourceKind: kind, requiredScopes: ['read'] },
|
|
9
|
+
],
|
|
10
|
+
events: [],
|
|
11
|
+
} satisfies ProviderModel;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { OperationHandler } from '../../../../operationHandler';
|
|
1
|
+
import type { OperationHandler } from '../../../../operations/operationHandler';
|
|
2
2
|
import { objectSchema } from '../../../../utils/objectSchema';
|
|
3
3
|
import { ProviderError } from '../../../../utils/providerError';
|
|
4
4
|
import { select } from '../../../../utils/select';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { declaredOperations } from '../../../../catalog/declaredOperations';
|
|
2
|
+
import type { ProviderModel } from '../../../../catalog/providerModel';
|
|
3
|
+
|
|
4
|
+
const kind = 'team';
|
|
5
|
+
|
|
6
|
+
export const linearTeam = {
|
|
7
|
+
kind,
|
|
8
|
+
operations: [],
|
|
9
|
+
events: declaredOperations(
|
|
10
|
+
{
|
|
11
|
+
'events.Issue.create': 'Receive issues created in this team',
|
|
12
|
+
'events.Issue.update': 'Receive issue changes in this team',
|
|
13
|
+
'events.Comment.create': "Receive comments on this team's issues",
|
|
14
|
+
},
|
|
15
|
+
kind,
|
|
16
|
+
['read'],
|
|
17
|
+
),
|
|
18
|
+
} satisfies ProviderModel;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import type { OperationHandler } from '../../operationHandler';
|
|
2
|
+
import type { OperationHandler } from '../../operations/operationHandler';
|
|
3
3
|
import { objectSchema } from '../../utils/objectSchema';
|
|
4
4
|
import { select } from '../../utils/select';
|
|
5
5
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IntegrationEvent } from '@inixiative/signet/contracts';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import type { ProviderEvent } from '../../../providerEvent';
|
|
4
|
-
import { providerEventSchema } from '../../../providerEventSchema';
|
|
3
|
+
import type { ProviderEvent } from '../../../catalog/providerEvent';
|
|
4
|
+
import { providerEventSchema } from '../../../catalog/providerEventSchema';
|
|
5
5
|
import type { SlackEventEnvelope } from './slackEventEnvelope';
|
|
6
6
|
|
|
7
7
|
const excerptLength = 500;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { accountResourceKind } from '@inixiative/signet/contracts';
|
|
2
|
+
import { declaredOperations } from '../../../../catalog/declaredOperations';
|
|
3
|
+
import type { ProviderModel } from '../../../../catalog/providerModel';
|
|
4
|
+
|
|
5
|
+
export const slackAccount = {
|
|
6
|
+
kind: accountResourceKind,
|
|
7
|
+
operations: [],
|
|
8
|
+
events: declaredOperations(
|
|
9
|
+
{ 'events.message.im': 'Receive the direct messages of this Slack account' },
|
|
10
|
+
accountResourceKind,
|
|
11
|
+
['im:history'],
|
|
12
|
+
),
|
|
13
|
+
} satisfies ProviderModel;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { declaredOperations } from '../../../../catalog/declaredOperations';
|
|
2
|
+
import type { ProviderModel } from '../../../../catalog/providerModel';
|
|
3
|
+
|
|
4
|
+
const kind = 'channel';
|
|
5
|
+
|
|
6
|
+
const events = {
|
|
7
|
+
'events.message.channels': 'Receive messages posted in this public channel',
|
|
8
|
+
'events.app_mention': 'Receive mentions of the connected Slack app in this channel',
|
|
9
|
+
} as const;
|
|
10
|
+
|
|
11
|
+
export const slackChannel = {
|
|
12
|
+
kind,
|
|
13
|
+
operations: [
|
|
14
|
+
{
|
|
15
|
+
key: 'conversations.read',
|
|
16
|
+
name: 'Read channel details',
|
|
17
|
+
resourceKind: kind,
|
|
18
|
+
requiredScopes: ['channels:read or groups:read'],
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
key: 'messages.read',
|
|
22
|
+
name: 'Read channel messages',
|
|
23
|
+
resourceKind: kind,
|
|
24
|
+
requiredScopes: ['channels:history or groups:history'],
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
events: [
|
|
28
|
+
...declaredOperations(events, kind, ['channels:history'], ['events.message.channels']),
|
|
29
|
+
...declaredOperations(events, kind, ['app_mentions:read'], ['events.app_mention']),
|
|
30
|
+
],
|
|
31
|
+
} satisfies ProviderModel;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import type { OperationHandler } from '../../../../operationHandler';
|
|
2
|
+
import type { OperationHandler } from '../../../../operations/operationHandler';
|
|
3
3
|
import { objectSchema } from '../../../../utils/objectSchema';
|
|
4
4
|
import { select } from '../../../../utils/select';
|
|
5
5
|
import { slackProviderError } from '../../slackProviderError';
|
|
@@ -1,47 +1,12 @@
|
|
|
1
|
-
import { accountResourceKind } from '@inixiative/signet/contracts';
|
|
2
1
|
import type { ProviderDefinition } from '../../contracts';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
const slackChannelEvents = {
|
|
6
|
-
'events.message.channels': 'Receive messages posted in this public channel',
|
|
7
|
-
'events.app_mention': 'Receive mentions of the connected Slack app in this channel',
|
|
8
|
-
} as const;
|
|
9
|
-
|
|
10
|
-
const slackAccountEvents = {
|
|
11
|
-
'events.message.im': 'Receive the direct messages of this Slack account',
|
|
12
|
-
} as const;
|
|
2
|
+
import { slackAccount } from './models/account/slackAccount';
|
|
3
|
+
import { slackChannel } from './models/channel/slackChannel';
|
|
13
4
|
|
|
14
5
|
export const slackProvider: ProviderDefinition = {
|
|
15
6
|
key: 'slack',
|
|
16
7
|
name: 'Slack',
|
|
17
8
|
documentationUrl: 'https://docs.slack.dev/reference/methods/conversations.history/',
|
|
18
9
|
authMethods: ['bearer', 'oauth2'],
|
|
19
|
-
operations: [
|
|
20
|
-
|
|
21
|
-
key: 'conversations.read',
|
|
22
|
-
name: 'Read channel details',
|
|
23
|
-
resourceKind: 'channel',
|
|
24
|
-
requiredScopes: ['channels:read or groups:read'],
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
key: 'messages.read',
|
|
28
|
-
name: 'Read channel messages',
|
|
29
|
-
resourceKind: 'channel',
|
|
30
|
-
requiredScopes: ['channels:history or groups:history'],
|
|
31
|
-
},
|
|
32
|
-
...declaredOperations(
|
|
33
|
-
slackChannelEvents,
|
|
34
|
-
'channel',
|
|
35
|
-
['channels:history'],
|
|
36
|
-
['events.message.channels'],
|
|
37
|
-
),
|
|
38
|
-
...declaredOperations(
|
|
39
|
-
slackChannelEvents,
|
|
40
|
-
'channel',
|
|
41
|
-
['app_mentions:read'],
|
|
42
|
-
['events.app_mention'],
|
|
43
|
-
),
|
|
44
|
-
...declaredOperations(slackAccountEvents, accountResourceKind, ['im:history']),
|
|
45
|
-
],
|
|
46
|
-
syncedResourceKinds: ['channel'],
|
|
10
|
+
operations: [...slackChannel.operations, ...slackChannel.events, ...slackAccount.events],
|
|
11
|
+
syncedResourceKinds: [slackChannel.kind],
|
|
47
12
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import type { OperationHandler } from '../../operationHandler';
|
|
2
|
+
import type { OperationHandler } from '../../operations/operationHandler';
|
|
3
3
|
import { objectSchema } from '../../utils/objectSchema';
|
|
4
4
|
import { select } from '../../utils/select';
|
|
5
5
|
|
package/src/{integrationConfigurationSchemas.ts → resources/integrationConfigurationSchemas.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { archiveConfigurationSchema } from '
|
|
2
|
+
import { archiveConfigurationSchema } from '../providers/archive/archiveConfigurationSchema';
|
|
3
3
|
import { perProvider } from './perProvider';
|
|
4
4
|
|
|
5
5
|
const atlassianConfigurationSchema = z.strictObject({ cloudId: z.uuid() });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { z } from 'zod';
|
|
2
|
-
import { type Provider, providerSchema } from '
|
|
2
|
+
import { type Provider, providerSchema } from '../contracts';
|
|
3
3
|
|
|
4
4
|
type PerProvider<TFallback, TOverrides> = {
|
|
5
5
|
[P in Provider]: P extends keyof TOverrides ? TOverrides[P] : TFallback;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { threadIdSchema } from '@inixiative/signet/contracts';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
+
import { githubRepositoryIdSchema } from '../providers/github/models/repository/githubRepositoryIdSchema';
|
|
3
4
|
import { perProvider } from './perProvider';
|
|
4
|
-
import { githubRepositoryIdSchema } from './providers/github/models/repository/githubRepositoryIdSchema';
|
|
5
5
|
|
|
6
6
|
export const resourceExternalIdSchemas = perProvider(
|
|
7
7
|
z
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { githubRepositoryMetadataSchema } from '../providers/github/models/repository/githubRepositoryMetadataSchema';
|
|
2
3
|
import { perProvider } from './perProvider';
|
|
3
|
-
import { githubRepositoryMetadataSchema } from './providers/github/models/repository/githubRepositoryMetadataSchema';
|
|
4
4
|
|
|
5
5
|
export const resourceMetadataSchemas = perProvider(z.strictObject({}), {
|
|
6
6
|
teams: z.strictObject({ teamId: z.uuid() }),
|
package/src/catalog.ts
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import type { ProviderDefinition } from './contracts';
|
|
2
|
-
import { anthropicProvider } from './providers/anthropic/anthropicProvider';
|
|
3
|
-
import { archiveProvider } from './providers/archive/archiveProvider';
|
|
4
|
-
import { chorusProvider } from './providers/chorus/chorusProvider';
|
|
5
|
-
import { claudeProvider } from './providers/claude/claudeProvider';
|
|
6
|
-
import { codexProvider } from './providers/codex/codexProvider';
|
|
7
|
-
import { confluenceProvider } from './providers/confluence/confluenceProvider';
|
|
8
|
-
import { discordProvider } from './providers/discord/discordProvider';
|
|
9
|
-
import { driveProvider } from './providers/drive/driveProvider';
|
|
10
|
-
import { foundryProvider } from './providers/foundry/foundryProvider';
|
|
11
|
-
import { geminiApiProvider } from './providers/geminiApi/geminiApiProvider';
|
|
12
|
-
import { githubOrganizationProvider } from './providers/github/githubOrganizationProvider';
|
|
13
|
-
import { githubProvider } from './providers/github/githubProvider';
|
|
14
|
-
import { githubUserProvider } from './providers/github/githubUserProvider';
|
|
15
|
-
import { gmailProvider } from './providers/gmail/gmailProvider';
|
|
16
|
-
import { googleProvider } from './providers/google/googleProvider';
|
|
17
|
-
import { jiraProvider } from './providers/jira/jiraProvider';
|
|
18
|
-
import { linearProvider } from './providers/linear/linearProvider';
|
|
19
|
-
import { museProvider } from './providers/muse/museProvider';
|
|
20
|
-
import { notionProvider } from './providers/notion/notionProvider';
|
|
21
|
-
import { openaiProvider } from './providers/openai/openaiProvider';
|
|
22
|
-
import { oracleProvider } from './providers/oracle/oracleProvider';
|
|
23
|
-
import { railwayProvider } from './providers/railway/railwayProvider';
|
|
24
|
-
import { renderProvider } from './providers/render/renderProvider';
|
|
25
|
-
import { slackProvider } from './providers/slack/slackProvider';
|
|
26
|
-
import { teamsProvider } from './providers/teams/teamsProvider';
|
|
27
|
-
|
|
28
|
-
export const providers: ProviderDefinition[] = [
|
|
29
|
-
slackProvider,
|
|
30
|
-
discordProvider,
|
|
31
|
-
teamsProvider,
|
|
32
|
-
linearProvider,
|
|
33
|
-
notionProvider,
|
|
34
|
-
jiraProvider,
|
|
35
|
-
googleProvider,
|
|
36
|
-
gmailProvider,
|
|
37
|
-
driveProvider,
|
|
38
|
-
confluenceProvider,
|
|
39
|
-
anthropicProvider,
|
|
40
|
-
openaiProvider,
|
|
41
|
-
geminiApiProvider,
|
|
42
|
-
archiveProvider,
|
|
43
|
-
foundryProvider,
|
|
44
|
-
oracleProvider,
|
|
45
|
-
chorusProvider,
|
|
46
|
-
githubProvider,
|
|
47
|
-
githubOrganizationProvider,
|
|
48
|
-
githubUserProvider,
|
|
49
|
-
railwayProvider,
|
|
50
|
-
renderProvider,
|
|
51
|
-
claudeProvider,
|
|
52
|
-
codexProvider,
|
|
53
|
-
museProvider,
|
|
54
|
-
];
|
package/src/credentialClient.ts
DELETED
package/src/operationHandlers.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import type { Provider } from './contracts';
|
|
2
|
-
import type { OperationHandler } from './operationHandler';
|
|
3
|
-
import { confluenceOperationHandler } from './providers/confluence/confluenceOperationHandler';
|
|
4
|
-
import { discordOperationHandler } from './providers/discord/discordOperationHandler';
|
|
5
|
-
import { driveOperationHandler } from './providers/drive/driveOperationHandler';
|
|
6
|
-
import { githubOperationHandler } from './providers/github/models/repository/githubOperationHandler';
|
|
7
|
-
import { gmailOperationHandler } from './providers/gmail/gmailOperationHandler';
|
|
8
|
-
import { jiraOperationHandler } from './providers/jira/jiraOperationHandler';
|
|
9
|
-
import { linearOperationHandler } from './providers/linear/models/issue/linearOperationHandler';
|
|
10
|
-
import { notionOperationHandler } from './providers/notion/notionOperationHandler';
|
|
11
|
-
import { slackOperationHandler } from './providers/slack/models/channel/slackOperationHandler';
|
|
12
|
-
import { teamsOperationHandler } from './providers/teams/teamsOperationHandler';
|
|
13
|
-
|
|
14
|
-
// why: null marks a provider reached outside the generic HTTP path (own client, Signet, family, or admitted elsewhere).
|
|
15
|
-
export const operationHandlers: Record<Provider, OperationHandler | null> = {
|
|
16
|
-
slack: slackOperationHandler,
|
|
17
|
-
discord: discordOperationHandler,
|
|
18
|
-
teams: teamsOperationHandler,
|
|
19
|
-
linear: linearOperationHandler,
|
|
20
|
-
notion: notionOperationHandler,
|
|
21
|
-
jira: jiraOperationHandler,
|
|
22
|
-
drive: driveOperationHandler,
|
|
23
|
-
confluence: confluenceOperationHandler,
|
|
24
|
-
github: null,
|
|
25
|
-
githubOrganization: githubOperationHandler,
|
|
26
|
-
githubUser: githubOperationHandler,
|
|
27
|
-
google: null,
|
|
28
|
-
anthropic: null,
|
|
29
|
-
openai: null,
|
|
30
|
-
geminiApi: null,
|
|
31
|
-
archive: null,
|
|
32
|
-
gmail: gmailOperationHandler,
|
|
33
|
-
foundry: null,
|
|
34
|
-
oracle: null,
|
|
35
|
-
chorus: null,
|
|
36
|
-
railway: null,
|
|
37
|
-
render: null,
|
|
38
|
-
claude: null,
|
|
39
|
-
codex: null,
|
|
40
|
-
muse: null,
|
|
41
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/{archiveConfigurationSchema.ts → providers/archive/archiveConfigurationSchema.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|