1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-06 00:07:44 +01:00
unleash.unleash/src/lib/openapi/spec
Nuno Góis 383e522127
feat: Slack App addon (#4238)
https://linear.app/unleash/issue/2-1232/implement-first-iteration-of-the-new-slack-app-addon

This PR implements the first iteration of the new Slack App addon.
Unlike the old Slack addon, this one uses a Slack App (bot) that is
installed to Slack workspaces in order to post messages. This uses
`@slack/web-api`, which internally uses the latest Slack API endpoints
like `postMessage`.

This is currently behind a flag: `slackAppAddon`.

The current flow is that the Unleash Slack App is installed from
whatever source:
 - Unleash addons page;
 - Direct link;
 - https://unleash-slack-app.vercel.app/ (temporary URL);
 - Slack App Directory (in the future);
 - Etc;

After installed, we resolve the authorization to an `access_token` that
the user can paste into the Unleash Slack App addon configuration form.


https://github.com/Unleash/unleash/assets/14320932/6a6621b9-5b8a-4921-a279-30668be6d46c

Co-authored by: @daveleek

---------

Co-authored-by: David Leek <david@getunleash.io>
2023-07-14 09:49:34 +01:00
..
__snapshots__ docs: openapi schema specifications for Projects tag (#3571) 2023-05-19 09:07:23 +02:00
addon-create-update-schema.ts OpenAPI: addon operations (#3421) 2023-04-18 10:50:34 +00:00
addon-parameter-schema.ts OpenAPI: addon operations (#3421) 2023-04-18 10:50:34 +00:00
addon-schema.test.ts OpenAPI: addon operations (#3421) 2023-04-18 10:50:34 +00:00
addon-schema.ts OpenAPI: addon operations (#3421) 2023-04-18 10:50:34 +00:00
addon-type-schema.ts feat: Slack App addon (#4238) 2023-07-14 09:49:34 +01:00
addons-schema.test.ts OpenAPI: addon operations (#3421) 2023-04-18 10:50:34 +00:00
addons-schema.ts OpenAPI: addon operations (#3421) 2023-04-18 10:50:34 +00:00
admin-count-schema.ts fix: add confirmation to disable password login (#3829) 2023-05-23 15:56:34 +01:00
admin-features-query-schema.test.ts feature: add query support to features endpoint (#2693) 2022-12-16 12:05:18 +01:00
admin-features-query-schema.ts feature: add query support to features endpoint (#2693) 2022-12-16 12:05:18 +01:00
advanced-playground-environment-feature-schema.ts feat: advanced playground openapi (#3972) 2023-06-14 11:05:08 +02:00
advanced-playground-feature-schema.ts feat: advanced playground openapi (#3972) 2023-06-14 11:05:08 +02:00
advanced-playground-request-schema.ts fix: disallow empty list of envs and invalid env names in advanced playground (#4060) 2023-06-22 09:01:10 +00:00
advanced-playground-response-schema.ts feat: advanced playground openapi (#3972) 2023-06-14 11:05:08 +02:00
api-token-schema.test.ts docs: openapi schema specifications for Projects tag (#3571) 2023-05-19 09:07:23 +02:00
api-token-schema.ts docs: openapi schema specifications for Projects tag (#3571) 2023-05-19 09:07:23 +02:00
api-tokens-schema.ts openapi: update API tokens tag (#4137) 2023-07-06 07:30:31 +00:00
application-schema.ts docs: Metrics tag openapi docs (#3572) 2023-04-26 12:10:57 +02:00
applications-schema.ts docs: Metrics tag openapi docs (#3572) 2023-04-26 12:10:57 +02:00
batch-features-schema.ts openapi: update misc 'features'-tagged endpoints (#4192) 2023-07-11 14:17:10 +02:00
batch-stale-schema.ts openapi: update misc 'features'-tagged endpoints (#4192) 2023-07-11 14:17:10 +02:00
bulk-metrics-schema.ts docs: Metrics tag openapi docs (#3572) 2023-04-26 12:10:57 +02:00
bulk-registration-schema.ts docs: Added docs for edge endpoints (#3501) 2023-04-14 15:39:39 +02:00
bulk-toggle-features-schema.ts feat: create stubs for bulk toggle (#3792) 2023-05-17 10:21:08 +02:00
change-password-schema.test.ts
change-password-schema.ts docs: Auth tag (#4126) 2023-07-04 08:31:54 +00:00
client-application-schema.test.ts
client-application-schema.ts docs: OpenAPI Client tag (#3979) 2023-06-14 12:19:00 +00:00
client-feature-schema.ts feat: strategy variant schema openapi (#4232) 2023-07-13 13:50:03 +02:00
client-features-query-schema.test.ts
client-features-query-schema.ts docs: OpenAPI Client tag (#3979) 2023-06-14 12:19:00 +00:00
client-features-schema.test.ts docs: OpenAPI Client tag (#3979) 2023-06-14 12:19:00 +00:00
client-features-schema.ts feat: strategy variant schema openapi (#4232) 2023-07-13 13:50:03 +02:00
client-metrics-env-schema.ts docs: Metrics tag openapi docs (#3572) 2023-04-26 12:10:57 +02:00
client-metrics-schema.test.ts feat: metrics for variants (#3685) 2023-05-05 11:10:54 +03:00
client-metrics-schema.ts docs: mark 'yes' and no as required, add more details to variants (#3984) 2023-06-15 07:14:17 +00:00
clone-feature-schema.ts
constraint-schema.test.ts
constraint-schema.ts fix: min items was breaking import (#4219) 2023-07-11 12:42:33 +02:00
context-field-schema.test.ts
context-field-schema.ts docs: Context api tag (#4117) 2023-06-29 14:04:48 +02:00
context-field-strategies-schema.ts openapi: strategies tag (#4116) 2023-07-04 14:21:09 +02:00
context-fields-schema.ts docs: Context api tag (#4117) 2023-06-29 14:04:48 +02:00
create-api-token-schema.ts openapi: update API tokens tag (#4137) 2023-07-06 07:30:31 +00:00
create-application-schema.ts fix: allow empty appName as it may come in the url (#3953) 2023-06-12 10:15:00 +02:00
create-feature-schema.ts
create-feature-strategy-schema.ts feat: strategy variant schema openapi (#4232) 2023-07-13 13:50:03 +02:00
create-invited-user-schema.ts
create-strategy-schema.ts openapi: strategies tag (#4116) 2023-07-04 14:21:09 +02:00
create-strategy-variant-schema.ts feat: strategy variant schema openapi (#4232) 2023-07-13 13:50:03 +02:00
create-user-response-schema.ts feat: openapi schema for user admin (#4146) 2023-07-06 08:24:46 +02:00
create-user-schema.ts feat: openapi schema for user admin (#4146) 2023-07-06 08:24:46 +02:00
date-schema.ts
edge-token-schema.ts docs: Added docs for edge endpoints (#3501) 2023-04-14 15:39:39 +02:00
email-schema.test.ts
email-schema.ts docs: Auth tag (#4126) 2023-07-04 08:31:54 +00:00
environment-project-schema.ts feat: strategy variant schema openapi (#4232) 2023-07-13 13:50:03 +02:00
environment-schema.ts docs: Flesh out openapi for tag: Environments (#3440) 2023-04-04 15:45:34 +02:00
environments-project-schema.ts docs: Flesh out openapi for tag: Environments (#3440) 2023-04-04 15:45:34 +02:00
environments-schema.ts
event-schema.test.ts
event-schema.ts Feat/add strategy update event on strategy ordering (#4234) 2023-07-14 04:46:13 +03:00
events-schema.test.ts
events-schema.ts docs: Events tag (#4152) 2023-07-06 08:57:09 +00:00
export-query-parameters.ts
export-query-schema.test.ts Export with strategies (#2877) 2023-01-11 15:00:20 +00:00
export-query-schema.ts chore: document endpoint tagged Unstable (#4118) 2023-07-04 14:41:16 +00:00
export-result-schema.test.ts Export tag types (#3026) 2023-02-01 13:14:49 +02:00
export-result-schema.ts feat: strategy variant schema openapi (#4232) 2023-07-13 13:50:03 +02:00
feature-environment-metrics-schema.ts feat: metrics for variants (#3685) 2023-05-05 11:10:54 +03:00
feature-environment-schema.test.ts fix feature-schema.ts (#2729) 2023-01-11 10:53:43 +02:00
feature-environment-schema.ts feat: strategy variant schema openapi (#4232) 2023-07-13 13:50:03 +02:00
feature-events-schema.test.ts
feature-events-schema.ts docs: Events tag (#4152) 2023-07-06 08:57:09 +00:00
feature-metrics-schema.test.ts
feature-metrics-schema.ts docs: Metrics tag openapi docs (#3572) 2023-04-26 12:10:57 +02:00
feature-schema.test.ts docs: OpenAPI Client tag (#3979) 2023-06-14 12:19:00 +00:00
feature-schema.ts feat: strategy variant schema openapi (#4232) 2023-07-13 13:50:03 +02:00
feature-strategy-schema.ts feat: strategy variant schema openapi (#4232) 2023-07-13 13:50:03 +02:00
feature-strategy-segment-schema.ts
feature-tag-schema.ts docs: improve open api (#3535) 2023-04-18 08:50:36 +02:00
feature-type-schema.test.ts
feature-type-schema.ts openapi: update misc 'features'-tagged endpoints (#4192) 2023-07-11 14:17:10 +02:00
feature-types-schema.ts openapi: update misc 'features'-tagged endpoints (#4192) 2023-07-11 14:17:10 +02:00
feature-usage-schema.test.ts
feature-usage-schema.ts docs: Metrics tag openapi docs (#3572) 2023-04-26 12:10:57 +02:00
feature-variants-schema.ts
features-schema.test.ts
features-schema.ts feat: strategy variant schema openapi (#4232) 2023-07-13 13:50:03 +02:00
feedback-create-schema.ts openapi: document operations for admin ui feedback (#4226) 2023-07-13 13:27:52 +02:00
feedback-response-schema.ts openapi: document operations for admin ui feedback (#4226) 2023-07-13 13:27:52 +02:00
feedback-update-schema.ts openapi: document operations for admin ui feedback (#4226) 2023-07-13 13:27:52 +02:00
group-schema.ts feat: root roles from groups (#3559) 2023-04-20 12:29:30 +02:00
group-user-model-schema.ts UX additions to groups SSO syncing (#2200) 2022-10-20 10:47:19 +03:00
groups-schema.test.ts
groups-schema.ts
health-check-schema.ts docs: Health check endpoint (#3959) 2023-06-12 12:56:45 +00:00
health-overview-schema.ts feat: strategy variant schema openapi (#4232) 2023-07-13 13:50:03 +02:00
health-report-schema.ts docs: openapi schema specifications for Projects tag (#3571) 2023-05-19 09:07:23 +02:00
id-schema.ts feat: openapi schema for user admin (#4146) 2023-07-06 08:24:46 +02:00
import-toggles-schema.ts feat: strategy variant schema openapi (#4232) 2023-07-13 13:50:03 +02:00
import-toggles-validate-item-schema.ts chore: document endpoint tagged Unstable (#4118) 2023-07-04 14:41:16 +00:00
import-toggles-validate-schema.ts chore: document endpoint tagged Unstable (#4118) 2023-07-04 14:41:16 +00:00
index.ts feat: strategy variant schema openapi (#4232) 2023-07-13 13:50:03 +02:00
instance-admin-stats-schema.test.ts Feat/stats service (#2211) 2022-10-25 13:10:27 +02:00
instance-admin-stats-schema.ts docs: Instance admin (#3961) 2023-06-13 12:10:21 +00:00
legal-value-schema.ts docs: Context api tag (#4117) 2023-06-29 14:04:48 +02:00
login-schema.ts docs: Auth tag (#4126) 2023-07-04 08:31:54 +00:00
maintenance-schema.ts feat: Maintenance openapi (#3478) 2023-04-10 09:55:29 +02:00
me-schema.test.ts
me-schema.ts openapi: document operations for admin ui feedback (#4226) 2023-07-13 13:27:52 +02:00
name-schema.ts openapi: strategies tag (#4116) 2023-07-04 14:21:09 +02:00
override-schema.ts docs: OpenAPI Client tag (#3979) 2023-06-14 12:19:00 +00:00
parameters-schema.ts OpenAPI - feature environment endpoints (#4166) 2023-07-07 14:31:03 +02:00
password-schema.ts feat: openapi schema for user admin (#4146) 2023-07-06 08:24:46 +02:00
pat-schema.ts docs: openapi schema for PATs (#3605) 2023-05-11 09:11:17 +02:00
patch-schema.ts
patches-schema.ts
pats-schema.ts docs: openapi schema for PATs (#3605) 2023-05-11 09:11:17 +02:00
permission-schema.ts feat: user openapi spec (#4162) 2023-07-06 15:27:43 +02:00
playground-constraint-schema.ts
playground-feature-schema.test.ts feat: add "edit" link to playground strategies (#4027) 2023-06-22 07:19:35 +00:00
playground-feature-schema.ts feat: advanced playground openapi (#3972) 2023-06-14 11:05:08 +02:00
playground-request-schema.test.ts
playground-request-schema.ts test: meta schema rules should not check description on ref (#3980) 2023-06-14 12:29:09 +02:00
playground-response-schema.test.ts
playground-response-schema.ts
playground-segment-schema.ts
playground-strategy-schema.ts feat: add "edit" link to playground strategies (#4027) 2023-06-22 07:19:35 +00:00
profile-schema.test.ts
profile-schema.ts feat: user openapi spec (#4162) 2023-07-06 15:27:43 +02:00
project-environment-schema.ts feat: strategy variant schema openapi (#4232) 2023-07-13 13:50:03 +02:00
project-overview-schema.ts feat: strategy variant schema openapi (#4232) 2023-07-13 13:50:03 +02:00
project-schema.test.ts feat: Gradual schema improvements (#3075) 2023-02-10 15:05:57 +01:00
project-schema.ts Fix: make stickiness accept any string (#3408) 2023-03-28 16:42:16 +03:00
project-stats-schema.ts fix: refactor calculate time to prod (#3333) 2023-03-16 15:45:24 +01:00
projects-schema.ts feat: Gradual schema improvements (#3075) 2023-02-10 15:05:57 +01:00
proxy-client-schema.ts feat: user openapi spec (#4162) 2023-07-06 15:27:43 +02:00
proxy-feature-schema.ts feat: user openapi spec (#4162) 2023-07-06 15:27:43 +02:00
proxy-features-schema.ts feat: user openapi spec (#4162) 2023-07-06 15:27:43 +02:00
public-signup-schema.test.ts
public-signup-token-create-schema.ts chore: docs for public signup token tag (#3486) 2023-04-21 11:26:54 +00:00
public-signup-token-schema.ts chore: docs for public signup token tag (#3486) 2023-04-21 11:26:54 +00:00
public-signup-token-update-schema.ts chore: docs for public signup token tag (#3486) 2023-04-21 11:26:54 +00:00
public-signup-tokens-schema.ts chore: docs for public signup token tag (#3486) 2023-04-21 11:26:54 +00:00
push-variants-schema.ts feat: Add ability to push variants to multiple environments (#2914) 2023-01-20 10:30:20 +01:00
requests-per-second-schema.ts docs: add description to requests per seconds schemas (#4182) 2023-07-10 08:18:08 +00:00
requests-per-second-segmented-schema.ts docs: add description to requests per seconds schemas (#4182) 2023-07-10 08:18:08 +00:00
reset-password-schema.ts
role-schema.test.ts
role-schema.ts docs: Auth tag (#4126) 2023-07-04 08:31:54 +00:00
sdk-context-schema.test.ts
sdk-context-schema.ts feat: advanced playground openapi (#3972) 2023-06-14 11:05:08 +02:00
search-events-schema.ts docs: Events tag (#4152) 2023-07-06 08:57:09 +00:00
segment-schema.ts fix: segments schemas (#3525) 2023-04-17 10:51:48 +02:00
set-strategy-sort-order-schema.test.ts
set-strategy-sort-order-schema.ts
set-ui-config-schema.ts
sort-order-schema.test.ts
sort-order-schema.ts
splash-request-schema.ts openapi: update the splash endpoints and schemas for splash (#4227) 2023-07-13 08:29:54 +00:00
splash-response-schema.ts openapi: update the splash endpoints and schemas for splash (#4227) 2023-07-13 08:29:54 +00:00
state-schema.ts feat: strategy variant schema openapi (#4232) 2023-07-13 13:50:03 +02:00
strategies-schema.ts openapi: strategies tag (#4116) 2023-07-04 14:21:09 +02:00
strategy-schema.test.ts bug: mark descriptions on strategies as nullable (#4156) 2023-07-06 13:39:23 +02:00
strategy-schema.ts bug: mark descriptions on strategies as nullable (#4156) 2023-07-06 13:39:23 +02:00
strategy-variant-schema.ts feat: strategy variant schema openapi (#4232) 2023-07-13 13:50:03 +02:00
tag-schema.ts docs: improve open api (#3535) 2023-04-18 08:50:36 +02:00
tag-type-schema.ts docs: add descriptions and examples to tag schemas (#4194) 2023-07-11 10:02:00 +02:00
tag-types-schema.test.ts
tag-types-schema.ts docs: add descriptions and examples to tag schemas (#4194) 2023-07-11 10:02:00 +02:00
tag-with-version-schema.ts docs: add descriptions and examples to tag schemas (#4194) 2023-07-11 10:02:00 +02:00
tags-bulk-add-schema.test.ts feat: bulk update tags (#3274) 2023-03-09 11:58:06 +02:00
tags-bulk-add-schema.ts chore: amend open api tags descriptions and examples (#3519) 2023-04-14 12:26:19 +02:00
tags-schema.ts chore: amend open api tags descriptions and examples (#3519) 2023-04-14 12:26:19 +02:00
telemetry-settings-schema.ts feat/telemetry opt out (#4035) 2023-06-30 08:43:58 +02:00
toggle-maintenance-schema.ts feat: Maintenance openapi (#3478) 2023-04-10 09:55:29 +02:00
token-string-list-schema.ts docs: Added docs for edge endpoints (#3501) 2023-04-14 15:39:39 +02:00
token-user-schema.test.ts
token-user-schema.ts docs: Auth tag (#4126) 2023-07-04 08:31:54 +00:00
ui-config-schema.test.ts
ui-config-schema.ts feat: message banner (variants) (#3788) 2023-05-18 09:38:59 +01:00
update-api-token-schema.ts openapi: update API tokens tag (#4137) 2023-07-06 07:30:31 +00:00
update-feature-schema.ts refactor: add soft response schema validation (#1657) 2022-06-08 08:01:14 +02:00
update-feature-strategy-schema.ts Update OpenAPI feature strategies (#4175) 2023-07-07 15:45:04 +00:00
update-strategy-schema.ts openapi: strategies tag (#4116) 2023-07-04 14:21:09 +02:00
update-tag-type-schema.ts docs: add descriptions and examples to tag schemas (#4194) 2023-07-11 10:02:00 +02:00
update-tags-schema.test.ts feat: bulk update tags (#3274) 2023-03-09 11:58:06 +02:00
update-tags-schema.ts docs: improve open api (#3535) 2023-04-18 08:50:36 +02:00
update-user-schema.ts feat: openapi schema for user admin (#4146) 2023-07-06 08:24:46 +02:00
upsert-context-field-schema.ts
upsert-segment-schema.ts fix: segments schemas (#3525) 2023-04-17 10:51:48 +02:00
user-schema.test.ts refactor: remove bootstrap endpoint (#1900) 2022-08-09 15:58:27 +02:00
user-schema.ts feat: openapi schema for user admin (#4146) 2023-07-06 08:24:46 +02:00
users-groups-base-schema.test.ts
users-groups-base-schema.ts
users-schema.test.ts
users-schema.ts feat: openapi schema for user admin (#4146) 2023-07-06 08:24:46 +02:00
users-search-schema.test.ts
users-search-schema.ts refactor: add schemas to user admin controller (#1692) 2022-06-22 14:55:43 +02:00
validate-feature-schema.ts openapi: update misc 'features'-tagged endpoints (#4192) 2023-07-11 14:17:10 +02:00
validate-password-schema.test.ts
validate-password-schema.ts docs: Auth tag (#4126) 2023-07-04 08:31:54 +00:00
validate-tag-type-schema.ts docs: add descriptions and examples to tag schemas (#4194) 2023-07-11 10:02:00 +02:00
validated-edge-tokens-schema.ts docs: Added docs for edge endpoints (#3501) 2023-04-14 15:39:39 +02:00
variant-flag-schema.ts feat: message banner (variants) (#3788) 2023-05-18 09:38:59 +01:00
variant-schema.ts feat: strategy variant schema openapi (#4232) 2023-07-13 13:50:03 +02:00
variants-schema.ts
version-schema.ts