Skip to content

Commit 226a4bd

Browse files
committed
link updates to point to new site
1 parent 740f316 commit 226a4bd

File tree

727 files changed

+1207
-1220
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

727 files changed

+1207
-1220
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ All released versions are available on the Maven Central repositories. The lates
8686
| groupId:artifactId | Description |
8787
|------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
8888
| [**com.slack.api:bolt**](https://search.maven.org/search?q=g:com.slack.api%20AND%20a:bolt) | Bolt is a framework that offers an abstraction layer to build Slack apps safely and quickly. The most commonly used Servlet environment is supported out-of-the-box. |
89-
| [**com.slack.api:bolt-socket-mode**](https://search.maven.org/search?q=g:com.slack.api%20AND%20a:bolt-socket-mode) | This module offers a handy way to run Bolt apps through [Socket Mode](https://api.slack.com/) connections. |
89+
| [**com.slack.api:bolt-socket-mode**](https://search.maven.org/search?q=g:com.slack.api%20AND%20a:bolt-socket-mode) | This module offers a handy way to run Bolt apps through [Socket Mode](https://docs.slack.dev/apis/events-api/using-socket-mode) connections. |
9090
| [**com.slack.api:bolt-jetty**](https://search.maven.org/search?q=g:com.slack.api%20AND%20a:bolt-jetty) | This module offers a handy way to run Bolt apps on the [Java EE compatible Jetty HTTP server (9.x)](https://www.eclipse.org/jetty/). |
9191
| [**com.slack.api:bolt-jakarta-jetty**](https://search.maven.org/search?q=g:com.slack.api%20AND%20a:bolt-jakarta-jetty) | This module offers a handy way to run Bolt apps on the [Jakarta EE compatible Jetty HTTP server](https://www.eclipse.org/jetty/). |
9292
| [**com.slack.api:bolt-aws-lambda**](https://search.maven.org/search?q=g:com.slack.api%20AND%20a:bolt-aws-lambda) | This module offers a handy way to run Bolt apps on AWS [API Gateway](https://aws.amazon.com/api-gateway/) + [Lambda](https://aws.amazon.com/lambda/). |
@@ -100,7 +100,7 @@ All released versions are available on the Maven Central repositories. The lates
100100

101101
|groupId:artifactId|Description|
102102
|---|---|
103-
|[**com.slack.api:slack-api-model**](https://search.maven.org/search?q=g:com.slack.api%20AND%20a:slack-api-model)|This is a collection of the classes representing the [Slack core objects](https://api.slack.com/types) such as conversations, messages, users, blocks, and surfaces. As this is an essential part of the SDK, all other modules depend on this.|
103+
|[**com.slack.api:slack-api-model**](https://search.maven.org/search?q=g:com.slack.api%20AND%20a:slack-api-model)|This is a collection of the classes representing the [Slack core objects](https://docs.slack.dev/reference/objects) such as conversations, messages, users, blocks, and surfaces. As this is an essential part of the SDK, all other modules depend on this.|
104104
|[**com.slack.api:slack-api-model-kotlin-extension**](https://search.maven.org/search?q=g:com.slack.api%20AND%20a:slack-api-model-kotlin-extension)|This contains the Block Kit Kotlin DSL builder, which allows you to define block kit structures via a Kotlin-native DSL.|
105105
|[**com.slack.api:slack-api-client**](https://search.maven.org/search?q=g:com.slack.api%20AND%20a:slack-api-client)|This is a collection of the Slack API clients. The supported are Basic API Methods, Socket Mode, RTM (Real Time Messaging) API, SCIM API, Audit Logs API, and Status API.|
106106
|[**com.slack.api:slack-api-client-kotlin-extension**](https://search.maven.org/search?q=g:com.slack.api%20AND%20a:slack-api-client-kotlin-extension)|This contains extension methods for various slack client message builders so you can seamlessly use the Block Kit Kotlin DSL directly on the Java message builders.|

bolt-jakarta-servlet/src/test/java/test_locally/servlet_test/InvalidRequestPatternTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public class InvalidRequestPatternTest {
3333

3434
@Before
3535
public void setUp() {
36-
// https://api.slack.com/docs/verifying-requests-from-slack
36+
// https://docs.slack.dev/authentication/verifying-requests-from-slack
3737
String signingSecret = appConfig.getSigningSecret();
3838
if (signingSecret == null || signingSecret.trim().isEmpty()) {
3939
// This is just a random value to avoid SlackSignature.Generator's initialization error.

bolt-jakarta-servlet/src/test/java/test_locally/servlet_test/SlashCommandTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public void weather() throws Exception {
9494
ServletTester tester = TestUtils.getServletTester(webApp);
9595
HttpTester.Request request = TestUtils.prepareRequest();
9696

97-
// https://api.slack.com/slash-commands
97+
// https://docs.slack.dev/interactivity/implementing-slash-commands
9898
request.setContent("token=gIkuvaNzQIHg97ATvDxqgjtO" +
9999
"&team_id=T0001" +
100100
"&team_domain=example" +
@@ -122,7 +122,7 @@ public void echo() throws Exception {
122122
ServletTester tester = TestUtils.getServletTester(webApp);
123123
HttpTester.Request request = TestUtils.prepareRequest();
124124

125-
// https://api.slack.com/slash-commands
125+
// https://docs.slack.dev/interactivity/implementing-slash-commands
126126
request.setContent("token=gIkuvaNzQIHg97ATvDxqgjtO" +
127127
"&team_id=T0001" +
128128
"&team_domain=example" +

bolt-kotlin-examples/src/main/kotlin/examples/docs/AppHome.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ fun main() {
1616
.singleTeamBotToken("xoxb-xxx")
1717
.build())
1818

19-
// https://api.slack.com/events/app_home_opened
19+
// https://docs.slack.dev/reference/events/app_home_opened
2020
app.event(AppHomeOpenedEvent::class.java) { event, ctx ->
2121
// Build a Home tab view
2222
val now = ZonedDateTime.now()

bolt-kotlin-examples/src/main/kotlin/examples/oauth_flow/app.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ fun main() {
2929
}
3030

3131
val oauthConfig = ResourceLoader.loadAppConfig()
32-
// https://api.slack.com/authentication/migration
32+
// https://docs.slack.dev/legacy/legacy-app-migration/migrating-classic-apps
3333
oauthConfig.isClassicAppPermissionsEnabled = true
3434
val oauthApp = App(oauthConfig).asOAuthApp(true)
3535

bolt-kotlin-examples/src/main/kotlin/examples/oauth_flow/aws.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ fun main() {
3838
}
3939

4040
val oauthConfig = ResourceLoader.loadAppConfig()
41-
// https://api.slack.com/authentication/migration
41+
// https://docs.slack.dev/legacy/legacy-app-migration/migrating-classic-apps
4242
oauthConfig.isClassicAppPermissionsEnabled = true
4343
val oauthApp = App(oauthConfig).asOAuthApp(true)
4444

bolt-servlet/src/test/java/test_locally/servlet_test/InvalidRequestPatternTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public class InvalidRequestPatternTest {
3636

3737
@Before
3838
public void setUp() {
39-
// https://api.slack.com/docs/verifying-requests-from-slack
39+
// https://docs.slack.dev/authentication/verifying-requests-from-slack
4040
String signingSecret = appConfig.getSigningSecret();
4141
if (signingSecret == null || signingSecret.trim().isEmpty()) {
4242
// This is just a random value to avoid SlackSignature.Generator's initialization error.

bolt-servlet/src/test/java/test_locally/servlet_test/SlashCommandTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public void weather() throws Exception {
9393
ServletTester tester = TestUtils.getServletTester(webApp);
9494
HttpTester.Request request = TestUtils.prepareRequest();
9595

96-
// https://api.slack.com/slash-commands
96+
// https://docs.slack.dev/interactivity/implementing-slash-commands
9797
request.setContent("token=gIkuvaNzQIHg97ATvDxqgjtO" +
9898
"&team_id=T0001" +
9999
"&team_domain=example" +
@@ -121,7 +121,7 @@ public void echo() throws Exception {
121121
ServletTester tester = TestUtils.getServletTester(webApp);
122122
HttpTester.Request request = TestUtils.prepareRequest();
123123

124-
// https://api.slack.com/slash-commands
124+
// https://docs.slack.dev/interactivity/implementing-slash-commands
125125
request.setContent("token=gIkuvaNzQIHg97ATvDxqgjtO" +
126126
"&team_id=T0001" +
127127
"&team_domain=example" +

bolt/src/main/java/com/slack/api/bolt/App.java

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ protected List<Middleware> buildDefaultMiddlewareList(AppConfig config) {
102102

103103
// request verification
104104
if (config.isRequestVerificationEnabled()) {
105-
// https://api.slack.com/docs/verifying-requests-from-slack
105+
// https://docs.slack.dev/authentication/verifying-requests-from-slack
106106
String signingSecret = config.getSigningSecret();
107107
if (signingSecret == null || signingSecret.trim().isEmpty()) {
108108
// This is just a random value to avoid SlackSignature.Generator's initialization error.
@@ -161,7 +161,7 @@ public enum Status {
161161

162162
// -------------------------------------
163163
// Slash Commands
164-
// https://api.slack.com/interactivity/slash-commands
164+
// https://docs.slack.dev/interactivity/implementing-slash-commands
165165
// -------------------------------------
166166

167167
/**
@@ -171,7 +171,7 @@ public enum Status {
171171

172172
// -------------------------------------
173173
// Events API
174-
// https://api.slack.com/events-api
174+
// https://docs.slack.dev/apis/events-api
175175
// -------------------------------------
176176

177177
/**
@@ -188,7 +188,7 @@ public enum Status {
188188

189189
// -------------------------------------
190190
// Block Kit
191-
// https://api.slack.com/block-kit
191+
// https://docs.slack.dev/block-kit
192192
// -------------------------------------
193193

194194
/**
@@ -202,7 +202,7 @@ public enum Status {
202202

203203
// -------------------------------------
204204
// Modal Views
205-
// https://api.slack.com/surfaces/modals/using
205+
// https://docs.slack.dev/surfaces/modals
206206
// -------------------------------------
207207

208208
/**
@@ -216,7 +216,7 @@ public enum Status {
216216

217217
// -------------------------------------
218218
// Shortcuts
219-
// https://api.slack.com/interactivity
219+
// https://docs.slack.dev/interactivity/implementing-shortcuts
220220
// -------------------------------------
221221

222222
/**
@@ -231,7 +231,7 @@ public enum Status {
231231

232232
// -------------------------------------
233233
// Workflow Steps
234-
// https://api.slack.com/workflows/steps
234+
// https://docs.slack.dev/legacy/legacy-steps-from-apps
235235
// -------------------------------------
236236

237237
/**
@@ -243,7 +243,7 @@ public enum Status {
243243

244244
// -------------------------------------
245245
// Attachments
246-
// https://api.slack.com/messaging/composing/layouts#attachments
246+
// https://docs.slack.dev/legacy/legacy-dialogs
247247
// -------------------------------------
248248

249249
/**
@@ -253,7 +253,7 @@ public enum Status {
253253

254254
// -------------------------------------
255255
// Dialogs
256-
// https://api.slack.com/dialogs
256+
// https://docs.slack.dev/legacy/legacy-dialogs
257257
// -------------------------------------
258258

259259
/**
@@ -357,7 +357,7 @@ public String buildAuthorizeUrl(String state, String nonce) {
357357
AppConfig config = config();
358358
if (config.getClientId() == null) {
359359
log.warn("To enable th Slack OAuth flow, set config#clientId and so on properly. " +
360-
"Refer to https://api.slack.com/authentication for more information.");
360+
"Refer to https://docs.slack.dev/authentication for more information.");
361361
return null;
362362
}
363363
if (config.isStateValidationEnabled() && state == null) {
@@ -366,7 +366,7 @@ public String buildAuthorizeUrl(String state, String nonce) {
366366
}
367367
if (config.isOpenIDConnectEnabled() && config.getUserScope() == null) {
368368
log.warn("For OpenID Connect authorization, set config#userScope properly. " +
369-
"Refer to https://api.slack.com/authentication/sign-in-with-slack for more information.");
369+
"Refer to https://docs.slack.dev/authentication/sign-in-with-slack for more information.");
370370
return null;
371371
}
372372
if (config.isOpenIDConnectEnabled() && config.getScope() != null) {
@@ -378,7 +378,7 @@ public String buildAuthorizeUrl(String state, String nonce) {
378378
String redirectUriParam = redirectUriQueryParam(appConfig);
379379

380380
if (config.isClassicAppPermissionsEnabled()) {
381-
// https://api.slack.com/authentication/migration
381+
// https://docs.slack.dev/legacy/legacy-app-migration/migrating-classic-apps
382382
return "https://slack.com/oauth/authorize" +
383383
"?client_id=" + config.getClientId() +
384384
"&scope=" + scope +
@@ -622,7 +622,7 @@ public App assistant(Assistant assistant) {
622622

623623
// -------------
624624
// Events API
625-
// https://api.slack.com/events-api
625+
// https://docs.slack.dev/apis/events-api
626626

627627
public <E extends Event> App event(
628628
Class<E> eventClass, BoltEventHandler<E> handler) {
@@ -706,7 +706,7 @@ public App message(Pattern pattern, BoltEventHandler<MessageEvent> messageHandle
706706

707707
// -------------
708708
// Slash Commands
709-
// https://api.slack.com/interactivity/slash-commands
709+
// https://docs.slack.dev/interactivity/implementing-slash-commands
710710

711711
public App command(String command, SlashCommandHandler handler) {
712712
return command(Pattern.compile("^" + Pattern.quote(command) + "$"), handler);
@@ -722,7 +722,7 @@ public App command(Pattern command, SlashCommandHandler handler) {
722722

723723
// -------------
724724
// Block Kit
725-
// https://api.slack.com/block-kit
725+
// https://docs.slack.dev/block-kit
726726

727727
public App blockAction(String actionId, BlockActionHandler handler) {
728728
return blockAction(Pattern.compile("^" + Pattern.quote(actionId) + "$"), handler);
@@ -750,8 +750,8 @@ public App blockSuggestion(Pattern actionId, BlockSuggestionHandler handler) {
750750

751751
// -------------
752752
// Shortcuts
753-
// https://api.slack.com/interactivity
754-
// https://api.slack.com/interactivity/actions
753+
// https://docs.slack.dev/interactivity
754+
// https://docs.slack.dev/interactivity/implementing-shortcuts
755755

756756
public App globalShortcut(String callbackId, GlobalShortcutHandler handler) {
757757
return globalShortcut(Pattern.compile("^" + Pattern.quote(callbackId) + "$"), handler);
@@ -779,7 +779,7 @@ public App messageShortcut(Pattern callbackId, MessageShortcutHandler handler) {
779779

780780
// -------------
781781
// Modal Views
782-
// https://api.slack.com/surfaces/modals/using
782+
// https://docs.slack.dev/surfaces/modals
783783

784784
public App viewSubmission(String callbackId, ViewSubmissionHandler handler) {
785785
return viewSubmission(Pattern.compile("^" + Pattern.quote(callbackId) + "$"), handler);
@@ -807,26 +807,26 @@ public App viewClosed(Pattern callbackId, ViewClosedHandler handler) {
807807

808808
// -------------
809809
// Workflows: Steps from Apps
810-
// https://api.slack.com/workflows/steps
810+
// https://docs.slack.dev/legacy/legacy-steps-from-apps
811811

812812
/**
813-
* @deprecated Use new custom steps: https://api.slack.com/automation/functions/custom-bolt
813+
* @deprecated Use new custom steps: https://docs.slack.dev/workflows/workflow-steps
814814
*/
815815
@Deprecated
816816
public App step(WorkflowStep step) {
817817
return this.use(step);
818818
}
819819

820820
/**
821-
* @deprecated Use new custom steps: https://api.slack.com/automation/functions/custom-bolt
821+
* @deprecated Use new custom steps: https://docs.slack.dev/workflows/workflow-steps
822822
*/
823823
@Deprecated
824824
public App workflowStepEdit(String callbackId, WorkflowStepEditHandler handler) {
825825
return workflowStepEdit(Pattern.compile("^" + Pattern.quote(callbackId) + "$"), handler);
826826
}
827827

828828
/**
829-
* @deprecated Use new custom steps: https://api.slack.com/automation/functions/custom-bolt
829+
* @deprecated Use new custom steps: https://docs.slack.dev/workflows/workflow-steps
830830
*/
831831
@Deprecated
832832
public App workflowStepEdit(Pattern callbackId, WorkflowStepEditHandler handler) {
@@ -838,15 +838,15 @@ public App workflowStepEdit(Pattern callbackId, WorkflowStepEditHandler handler)
838838
}
839839

840840
/**
841-
* @deprecated Use new custom steps: https://api.slack.com/automation/functions/custom-bolt
841+
* @deprecated Use new custom steps: https://docs.slack.dev/workflows/workflow-steps
842842
*/
843843
@Deprecated
844844
public App workflowStepSave(String callbackId, WorkflowStepSaveHandler handler) {
845845
return workflowStepSave(Pattern.compile("^" + Pattern.quote(callbackId) + "$"), handler);
846846
}
847847

848848
/**
849-
* @deprecated Use new custom steps: https://api.slack.com/automation/functions/custom-bolt
849+
* @deprecated Use new custom steps: https://docs.slack.dev/workflows/workflow-steps
850850
*/
851851
@Deprecated
852852
public App workflowStepSave(Pattern callbackId, WorkflowStepSaveHandler handler) {
@@ -858,15 +858,15 @@ public App workflowStepSave(Pattern callbackId, WorkflowStepSaveHandler handler)
858858
}
859859

860860
/**
861-
* @deprecated Use new custom steps: https://api.slack.com/automation/functions/custom-bolt
861+
* @deprecated Use new custom steps: https://docs.slack.dev/workflows/workflow-steps
862862
*/
863863
@Deprecated
864864
public App workflowStepExecute(String pattern, WorkflowStepExecuteHandler handler) {
865865
return workflowStepExecute(Pattern.compile("^.*" + Pattern.quote(pattern) + ".*$"), handler);
866866
}
867867

868868
/**
869-
* @deprecated Use new custom steps: https://api.slack.com/automation/functions/custom-bolt
869+
* @deprecated Use new custom steps: https://docs.slack.dev/workflows/workflow-steps
870870
*/
871871
@Deprecated
872872
public App workflowStepExecute(Pattern pattern, WorkflowStepExecuteHandler handler) {
@@ -879,7 +879,7 @@ public App workflowStepExecute(Pattern pattern, WorkflowStepExecuteHandler handl
879879

880880
// -------------
881881
// Attachments
882-
// https://api.slack.com/messaging/composing/layouts#attachments
882+
// https://docs.slack.dev/messaging/formatting-message-text#building-attachments
883883

884884
public App attachmentAction(String callbackId, AttachmentActionHandler handler) {
885885
return attachmentAction(Pattern.compile("^" + Pattern.quote(callbackId) + "$"), handler);
@@ -895,7 +895,7 @@ public App attachmentAction(Pattern callbackId, AttachmentActionHandler handler)
895895

896896
// -------------
897897
// Dialogs
898-
// https://api.slack.com/dialogs
898+
// https://docs.slack.dev/legacy/legacy-dialogs
899899

900900
public App dialogSubmission(String callbackId, DialogSubmissionHandler handler) {
901901
return dialogSubmission(Pattern.compile("^" + Pattern.quote(callbackId) + "$"), handler);
@@ -1221,7 +1221,7 @@ protected Response runHandler(Request slackRequest) throws IOException, SlackApi
12211221
break;
12221222
}
12231223
case UrlVerification: {
1224-
// https://api.slack.com/events/url_verification
1224+
// https://docs.slack.dev/reference/events/url_verification
12251225
return Response.builder()
12261226
.statusCode(200)
12271227
.contentType("text/plain")

bolt/src/main/java/com/slack/api/bolt/AppConfig.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ private static SlackHttpClient buildSlackHttpClient() {
9191
@Builder.Default
9292
private String verificationToken = System.getenv(EnvVariableName.SLACK_VERIFICATION_TOKEN);
9393

94-
// https://api.slack.com/docs/oauth
94+
// https://docs.slack.dev/authentication/installing-with-oauth
9595

9696
public boolean isDistributedApp() {
9797
return clientId != null && clientSecret != null;
@@ -195,7 +195,7 @@ public void setOAuthCallbackEnabled(boolean enabled) {
195195
private long authTestCacheExpirationMillis = 600_000L;
196196

197197
@Builder.Default
198-
// https://api.slack.com/authentication/migration
198+
// https://docs.slack.dev/legacy/legacy-app-migration/migrating-classic-apps
199199
private boolean classicAppPermissionsEnabled = false;
200200

201201
/**
@@ -368,7 +368,7 @@ public void setOauthRedirectUriPath(String oauthRedirectUriPath) {
368368

369369
/**
370370
* Automatically acknowledge message events that have subtype if true.
371-
* Find the list of available subtypes at https://api.slack.com/events/message#subtypes
371+
* Find the list of available subtypes at https://docs.slack.dev/reference/events/message#subtypes
372372
*/
373373
@Builder.Default
374374
private boolean subtypedMessageEventsAutoAckEnabled = false;

0 commit comments

Comments
 (0)