corsair 0.1.2 → 0.1.4
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/adapters/drizzle/postgres.d.ts.map +1 -1
- package/dist/adapters/drizzle/postgres.js +1 -0
- package/dist/core/auth/key-manager.d.ts +5 -5
- package/dist/core/auth/key-manager.d.ts.map +1 -1
- package/dist/core/auth/key-manager.js +66 -64
- package/dist/core/auth/methods/api-key.d.ts.map +1 -1
- package/dist/core/auth/methods/api-key.js +7 -0
- package/dist/core/auth/methods/bot-token.d.ts.map +1 -1
- package/dist/core/auth/methods/bot-token.js +7 -0
- package/dist/core/auth/methods/oauth2.d.ts.map +1 -1
- package/dist/core/auth/methods/oauth2.js +7 -0
- package/dist/core/auth/types.d.ts +30 -0
- package/dist/core/auth/types.d.ts.map +1 -1
- package/dist/core/client/index.d.ts +3 -3
- package/dist/core/client/index.d.ts.map +1 -1
- package/dist/core/client/index.js +30 -218
- package/dist/core/constants.d.ts +2 -2
- package/dist/core/constants.d.ts.map +1 -1
- package/dist/core/constants.js +1 -0
- package/dist/core/endpoints/bind.js +1 -1
- package/dist/core/endpoints/index.d.ts +2 -2
- package/dist/core/endpoints/index.d.ts.map +1 -1
- package/dist/core/index.d.ts +8 -0
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +22 -7
- package/dist/core/plugins/index.d.ts +6 -6
- package/dist/core/plugins/index.d.ts.map +1 -1
- package/dist/core/webhooks/bind.d.ts +3 -1
- package/dist/core/webhooks/bind.d.ts.map +1 -1
- package/dist/core/webhooks/bind.js +11 -6
- package/dist/core/webhooks/index.d.ts +2 -2
- package/dist/core/webhooks/index.d.ts.map +1 -1
- package/dist/db/index.d.ts +70 -8
- package/dist/db/index.d.ts.map +1 -1
- package/dist/db/index.js +20 -4
- package/dist/db/kysely/database.d.ts +15 -0
- package/dist/db/kysely/database.d.ts.map +1 -0
- package/dist/db/kysely/database.js +19 -0
- package/dist/db/kysely/orm.d.ts +6 -0
- package/dist/db/kysely/orm.d.ts.map +1 -0
- package/dist/db/kysely/orm.js +334 -0
- package/dist/db/kysely/postgres.d.ts +5 -0
- package/dist/db/kysely/postgres.d.ts.map +1 -0
- package/dist/db/kysely/postgres.js +20 -0
- package/dist/db/orm.d.ts +375 -32
- package/dist/db/orm.d.ts.map +1 -1
- package/dist/db/orm.js +176 -332
- package/dist/index.d.ts +7 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -3
- package/dist/plugins/github/api.test.d.ts +2 -0
- package/dist/plugins/github/api.test.d.ts.map +1 -0
- package/dist/plugins/github/api.test.js +182 -0
- package/dist/plugins/github/client.d.ts +10 -0
- package/dist/plugins/github/client.d.ts.map +1 -0
- package/dist/plugins/github/client.js +46 -0
- package/dist/plugins/github/endpoints/index.d.ts +1777 -0
- package/dist/plugins/github/endpoints/index.d.ts.map +1 -0
- package/dist/plugins/github/endpoints/index.js +37 -0
- package/dist/plugins/github/endpoints/issues.d.ts +7 -0
- package/dist/plugins/github/endpoints/issues.d.ts.map +1 -0
- package/dist/plugins/github/endpoints/issues.js +94 -0
- package/dist/plugins/github/endpoints/pull-requests.d.ts +6 -0
- package/dist/plugins/github/endpoints/pull-requests.d.ts.map +1 -0
- package/dist/plugins/github/endpoints/pull-requests.js +60 -0
- package/dist/plugins/github/endpoints/releases.d.ts +6 -0
- package/dist/plugins/github/endpoints/releases.d.ts.map +1 -0
- package/dist/plugins/github/endpoints/releases.js +66 -0
- package/dist/plugins/github/endpoints/repositories.d.ts +7 -0
- package/dist/plugins/github/endpoints/repositories.d.ts.map +1 -0
- package/dist/plugins/github/endpoints/repositories.js +73 -0
- package/dist/plugins/github/endpoints/types.d.ts +7648 -0
- package/dist/plugins/github/endpoints/types.d.ts.map +1 -0
- package/dist/plugins/github/endpoints/types.js +402 -0
- package/dist/plugins/github/endpoints/workflows.d.ts +5 -0
- package/dist/plugins/github/endpoints/workflows.d.ts.map +1 -0
- package/dist/plugins/github/endpoints/workflows.js +44 -0
- package/dist/plugins/github/index.d.ts +442 -0
- package/dist/plugins/github/index.d.ts.map +1 -0
- package/dist/plugins/github/index.js +92 -0
- package/dist/plugins/github/integration.test.d.ts +2 -0
- package/dist/plugins/github/integration.test.d.ts.map +1 -0
- package/dist/plugins/github/integration.test.js +520 -0
- package/dist/plugins/github/schema/database.d.ts +858 -0
- package/dist/plugins/github/schema/database.d.ts.map +1 -0
- package/dist/plugins/github/schema/database.js +134 -0
- package/dist/plugins/github/schema/index.d.ts +865 -0
- package/dist/plugins/github/schema/index.d.ts.map +1 -0
- package/dist/plugins/github/schema/index.js +16 -0
- package/dist/plugins/github/types.d.ts +217 -0
- package/dist/plugins/github/types.d.ts.map +1 -0
- package/dist/plugins/github/types.js +1 -0
- package/dist/plugins/github/webhooks/index.d.ts +32 -0
- package/dist/plugins/github/webhooks/index.d.ts.map +1 -0
- package/dist/plugins/github/webhooks/index.js +16 -0
- package/dist/plugins/github/webhooks/pull-requests.d.ts +5 -0
- package/dist/plugins/github/webhooks/pull-requests.d.ts.map +1 -0
- package/dist/plugins/github/webhooks/pull-requests.js +200 -0
- package/dist/plugins/github/webhooks/push.d.ts +3 -0
- package/dist/plugins/github/webhooks/push.d.ts.map +1 -0
- package/dist/plugins/github/webhooks/push.js +27 -0
- package/dist/plugins/github/webhooks/stars.d.ts +4 -0
- package/dist/plugins/github/webhooks/stars.d.ts.map +1 -0
- package/dist/plugins/github/webhooks/stars.js +59 -0
- package/dist/plugins/github/webhooks/types.d.ts +292 -0
- package/dist/plugins/github/webhooks/types.d.ts.map +1 -0
- package/dist/plugins/github/webhooks/types.js +45 -0
- package/dist/plugins/gmail/api.test.d.ts +2 -0
- package/dist/plugins/gmail/api.test.d.ts.map +1 -0
- package/dist/plugins/gmail/api.test.js +383 -0
- package/dist/plugins/gmail/endpoints/types.d.ts +1153 -0
- package/dist/plugins/gmail/endpoints/types.d.ts.map +1 -1
- package/dist/plugins/gmail/endpoints/types.js +109 -1
- package/dist/plugins/gmail/integration.test.d.ts +2 -0
- package/dist/plugins/gmail/integration.test.d.ts.map +1 -0
- package/dist/plugins/gmail/integration.test.js +104 -0
- package/dist/plugins/gmail/schema/database.d.ts +14 -14
- package/dist/plugins/gmail/schema/database.js +4 -4
- package/dist/plugins/gmail/schema/index.d.ts +14 -14
- package/dist/plugins/gmail/webhooks/index.d.ts +0 -11
- package/dist/plugins/gmail/webhooks/index.d.ts.map +1 -1
- package/dist/plugins/gmail/webhooks/messages.d.ts +0 -11
- package/dist/plugins/gmail/webhooks/messages.d.ts.map +1 -1
- package/dist/plugins/gmail/webhooks/messages.js +0 -8
- package/dist/plugins/hubspot/api.test.d.ts +2 -0
- package/dist/plugins/hubspot/api.test.d.ts.map +1 -0
- package/dist/plugins/hubspot/api.test.js +305 -0
- package/dist/plugins/hubspot/client.d.ts +10 -0
- package/dist/plugins/hubspot/client.d.ts.map +1 -0
- package/dist/plugins/hubspot/client.js +45 -0
- package/dist/plugins/hubspot/endpoints/companies.d.ts +10 -0
- package/dist/plugins/hubspot/endpoints/companies.d.ts.map +1 -0
- package/dist/plugins/hubspot/endpoints/companies.js +141 -0
- package/dist/plugins/hubspot/endpoints/contact-lists.d.ts +4 -0
- package/dist/plugins/hubspot/endpoints/contact-lists.d.ts.map +1 -0
- package/dist/plugins/hubspot/endpoints/contact-lists.js +16 -0
- package/dist/plugins/hubspot/endpoints/contacts.d.ts +9 -0
- package/dist/plugins/hubspot/endpoints/contacts.d.ts.map +1 -0
- package/dist/plugins/hubspot/endpoints/contacts.js +100 -0
- package/dist/plugins/hubspot/endpoints/deals.d.ts +10 -0
- package/dist/plugins/hubspot/endpoints/deals.d.ts.map +1 -0
- package/dist/plugins/hubspot/endpoints/deals.js +115 -0
- package/dist/plugins/hubspot/endpoints/engagements.d.ts +6 -0
- package/dist/plugins/hubspot/endpoints/engagements.d.ts.map +1 -0
- package/dist/plugins/hubspot/endpoints/engagements.js +71 -0
- package/dist/plugins/hubspot/endpoints/index.d.ts +1152 -0
- package/dist/plugins/hubspot/endpoints/index.d.ts.map +1 -0
- package/dist/plugins/hubspot/endpoints/index.js +53 -0
- package/dist/plugins/hubspot/endpoints/tickets.d.ts +7 -0
- package/dist/plugins/hubspot/endpoints/tickets.d.ts.map +1 -0
- package/dist/plugins/hubspot/endpoints/tickets.js +94 -0
- package/dist/plugins/hubspot/endpoints/types.d.ts +2816 -0
- package/dist/plugins/hubspot/endpoints/types.d.ts.map +1 -0
- package/dist/plugins/hubspot/endpoints/types.js +147 -0
- package/dist/plugins/hubspot/error-handlers.d.ts +21 -0
- package/dist/plugins/hubspot/error-handlers.d.ts.map +1 -0
- package/dist/plugins/hubspot/error-handlers.js +55 -0
- package/dist/plugins/hubspot/index.d.ts +508 -0
- package/dist/plugins/hubspot/index.d.ts.map +1 -0
- package/dist/plugins/hubspot/index.js +117 -0
- package/dist/plugins/hubspot/integration.test.d.ts +2 -0
- package/dist/plugins/hubspot/integration.test.d.ts.map +1 -0
- package/dist/plugins/hubspot/integration.test.js +590 -0
- package/dist/plugins/hubspot/schema/database.d.ts +154 -0
- package/dist/plugins/hubspot/schema/database.d.ts.map +1 -0
- package/dist/plugins/hubspot/schema/database.js +48 -0
- package/dist/plugins/hubspot/schema/index.d.ts +162 -0
- package/dist/plugins/hubspot/schema/index.d.ts.map +1 -0
- package/dist/plugins/hubspot/schema/index.js +15 -0
- package/dist/plugins/hubspot/types.d.ts +54 -0
- package/dist/plugins/hubspot/types.d.ts.map +1 -0
- package/dist/plugins/hubspot/types.js +1 -0
- package/dist/plugins/hubspot/webhooks/companies.d.ts +5 -0
- package/dist/plugins/hubspot/webhooks/companies.d.ts.map +1 -0
- package/dist/plugins/hubspot/webhooks/companies.js +124 -0
- package/dist/plugins/hubspot/webhooks/contacts.d.ts +5 -0
- package/dist/plugins/hubspot/webhooks/contacts.d.ts.map +1 -0
- package/dist/plugins/hubspot/webhooks/contacts.js +124 -0
- package/dist/plugins/hubspot/webhooks/deals.d.ts +5 -0
- package/dist/plugins/hubspot/webhooks/deals.d.ts.map +1 -0
- package/dist/plugins/hubspot/webhooks/deals.js +124 -0
- package/dist/plugins/hubspot/webhooks/index.d.ts +82 -0
- package/dist/plugins/hubspot/webhooks/index.d.ts.map +1 -0
- package/dist/plugins/hubspot/webhooks/index.js +25 -0
- package/dist/plugins/hubspot/webhooks/tickets.d.ts +5 -0
- package/dist/plugins/hubspot/webhooks/tickets.d.ts.map +1 -0
- package/dist/plugins/hubspot/webhooks/tickets.js +124 -0
- package/dist/plugins/hubspot/webhooks/types.d.ts +127 -0
- package/dist/plugins/hubspot/webhooks/types.d.ts.map +1 -0
- package/dist/plugins/hubspot/webhooks/types.js +44 -0
- package/dist/plugins/index.d.ts +2 -0
- package/dist/plugins/index.d.ts.map +1 -1
- package/dist/plugins/index.js +2 -0
- package/dist/plugins/linear/api.test.d.ts +2 -0
- package/dist/plugins/linear/api.test.d.ts.map +1 -0
- package/dist/plugins/linear/api.test.js +652 -0
- package/dist/plugins/linear/endpoints/comments.js +15 -15
- package/dist/plugins/linear/endpoints/index.d.ts +291 -13
- package/dist/plugins/linear/endpoints/index.d.ts.map +1 -1
- package/dist/plugins/linear/endpoints/issues.d.ts.map +1 -1
- package/dist/plugins/linear/endpoints/issues.js +11 -55
- package/dist/plugins/linear/endpoints/projects.js +15 -15
- package/dist/plugins/linear/endpoints/teams.js +6 -6
- package/dist/plugins/linear/endpoints/types.d.ts +3984 -230
- package/dist/plugins/linear/endpoints/types.d.ts.map +1 -1
- package/dist/plugins/linear/endpoints/types.js +487 -1
- package/dist/plugins/linear/index.d.ts +3 -1
- package/dist/plugins/linear/index.d.ts.map +1 -1
- package/dist/plugins/linear/index.js +19 -4
- package/dist/plugins/linear/integration.test.d.ts +2 -0
- package/dist/plugins/linear/integration.test.d.ts.map +1 -0
- package/dist/plugins/linear/integration.test.js +427 -0
- package/dist/plugins/linear/schema/database.d.ts +130 -130
- package/dist/plugins/linear/schema/database.d.ts.map +1 -1
- package/dist/plugins/linear/schema/database.js +47 -40
- package/dist/plugins/linear/schema/index.d.ts +130 -130
- package/dist/plugins/linear/webhooks/comments.d.ts.map +1 -1
- package/dist/plugins/linear/webhooks/comments.js +34 -8
- package/dist/plugins/linear/webhooks/issues.d.ts.map +1 -1
- package/dist/plugins/linear/webhooks/issues.js +54 -8
- package/dist/plugins/linear/webhooks/projects.d.ts.map +1 -1
- package/dist/plugins/linear/webhooks/projects.js +40 -8
- package/dist/plugins/linear/webhooks/types.d.ts +7 -6
- package/dist/plugins/linear/webhooks/types.d.ts.map +1 -1
- package/dist/plugins/linear/webhooks/types.js +30 -5
- package/dist/plugins/posthog/api.test.d.ts +2 -0
- package/dist/plugins/posthog/api.test.d.ts.map +1 -0
- package/dist/plugins/posthog/api.test.js +91 -0
- package/dist/plugins/posthog/endpoints/index.d.ts +5 -5
- package/dist/plugins/posthog/endpoints/types.d.ts +58 -24
- package/dist/plugins/posthog/endpoints/types.d.ts.map +1 -1
- package/dist/plugins/posthog/endpoints/types.js +19 -1
- package/dist/plugins/posthog/index.d.ts +3 -2
- package/dist/plugins/posthog/index.d.ts.map +1 -1
- package/dist/plugins/posthog/index.js +24 -5
- package/dist/plugins/posthog/integration.test.d.ts +2 -0
- package/dist/plugins/posthog/integration.test.d.ts.map +1 -0
- package/dist/plugins/posthog/integration.test.js +132 -0
- package/dist/plugins/posthog/schema/database.d.ts +5 -5
- package/dist/plugins/posthog/schema/database.js +1 -1
- package/dist/plugins/posthog/schema/index.d.ts +5 -5
- package/dist/plugins/posthog/webhooks/events.d.ts.map +1 -1
- package/dist/plugins/posthog/webhooks/events.js +10 -2
- package/dist/plugins/posthog/webhooks/types.d.ts +7 -2
- package/dist/plugins/posthog/webhooks/types.d.ts.map +1 -1
- package/dist/plugins/posthog/webhooks/types.js +36 -1
- package/dist/plugins/resend/api.test.d.ts +2 -0
- package/dist/plugins/resend/api.test.d.ts.map +1 -0
- package/dist/plugins/resend/api.test.js +98 -0
- package/dist/plugins/resend/endpoints/domains.js +2 -2
- package/dist/plugins/resend/endpoints/emails.js +1 -1
- package/dist/plugins/resend/endpoints/index.d.ts +54 -8
- package/dist/plugins/resend/endpoints/index.d.ts.map +1 -1
- package/dist/plugins/resend/endpoints/types.d.ts +216 -41
- package/dist/plugins/resend/endpoints/types.d.ts.map +1 -1
- package/dist/plugins/resend/endpoints/types.js +70 -1
- package/dist/plugins/resend/error-handlers.d.ts +15 -0
- package/dist/plugins/resend/error-handlers.d.ts.map +1 -0
- package/dist/plugins/resend/error-handlers.js +39 -0
- package/dist/plugins/resend/index.d.ts +3 -1
- package/dist/plugins/resend/index.d.ts.map +1 -1
- package/dist/plugins/resend/index.js +17 -5
- package/dist/plugins/resend/integration.test.d.ts +2 -0
- package/dist/plugins/resend/integration.test.d.ts.map +1 -0
- package/dist/plugins/resend/integration.test.js +241 -0
- package/dist/plugins/resend/schema/database.d.ts +9 -9
- package/dist/plugins/resend/schema/database.d.ts.map +1 -1
- package/dist/plugins/resend/schema/database.js +12 -3
- package/dist/plugins/resend/schema/index.d.ts +9 -9
- package/dist/plugins/resend/webhooks/domains.d.ts.map +1 -1
- package/dist/plugins/resend/webhooks/domains.js +21 -3
- package/dist/plugins/resend/webhooks/emails.d.ts.map +1 -1
- package/dist/plugins/resend/webhooks/emails.js +75 -9
- package/dist/plugins/resend/webhooks/types.d.ts +7 -2
- package/dist/plugins/resend/webhooks/types.d.ts.map +1 -1
- package/dist/plugins/resend/webhooks/types.js +33 -1
- package/dist/plugins/slack/api.test.d.ts +2 -0
- package/dist/plugins/slack/api.test.d.ts.map +1 -0
- package/dist/plugins/slack/api.test.js +501 -0
- package/dist/plugins/slack/client.d.ts.map +1 -1
- package/dist/plugins/slack/client.js +2 -4
- package/dist/plugins/slack/endpoints/channels.d.ts.map +1 -1
- package/dist/plugins/slack/endpoints/channels.js +7 -16
- package/dist/plugins/slack/endpoints/files.d.ts.map +1 -1
- package/dist/plugins/slack/endpoints/files.js +4 -29
- package/dist/plugins/slack/endpoints/index.d.ts +5528 -105
- package/dist/plugins/slack/endpoints/index.d.ts.map +1 -1
- package/dist/plugins/slack/endpoints/messages.d.ts.map +1 -1
- package/dist/plugins/slack/endpoints/messages.js +3 -42
- package/dist/plugins/slack/endpoints/reactions.d.ts.map +1 -1
- package/dist/plugins/slack/endpoints/reactions.js +3 -19
- package/dist/plugins/slack/endpoints/stars.d.ts.map +1 -1
- package/dist/plugins/slack/endpoints/stars.js +3 -19
- package/dist/plugins/slack/endpoints/types.d.ts +16545 -413
- package/dist/plugins/slack/endpoints/types.d.ts.map +1 -1
- package/dist/plugins/slack/endpoints/types.js +462 -1
- package/dist/plugins/slack/endpoints/user-groups.d.ts.map +1 -1
- package/dist/plugins/slack/endpoints/user-groups.js +5 -33
- package/dist/plugins/slack/endpoints/users.d.ts.map +1 -1
- package/dist/plugins/slack/endpoints/users.js +6 -24
- package/dist/plugins/slack/index.d.ts +10 -5
- package/dist/plugins/slack/index.d.ts.map +1 -1
- package/dist/plugins/slack/index.js +21 -6
- package/dist/plugins/slack/integration.test.d.ts +2 -0
- package/dist/plugins/slack/integration.test.d.ts.map +1 -0
- package/dist/plugins/slack/integration.test.js +184 -0
- package/dist/plugins/slack/schema/database.d.ts +24 -24
- package/dist/plugins/slack/schema/database.js +2 -2
- package/dist/plugins/slack/schema/index.d.ts +24 -24
- package/dist/plugins/slack/webhooks/challenge.d.ts +3 -0
- package/dist/plugins/slack/webhooks/challenge.d.ts.map +1 -0
- package/dist/plugins/slack/webhooks/challenge.js +31 -0
- package/dist/plugins/slack/webhooks/channels.d.ts.map +1 -1
- package/dist/plugins/slack/webhooks/channels.js +10 -2
- package/dist/plugins/slack/webhooks/files.d.ts.map +1 -1
- package/dist/plugins/slack/webhooks/files.js +28 -4
- package/dist/plugins/slack/webhooks/index.d.ts +6 -0
- package/dist/plugins/slack/webhooks/index.d.ts.map +1 -1
- package/dist/plugins/slack/webhooks/index.js +4 -0
- package/dist/plugins/slack/webhooks/messages.d.ts.map +1 -1
- package/dist/plugins/slack/webhooks/messages.js +11 -3
- package/dist/plugins/slack/webhooks/reactions.d.ts.map +1 -1
- package/dist/plugins/slack/webhooks/reactions.js +10 -2
- package/dist/plugins/slack/webhooks/types.d.ts +13 -3
- package/dist/plugins/slack/webhooks/types.d.ts.map +1 -1
- package/dist/plugins/slack/webhooks/types.js +35 -0
- package/dist/plugins/slack/webhooks/users.d.ts.map +1 -1
- package/dist/plugins/slack/webhooks/users.js +21 -5
- package/dist/plugins/utils/events.d.ts +3 -3
- package/dist/plugins/utils/events.d.ts.map +1 -1
- package/dist/plugins/utils/events.js +15 -12
- package/dist/tests/hooks.test.js +8 -8
- package/dist/tests/plugins-test-utils.d.ts +4 -0
- package/dist/tests/plugins-test-utils.d.ts.map +1 -0
- package/dist/tests/plugins-test-utils.js +26 -0
- package/dist/tests/setup-db.d.ts +4 -3
- package/dist/tests/setup-db.d.ts.map +1 -1
- package/dist/tests/setup-db.js +38 -122
- package/dist/tests/slack-rate-limit-integration.test.d.ts +0 -1
- package/dist/tests/slack-rate-limit-integration.test.js +526 -416
- package/dist/tsup.config.d.ts.map +1 -1
- package/dist/tsup.config.js +1 -4
- package/dist/webhooks/index.d.ts +2 -2
- package/dist/webhooks/index.d.ts.map +1 -1
- package/dist/webhooks/index.js +33 -30
- package/package.json +9 -37
- package/dist/tests/drizzle-adapter.test.d.ts +0 -2
- package/dist/tests/drizzle-adapter.test.d.ts.map +0 -1
- package/dist/tests/drizzle-adapter.test.js +0 -534
- package/dist/tests/multi-tenancy.test.d.ts +0 -2
- package/dist/tests/multi-tenancy.test.d.ts.map +0 -1
- package/dist/tests/multi-tenancy.test.js +0 -277
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postgres.d.ts","sourceRoot":"","sources":["../../../adapters/drizzle/postgres.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"postgres.d.ts","sourceRoot":"","sources":["../../../adapters/drizzle/postgres.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACX,gBAAgB,EAMhB,MAAM,UAAU,CAAC;AAyClB,MAAM,MAAM,oBAAoB,GAAG;IAClC;;OAEG;IACH,QAAQ,EAAE,IAAI,CAAC;IACf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;IAC7C;;OAEG;IACH,UAAU,CAAC,EACR;QACA,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAClC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAC9B,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAC9B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;KAC3B,GACD,SAAS,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B,CAAC;AA4KF;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAC7B,EAAE,EAAE,OAAO,EACX,MAAM,EAAE,oBAAoB,GAC1B,gBAAgB,CAiIlB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// @ts-nocheck we are currently removing all db adapters. leaving this for some legacy purposes but adding no-check since we are not using it
|
|
1
2
|
import { and, asc, count, desc, eq, ilike, inArray, sql } from 'drizzle-orm';
|
|
2
3
|
function normalizeOperator(op) {
|
|
3
4
|
return op ?? '=';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { CorsairDatabase } from '../../db/kysely/database';
|
|
2
2
|
import type { AuthTypes } from '../constants';
|
|
3
3
|
import type { AccountKeyManagerFor, IntegrationKeyManagerFor } from './types';
|
|
4
4
|
export type IntegrationKeyManagerOptions<T extends AuthTypes> = {
|
|
5
5
|
authType: T;
|
|
6
6
|
integrationName: string;
|
|
7
7
|
kek: string;
|
|
8
|
-
database:
|
|
8
|
+
database: CorsairDatabase;
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
11
|
* Creates an integration-level key manager for the given auth type.
|
|
@@ -20,7 +20,7 @@ export type AccountKeyManagerOptions<T extends AuthTypes> = {
|
|
|
20
20
|
integrationName: string;
|
|
21
21
|
tenantId: string;
|
|
22
22
|
kek: string;
|
|
23
|
-
database:
|
|
23
|
+
database: CorsairDatabase;
|
|
24
24
|
};
|
|
25
25
|
/**
|
|
26
26
|
* Creates an account-level key manager for the given auth type.
|
|
@@ -34,10 +34,10 @@ export declare function createAccountKeyManager<T extends AuthTypes>(options: Ac
|
|
|
34
34
|
* Initializes an integration with a new DEK.
|
|
35
35
|
* Call this when creating a new integration or when setting up encryption for the first time.
|
|
36
36
|
*/
|
|
37
|
-
export declare function initializeIntegrationDEK(database:
|
|
37
|
+
export declare function initializeIntegrationDEK(database: CorsairDatabase, integrationName: string, kek: string): Promise<string>;
|
|
38
38
|
/**
|
|
39
39
|
* Initializes an account with a new DEK.
|
|
40
40
|
* Call this when creating a new account or when setting up encryption for the first time.
|
|
41
41
|
*/
|
|
42
|
-
export declare function initializeAccountDEK(database:
|
|
42
|
+
export declare function initializeAccountDEK(database: CorsairDatabase, integrationName: string, tenantId: string, kek: string): Promise<string>;
|
|
43
43
|
//# sourceMappingURL=key-manager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"key-manager.d.ts","sourceRoot":"","sources":["../../../core/auth/key-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"key-manager.d.ts","sourceRoot":"","sources":["../../../core/auth/key-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAU9C,OAAO,KAAK,EAEX,oBAAoB,EAEpB,wBAAwB,EACxB,MAAM,SAAS,CAAC;AAMjB,MAAM,MAAM,4BAA4B,CAAC,CAAC,SAAS,SAAS,IAAI;IAC/D,QAAQ,EAAE,CAAC,CAAC;IACZ,eAAe,EAAE,MAAM,CAAC;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,eAAe,CAAC;CAC1B,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CAAC,CAAC,SAAS,SAAS,EAC9D,OAAO,EAAE,4BAA4B,CAAC,CAAC,CAAC,GACtC,wBAAwB,CAAC,CAAC,CAAC,CAwE7B;AAMD,MAAM,MAAM,wBAAwB,CAAC,CAAC,SAAS,SAAS,IAAI;IAC3D,QAAQ,EAAE,CAAC,CAAC;IACZ,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,eAAe,CAAC;CAC1B,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,SAAS,EAC1D,OAAO,EAAE,wBAAwB,CAAC,CAAC,CAAC,GAClC,oBAAoB,CAAC,CAAC,CAAC,CAuGzB;AAMD;;;GAGG;AACH,wBAAsB,wBAAwB,CAC7C,QAAQ,EAAE,eAAe,EACzB,eAAe,EAAE,MAAM,EACvB,GAAG,EAAE,MAAM,GACT,OAAO,CAAC,MAAM,CAAC,CAwBjB;AAED;;;GAGG;AACH,wBAAsB,oBAAoB,CACzC,QAAQ,EAAE,eAAe,EACzB,eAAe,EAAE,MAAM,EACvB,QAAQ,EAAE,MAAM,EAChB,GAAG,EAAE,MAAM,GACT,OAAO,CAAC,MAAM,CAAC,CAqCjB"}
|
|
@@ -17,10 +17,11 @@ export function createIntegrationKeyManager(options) {
|
|
|
17
17
|
getIntegration: async () => {
|
|
18
18
|
if (cachedIntegration)
|
|
19
19
|
return cachedIntegration;
|
|
20
|
-
const integration = await database.
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
const integration = await database.db
|
|
21
|
+
.selectFrom('corsair_integrations')
|
|
22
|
+
.selectAll()
|
|
23
|
+
.where('name', '=', integrationName)
|
|
24
|
+
.executeTakeFirst();
|
|
24
25
|
if (!integration) {
|
|
25
26
|
throw new Error(`Integration "${integrationName}" not found. Make sure to create the integration first.`);
|
|
26
27
|
}
|
|
@@ -33,15 +34,15 @@ export function createIntegrationKeyManager(options) {
|
|
|
33
34
|
},
|
|
34
35
|
updateIntegration: async (data) => {
|
|
35
36
|
const integration = await ctx.getIntegration();
|
|
36
|
-
await database.
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
data: {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
37
|
+
await database.db
|
|
38
|
+
.updateTable('corsair_integrations')
|
|
39
|
+
.set({
|
|
40
|
+
...(data.config !== undefined ? { config: data.config } : {}),
|
|
41
|
+
...(data.dek !== undefined ? { dek: data.dek } : {}),
|
|
42
|
+
updated_at: new Date(),
|
|
43
|
+
})
|
|
44
|
+
.where('id', '=', integration.id)
|
|
45
|
+
.execute();
|
|
45
46
|
// Invalidate cache
|
|
46
47
|
cachedIntegration = null;
|
|
47
48
|
},
|
|
@@ -74,10 +75,11 @@ export function createAccountKeyManager(options) {
|
|
|
74
75
|
const getIntegration = async () => {
|
|
75
76
|
if (cachedIntegration)
|
|
76
77
|
return cachedIntegration;
|
|
77
|
-
const integration = await database.
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
const integration = await database.db
|
|
79
|
+
.selectFrom('corsair_integrations')
|
|
80
|
+
.selectAll()
|
|
81
|
+
.where('name', '=', integrationName)
|
|
82
|
+
.executeTakeFirst();
|
|
81
83
|
if (!integration) {
|
|
82
84
|
throw new Error(`Integration "${integrationName}" not found. Make sure to create the integration first.`);
|
|
83
85
|
}
|
|
@@ -97,13 +99,12 @@ export function createAccountKeyManager(options) {
|
|
|
97
99
|
if (cachedAccount)
|
|
98
100
|
return cachedAccount;
|
|
99
101
|
const integration = await getIntegration();
|
|
100
|
-
const account = await database.
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
});
|
|
102
|
+
const account = await database.db
|
|
103
|
+
.selectFrom('corsair_accounts')
|
|
104
|
+
.selectAll()
|
|
105
|
+
.where('tenant_id', '=', tenantId)
|
|
106
|
+
.where('integration_id', '=', integration.id)
|
|
107
|
+
.executeTakeFirst();
|
|
107
108
|
if (!account) {
|
|
108
109
|
throw new Error(`Account not found for tenant "${tenantId}" and integration "${integrationName}". Make sure to create the account first.`);
|
|
109
110
|
}
|
|
@@ -116,15 +117,15 @@ export function createAccountKeyManager(options) {
|
|
|
116
117
|
},
|
|
117
118
|
updateAccount: async (data) => {
|
|
118
119
|
const account = await ctx.getAccount();
|
|
119
|
-
await database.
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
data: {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
120
|
+
await database.db
|
|
121
|
+
.updateTable('corsair_accounts')
|
|
122
|
+
.set({
|
|
123
|
+
...(data.config !== undefined ? { config: data.config } : {}),
|
|
124
|
+
...(data.dek !== undefined ? { dek: data.dek } : {}),
|
|
125
|
+
updated_at: new Date(),
|
|
126
|
+
})
|
|
127
|
+
.where('id', '=', account.id)
|
|
128
|
+
.execute();
|
|
128
129
|
// Invalidate cache
|
|
129
130
|
cachedAccount = null;
|
|
130
131
|
},
|
|
@@ -149,23 +150,24 @@ export function createAccountKeyManager(options) {
|
|
|
149
150
|
* Call this when creating a new integration or when setting up encryption for the first time.
|
|
150
151
|
*/
|
|
151
152
|
export async function initializeIntegrationDEK(database, integrationName, kek) {
|
|
152
|
-
const integration = await database.
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
153
|
+
const integration = await database.db
|
|
154
|
+
.selectFrom('corsair_integrations')
|
|
155
|
+
.selectAll()
|
|
156
|
+
.where('name', '=', integrationName)
|
|
157
|
+
.executeTakeFirst();
|
|
156
158
|
if (!integration) {
|
|
157
159
|
throw new Error(`Integration "${integrationName}" not found.`);
|
|
158
160
|
}
|
|
159
161
|
const dek = generateDEK();
|
|
160
162
|
const encryptedDek = await encryptDEK(dek, kek);
|
|
161
|
-
await database.
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
163
|
+
await database.db
|
|
164
|
+
.updateTable('corsair_integrations')
|
|
165
|
+
.set({
|
|
166
|
+
dek: encryptedDek,
|
|
167
|
+
updated_at: new Date(),
|
|
168
|
+
})
|
|
169
|
+
.where('id', '=', integration.id)
|
|
170
|
+
.execute();
|
|
169
171
|
return dek;
|
|
170
172
|
}
|
|
171
173
|
/**
|
|
@@ -173,32 +175,32 @@ export async function initializeIntegrationDEK(database, integrationName, kek) {
|
|
|
173
175
|
* Call this when creating a new account or when setting up encryption for the first time.
|
|
174
176
|
*/
|
|
175
177
|
export async function initializeAccountDEK(database, integrationName, tenantId, kek) {
|
|
176
|
-
const integration = await database.
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
178
|
+
const integration = await database.db
|
|
179
|
+
.selectFrom('corsair_integrations')
|
|
180
|
+
.selectAll()
|
|
181
|
+
.where('name', '=', integrationName)
|
|
182
|
+
.executeTakeFirst();
|
|
180
183
|
if (!integration) {
|
|
181
184
|
throw new Error(`Integration "${integrationName}" not found.`);
|
|
182
185
|
}
|
|
183
|
-
const account = await database.
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
});
|
|
186
|
+
const account = await database.db
|
|
187
|
+
.selectFrom('corsair_accounts')
|
|
188
|
+
.selectAll()
|
|
189
|
+
.where('tenant_id', '=', tenantId)
|
|
190
|
+
.where('integration_id', '=', integration.id)
|
|
191
|
+
.executeTakeFirst();
|
|
190
192
|
if (!account) {
|
|
191
193
|
throw new Error(`Account not found for tenant "${tenantId}" and integration "${integrationName}".`);
|
|
192
194
|
}
|
|
193
195
|
const dek = generateDEK();
|
|
194
196
|
const encryptedDek = await encryptDEK(dek, kek);
|
|
195
|
-
await database.
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
197
|
+
await database.db
|
|
198
|
+
.updateTable('corsair_accounts')
|
|
199
|
+
.set({
|
|
200
|
+
dek: encryptedDek,
|
|
201
|
+
updated_at: new Date(),
|
|
202
|
+
})
|
|
203
|
+
.where('id', '=', account.id)
|
|
204
|
+
.execute();
|
|
203
205
|
return dek;
|
|
204
206
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-key.d.ts","sourceRoot":"","sources":["../../../../core/auth/methods/api-key.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACX,iBAAiB,EACjB,uBAAuB,EACvB,cAAc,EACd,qBAAqB,EACrB,MAAM,UAAU,CAAC;AAOlB,wBAAgB,iCAAiC,CAChD,GAAG,EAAE,qBAAqB,GACxB,cAAc,CAkChB;AAMD,wBAAgB,6BAA6B,CAC5C,GAAG,EAAE,iBAAiB,GACpB,uBAAuB,
|
|
1
|
+
{"version":3,"file":"api-key.d.ts","sourceRoot":"","sources":["../../../../core/auth/methods/api-key.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACX,iBAAiB,EACjB,uBAAuB,EACvB,cAAc,EACd,qBAAqB,EACrB,MAAM,UAAU,CAAC;AAOlB,wBAAgB,iCAAiC,CAChD,GAAG,EAAE,qBAAqB,GACxB,cAAc,CAkChB;AAMD,wBAAgB,6BAA6B,CAC5C,GAAG,EAAE,iBAAiB,GACpB,uBAAuB,CA4FzB"}
|
|
@@ -98,5 +98,12 @@ export function createApiKeyAccountKeyManager(ctx) {
|
|
|
98
98
|
setApiKey: async (apiKey) => {
|
|
99
99
|
await updateConfig({ api_key: apiKey });
|
|
100
100
|
},
|
|
101
|
+
getWebhookSignature: async () => {
|
|
102
|
+
const config = await getDecryptedConfig();
|
|
103
|
+
return config.webhook_signature ?? null;
|
|
104
|
+
},
|
|
105
|
+
setWebhookSignature: async (webhookSignature) => {
|
|
106
|
+
await updateConfig({ webhook_signature: webhookSignature });
|
|
107
|
+
},
|
|
101
108
|
};
|
|
102
109
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bot-token.d.ts","sourceRoot":"","sources":["../../../../core/auth/methods/bot-token.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACX,iBAAiB,EACjB,cAAc,EACd,yBAAyB,EACzB,qBAAqB,EACrB,MAAM,UAAU,CAAC;AAOlB,wBAAgB,mCAAmC,CAClD,GAAG,EAAE,qBAAqB,GACxB,cAAc,CAkChB;AAMD,wBAAgB,+BAA+B,CAC9C,GAAG,EAAE,iBAAiB,GACpB,yBAAyB,
|
|
1
|
+
{"version":3,"file":"bot-token.d.ts","sourceRoot":"","sources":["../../../../core/auth/methods/bot-token.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACX,iBAAiB,EACjB,cAAc,EACd,yBAAyB,EACzB,qBAAqB,EACrB,MAAM,UAAU,CAAC;AAOlB,wBAAgB,mCAAmC,CAClD,GAAG,EAAE,qBAAqB,GACxB,cAAc,CAkChB;AAMD,wBAAgB,+BAA+B,CAC9C,GAAG,EAAE,iBAAiB,GACpB,yBAAyB,CA4F3B"}
|
|
@@ -98,5 +98,12 @@ export function createBotTokenAccountKeyManager(ctx) {
|
|
|
98
98
|
setBotToken: async (botToken) => {
|
|
99
99
|
await updateConfig({ bot_token: botToken });
|
|
100
100
|
},
|
|
101
|
+
getWebhookSignature: async () => {
|
|
102
|
+
const config = await getDecryptedConfig();
|
|
103
|
+
return config.webhook_signature ?? null;
|
|
104
|
+
},
|
|
105
|
+
setWebhookSignature: async (webhookSignature) => {
|
|
106
|
+
await updateConfig({ webhook_signature: webhookSignature });
|
|
107
|
+
},
|
|
101
108
|
};
|
|
102
109
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oauth2.d.ts","sourceRoot":"","sources":["../../../../core/auth/methods/oauth2.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACX,iBAAiB,EACjB,qBAAqB,EACrB,uBAAuB,EAEvB,2BAA2B,EAC3B,MAAM,UAAU,CAAC;AAMlB,wBAAgB,iCAAiC,CAChD,GAAG,EAAE,qBAAqB,GACxB,2BAA2B,CAyG7B;AAMD,wBAAgB,6BAA6B,CAC5C,GAAG,EAAE,iBAAiB,GACpB,uBAAuB,
|
|
1
|
+
{"version":3,"file":"oauth2.d.ts","sourceRoot":"","sources":["../../../../core/auth/methods/oauth2.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACX,iBAAiB,EACjB,qBAAqB,EACrB,uBAAuB,EAEvB,2BAA2B,EAC3B,MAAM,UAAU,CAAC;AAMlB,wBAAgB,iCAAiC,CAChD,GAAG,EAAE,qBAAqB,GACxB,2BAA2B,CAyG7B;AAMD,wBAAgB,6BAA6B,CAC5C,GAAG,EAAE,iBAAiB,GACpB,uBAAuB,CAgKzB"}
|
|
@@ -198,6 +198,13 @@ export function createOAuth2AccountKeyManager(ctx) {
|
|
|
198
198
|
setScope: async (scope) => {
|
|
199
199
|
await updateConfig({ scope });
|
|
200
200
|
},
|
|
201
|
+
getWebhookSignature: async () => {
|
|
202
|
+
const config = await getDecryptedConfig();
|
|
203
|
+
return config.webhook_signature ?? null;
|
|
204
|
+
},
|
|
205
|
+
setWebhookSignature: async (webhookSignature) => {
|
|
206
|
+
await updateConfig({ webhook_signature: webhookSignature });
|
|
207
|
+
},
|
|
201
208
|
getIntegrationCredentials: async () => {
|
|
202
209
|
const config = await getDecryptedIntegrationConfig();
|
|
203
210
|
return {
|
|
@@ -37,18 +37,24 @@ export type OAuth2AccountConfig = {
|
|
|
37
37
|
expires_at?: number;
|
|
38
38
|
/** Optional: scopes granted */
|
|
39
39
|
scope?: string;
|
|
40
|
+
/** Optional: webhook signature for verifying incoming webhooks */
|
|
41
|
+
webhook_signature?: string;
|
|
40
42
|
};
|
|
41
43
|
/**
|
|
42
44
|
* Bot token account config - per-tenant bot token
|
|
43
45
|
*/
|
|
44
46
|
export type BotTokenAccountConfig = {
|
|
45
47
|
bot_token: string;
|
|
48
|
+
/** Optional: webhook signature for verifying incoming webhooks */
|
|
49
|
+
webhook_signature?: string;
|
|
46
50
|
};
|
|
47
51
|
/**
|
|
48
52
|
* API key account config - per-tenant API key
|
|
49
53
|
*/
|
|
50
54
|
export type ApiKeyAccountConfig = {
|
|
51
55
|
api_key: string;
|
|
56
|
+
/** Optional: webhook signature for verifying incoming webhooks */
|
|
57
|
+
webhook_signature?: string;
|
|
52
58
|
};
|
|
53
59
|
/**
|
|
54
60
|
* Maps auth types to their account-level config shapes
|
|
@@ -127,6 +133,14 @@ export type OAuth2AccountKeyManager = BaseKeyManager & {
|
|
|
127
133
|
setExpiresAt: (expiresAt: number | null) => Promise<void>;
|
|
128
134
|
getScope: () => Promise<string | null>;
|
|
129
135
|
setScope: (scope: string | null) => Promise<void>;
|
|
136
|
+
/**
|
|
137
|
+
* Get the webhook signature for verifying incoming webhooks.
|
|
138
|
+
*/
|
|
139
|
+
getWebhookSignature: () => Promise<string | null>;
|
|
140
|
+
/**
|
|
141
|
+
* Set the webhook signature for verifying incoming webhooks.
|
|
142
|
+
*/
|
|
143
|
+
setWebhookSignature: (webhookSignature: string | null) => Promise<void>;
|
|
130
144
|
/**
|
|
131
145
|
* Get the integration-level OAuth2 credentials (client_id, client_secret, redirect_url).
|
|
132
146
|
* Useful for token refresh flows that need access to both account and integration secrets.
|
|
@@ -139,6 +153,14 @@ export type OAuth2AccountKeyManager = BaseKeyManager & {
|
|
|
139
153
|
export type BotTokenAccountKeyManager = BaseKeyManager & {
|
|
140
154
|
getBotToken: () => Promise<string | null>;
|
|
141
155
|
setBotToken: (botToken: string) => Promise<void>;
|
|
156
|
+
/**
|
|
157
|
+
* Get the webhook signature for verifying incoming webhooks.
|
|
158
|
+
*/
|
|
159
|
+
getWebhookSignature: () => Promise<string | null>;
|
|
160
|
+
/**
|
|
161
|
+
* Set the webhook signature for verifying incoming webhooks.
|
|
162
|
+
*/
|
|
163
|
+
setWebhookSignature: (webhookSignature: string | null) => Promise<void>;
|
|
142
164
|
};
|
|
143
165
|
/**
|
|
144
166
|
* API key account-level key manager methods
|
|
@@ -146,6 +168,14 @@ export type BotTokenAccountKeyManager = BaseKeyManager & {
|
|
|
146
168
|
export type ApiKeyAccountKeyManager = BaseKeyManager & {
|
|
147
169
|
getApiKey: () => Promise<string | null>;
|
|
148
170
|
setApiKey: (apiKey: string) => Promise<void>;
|
|
171
|
+
/**
|
|
172
|
+
* Get the webhook signature for verifying incoming webhooks.
|
|
173
|
+
*/
|
|
174
|
+
getWebhookSignature: () => Promise<string | null>;
|
|
175
|
+
/**
|
|
176
|
+
* Set the webhook signature for verifying incoming webhooks.
|
|
177
|
+
*/
|
|
178
|
+
setWebhookSignature: (webhookSignature: string | null) => Promise<void>;
|
|
149
179
|
};
|
|
150
180
|
/**
|
|
151
181
|
* Maps auth types to their account key manager types
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../core/auth/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAM9C;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAE9D;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAE5D;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAClC,OAAO,EAAE,uBAAuB,CAAC;IACjC,SAAS,EAAE,yBAAyB,CAAC;IACrC,OAAO,EAAE,uBAAuB,CAAC;CACjC,CAAC;AAEF;;GAEG;AAC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,OAAO,CAAC,CAAC;QAChC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;KACnB,CAAC,CAAC;IACH,yCAAyC;IACzC,aAAa,EAAE,CAAC,IAAI,EAAE;QACrB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QACjC,GAAG,CAAC,EAAE,MAAM,CAAC;KACb,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpB,wFAAwF;IACxF,cAAc,EAAE,MAAM,OAAO,CAAC;QAC7B,EAAE,EAAE,MAAM,CAAC;QACX,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAChC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;KACnB,CAAC,CAAC;CACH,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ZodTypeAny } from 'zod';
|
|
2
|
-
import type {
|
|
2
|
+
import type { CorsairDatabase } from '../../db/kysely/database';
|
|
3
3
|
import type { CorsairPluginSchema, PluginEntityClients } from '../../db/orm';
|
|
4
4
|
import type { AccountKeyManagerFor, IntegrationKeyManagerFor } from '../auth/types';
|
|
5
5
|
import type { AuthTypes } from '../constants';
|
|
@@ -105,7 +105,7 @@ export type CorsairSingleTenantClient<Plugins extends readonly CorsairPlugin[]>
|
|
|
105
105
|
keys: InferAllIntegrationKeys<Plugins>;
|
|
106
106
|
};
|
|
107
107
|
export type BuildCorsairClientOptions = {
|
|
108
|
-
database:
|
|
108
|
+
database: CorsairDatabase | undefined;
|
|
109
109
|
tenantId: string | undefined;
|
|
110
110
|
kek: string | undefined;
|
|
111
111
|
rootErrorHandlers?: CorsairErrorHandler;
|
|
@@ -125,6 +125,6 @@ export declare function buildCorsairClient<const Plugins extends readonly Corsai
|
|
|
125
125
|
* @param kek - Key Encryption Key for envelope encryption
|
|
126
126
|
* @returns An object with key managers for each plugin
|
|
127
127
|
*/
|
|
128
|
-
export declare function buildIntegrationKeys<const Plugins extends readonly CorsairPlugin[]>(plugins: Plugins, database:
|
|
128
|
+
export declare function buildIntegrationKeys<const Plugins extends readonly CorsairPlugin[]>(plugins: Plugins, database: CorsairDatabase, kek: string): InferAllIntegrationKeys<Plugins>;
|
|
129
129
|
export {};
|
|
130
130
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../core/client/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../core/client/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACtC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAEhE,OAAO,KAAK,EACX,mBAAmB,EAEnB,mBAAmB,EACnB,MAAM,cAAc,CAAC;AAKtB,OAAO,KAAK,EACX,oBAAoB,EACpB,wBAAwB,EACxB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAEhE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,KAAK,EAAyB,aAAa,EAAE,MAAM,YAAY,CAAC;AACvE,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAOhF;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,CAC9B,MAAM,SAAS,mBAAmB,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,GAAG,SAAS,IACvE,MAAM,SAAS,mBAAmB,CAAC,MAAM,QAAQ,CAAC,GACnD;IAAE,EAAE,EAAE,mBAAmB,CAAC,QAAQ,CAAC,CAAA;CA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