From 83546c4fadf1b6f3b3cf710fa949d98e94f90e87 Mon Sep 17 00:00:00 2001 From: Juan Azambuja Date: Thu, 25 Jun 2020 18:38:13 -0300 Subject: [PATCH] use token from config intead of stating it as required param --- lib/slack/web/docs/admin.apps.approve.json | 5 ----- lib/slack/web/docs/admin.apps.restrict.json | 5 ----- lib/slack/web/docs/chat.getPermalink.json | 3 --- lib/slack/web/docs/chat.scheduleMessage.json | 5 ----- lib/slack/web/docs/conversations.create.json | 5 ----- lib/slack/web/docs/conversations.invite.json | 5 ----- lib/slack/web/docs/views.open.json | 5 ----- lib/slack/web/docs/views.publish.json | 5 ----- lib/slack/web/docs/views.push.json | 5 ----- lib/slack/web/docs/views.update.json | 5 ----- 10 files changed, 48 deletions(-) diff --git a/lib/slack/web/docs/admin.apps.approve.json b/lib/slack/web/docs/admin.apps.approve.json index b8ac823..7bffc5d 100644 --- a/lib/slack/web/docs/admin.apps.approve.json +++ b/lib/slack/web/docs/admin.apps.approve.json @@ -2,11 +2,6 @@ "desc": "Approve an app for installation on a workspace.", "args": { - "token": { - "required" : true, - "example" : "xxxx-xxxxxxxxx-xxxx", - "desc" : "Authentication token bearing required scopes." - }, "app_id": { "required" : false, "example" : "A12345", diff --git a/lib/slack/web/docs/admin.apps.restrict.json b/lib/slack/web/docs/admin.apps.restrict.json index 57cfc4c..6372203 100644 --- a/lib/slack/web/docs/admin.apps.restrict.json +++ b/lib/slack/web/docs/admin.apps.restrict.json @@ -2,11 +2,6 @@ "desc": "Restrict an app for installation on a workspace.", "args": { - "token": { - "required" : true, - "example" : "xxxx-xxxxxxxxx-xxxx", - "desc" : "Authentication token bearing required scopes." - }, "app_id": { "required" : false, "example" : "A12345", diff --git a/lib/slack/web/docs/chat.getPermalink.json b/lib/slack/web/docs/chat.getPermalink.json index 25e7fd4..2904692 100644 --- a/lib/slack/web/docs/chat.getPermalink.json +++ b/lib/slack/web/docs/chat.getPermalink.json @@ -11,9 +11,6 @@ "required": true, "example": "1405894322.002768", "desc": "A message's ts value, uniquely identifying it within a channel." - }, - "token": { - "example": "xxxx-xxxxxxxxx-xxxx" } }, diff --git a/lib/slack/web/docs/chat.scheduleMessage.json b/lib/slack/web/docs/chat.scheduleMessage.json index 66c6978..7c78b7c 100644 --- a/lib/slack/web/docs/chat.scheduleMessage.json +++ b/lib/slack/web/docs/chat.scheduleMessage.json @@ -2,11 +2,6 @@ "desc": "Schedules a message to be sent to a channel.", "args": { - "token": { - "required": true, - "example": "xxxx-xxxxxxxxx-xxxx", - "desc": "Authentication token bearing required scopes." - }, "channel": { "required": true, "example": "C1234567890", diff --git a/lib/slack/web/docs/conversations.create.json b/lib/slack/web/docs/conversations.create.json index 5d3bf71..1543993 100644 --- a/lib/slack/web/docs/conversations.create.json +++ b/lib/slack/web/docs/conversations.create.json @@ -2,11 +2,6 @@ "desc": "Initiates a public or private channel-based conversation.", "args": { - "token": { - "required" : true, - "example" : "xxxx-xxxxxxxxx-xxxx", - "desc" : "Authentication token bearing required scopes." - }, "name": { "required" : true, "example" : "mychannel", diff --git a/lib/slack/web/docs/conversations.invite.json b/lib/slack/web/docs/conversations.invite.json index e16cd0c..5fea753 100644 --- a/lib/slack/web/docs/conversations.invite.json +++ b/lib/slack/web/docs/conversations.invite.json @@ -2,11 +2,6 @@ "desc": "Invites users to a channel.", "args": { - "token": { - "required" : true, - "example" : "xxxx-xxxxxxxxx-xxxx", - "desc" : "Authentication token bearing required scopes." - }, "channel": { "required" : true, "example" : "C1234567890", diff --git a/lib/slack/web/docs/views.open.json b/lib/slack/web/docs/views.open.json index 218345e..d200c17 100644 --- a/lib/slack/web/docs/views.open.json +++ b/lib/slack/web/docs/views.open.json @@ -2,11 +2,6 @@ "desc": "Open a view for a user.", "args": { - "token": { - "required": true, - "example": "xxxx-xxxxxxxxx-xxxx", - "desc": "Authentication token bearing required scopes." - }, "trigger_id": { "required": true, "example": "12345.98765.abcd2358fdea", diff --git a/lib/slack/web/docs/views.publish.json b/lib/slack/web/docs/views.publish.json index 4d63c0e..0a8a902 100644 --- a/lib/slack/web/docs/views.publish.json +++ b/lib/slack/web/docs/views.publish.json @@ -2,11 +2,6 @@ "desc": "Publish a static view for a User.", "args": { - "token": { - "required": true, - "example": "xxxx-xxxxxxxxx-xxxx", - "desc": "Authentication token bearing required scopes." - }, "user_id": { "required": true, "example": "U0BPQUNTA", diff --git a/lib/slack/web/docs/views.push.json b/lib/slack/web/docs/views.push.json index 98e3a78..c76f8e2 100644 --- a/lib/slack/web/docs/views.push.json +++ b/lib/slack/web/docs/views.push.json @@ -2,11 +2,6 @@ "desc": "Push a view onto the stack of a root view.", "args": { - "token": { - "required": true, - "example": "xxxx-xxxxxxxxx-xxxx", - "desc": "Authentication token bearing required scopes." - }, "trigger_id": { "required": true, "example": "12345.98765.abcd2358fdea", diff --git a/lib/slack/web/docs/views.update.json b/lib/slack/web/docs/views.update.json index 97f924a..374fb81 100644 --- a/lib/slack/web/docs/views.update.json +++ b/lib/slack/web/docs/views.update.json @@ -2,11 +2,6 @@ "desc": "Update an existing view.", "args": { - "token": { - "required": true, - "example": "xxxx-xxxxxxxxx-xxxx", - "desc": "Authentication token bearing required scopes." - }, "view": { "required": true, "example": "Ar12345",