-
Notifications
You must be signed in to change notification settings - Fork 662
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for apps.manifest.* endpoints (#1690)
- Loading branch information
Showing
9 changed files
with
369 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
packages/web-api/src/response/AppsManifestCreateResponse.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* eslint-disable */ | ||
///////////////////////////////////////////////////////////////////////////////////////// | ||
// // | ||
// !!! DO NOT EDIT THIS FILE !!! // | ||
// // | ||
// This file is auto-generated by scripts/generate-web-api-types.sh in the repository. // | ||
// Please refer to the script code to learn how to update the source data. // | ||
// // | ||
///////////////////////////////////////////////////////////////////////////////////////// | ||
|
||
import { WebAPICallResult } from '../WebClient'; | ||
export type AppsManifestCreateResponse = WebAPICallResult & { | ||
app_id?: string; | ||
credentials?: Credentials; | ||
error?: string; | ||
errors?: Error[]; | ||
needed?: string; | ||
oauth_authorize_url?: string; | ||
ok?: boolean; | ||
provided?: string; | ||
response_metadata?: ResponseMetadata; | ||
}; | ||
|
||
export interface Credentials { | ||
client_id?: string; | ||
client_secret?: string; | ||
signing_secret?: string; | ||
verification_token?: string; | ||
} | ||
|
||
export interface Error { | ||
code?: string; | ||
message?: string; | ||
pointer?: string; | ||
} | ||
|
||
export interface ResponseMetadata { | ||
messages?: string[]; | ||
} |
17 changes: 17 additions & 0 deletions
17
packages/web-api/src/response/AppsManifestDeleteResponse.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* eslint-disable */ | ||
///////////////////////////////////////////////////////////////////////////////////////// | ||
// // | ||
// !!! DO NOT EDIT THIS FILE !!! // | ||
// // | ||
// This file is auto-generated by scripts/generate-web-api-types.sh in the repository. // | ||
// Please refer to the script code to learn how to update the source data. // | ||
// // | ||
///////////////////////////////////////////////////////////////////////////////////////// | ||
|
||
import { WebAPICallResult } from '../WebClient'; | ||
export type AppsManifestDeleteResponse = WebAPICallResult & { | ||
error?: string; | ||
needed?: string; | ||
ok?: boolean; | ||
provided?: string; | ||
}; |
106 changes: 106 additions & 0 deletions
106
packages/web-api/src/response/AppsManifestExportResponse.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
/* eslint-disable */ | ||
///////////////////////////////////////////////////////////////////////////////////////// | ||
// // | ||
// !!! DO NOT EDIT THIS FILE !!! // | ||
// // | ||
// This file is auto-generated by scripts/generate-web-api-types.sh in the repository. // | ||
// Please refer to the script code to learn how to update the source data. // | ||
// // | ||
///////////////////////////////////////////////////////////////////////////////////////// | ||
|
||
import { WebAPICallResult } from '../WebClient'; | ||
export type AppsManifestExportResponse = WebAPICallResult & { | ||
error?: string; | ||
manifest?: Manifest; | ||
needed?: string; | ||
ok?: boolean; | ||
provided?: string; | ||
}; | ||
|
||
export interface Manifest { | ||
_metadata?: Metadata; | ||
display_information?: DisplayInformation; | ||
features?: Features; | ||
oauth_config?: OauthConfig; | ||
settings?: Settings; | ||
} | ||
|
||
export interface Metadata { | ||
major_version?: string; | ||
minor_version?: string; | ||
} | ||
|
||
export interface DisplayInformation { | ||
background_color?: string; | ||
description?: string; | ||
long_description?: string; | ||
name?: string; | ||
} | ||
|
||
export interface Features { | ||
app_home?: AppHome; | ||
bot_user?: BotUser; | ||
shortcuts?: Shortcut[]; | ||
slash_commands?: SlashCommand[]; | ||
unfurl_domains?: string[]; | ||
} | ||
|
||
export interface AppHome { | ||
home_tab_enabled?: boolean; | ||
messages_tab_enabled?: boolean; | ||
messages_tab_read_only_enabled?: boolean; | ||
} | ||
|
||
export interface BotUser { | ||
always_online?: boolean; | ||
display_name?: string; | ||
} | ||
|
||
export interface Shortcut { | ||
callback_id?: string; | ||
description?: string; | ||
name?: string; | ||
type?: string; | ||
} | ||
|
||
export interface SlashCommand { | ||
command?: string; | ||
description?: string; | ||
should_escape?: boolean; | ||
url?: string; | ||
usage_hint?: string; | ||
} | ||
|
||
export interface OauthConfig { | ||
redirect_urls?: string[]; | ||
scopes?: Scopes; | ||
} | ||
|
||
export interface Scopes { | ||
bot?: string[]; | ||
user?: string[]; | ||
} | ||
|
||
export interface Settings { | ||
allowed_ip_address_ranges?: string[]; | ||
background_color?: string; | ||
description?: string; | ||
event_subscriptions?: EventSubscriptions; | ||
interactivity?: Interactivity; | ||
long_description?: string; | ||
org_deploy_enabled?: boolean; | ||
socket_mode_enabled?: boolean; | ||
token_rotation_enabled?: boolean; | ||
} | ||
|
||
export interface EventSubscriptions { | ||
bot_events?: string[]; | ||
request_url?: string; | ||
user_events?: string[]; | ||
} | ||
|
||
export interface Interactivity { | ||
is_enabled?: boolean; | ||
message_menu_options_url?: string; | ||
request_url?: string; | ||
} |
19 changes: 19 additions & 0 deletions
19
packages/web-api/src/response/AppsManifestUpdateResponse.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* eslint-disable */ | ||
///////////////////////////////////////////////////////////////////////////////////////// | ||
// // | ||
// !!! DO NOT EDIT THIS FILE !!! // | ||
// // | ||
// This file is auto-generated by scripts/generate-web-api-types.sh in the repository. // | ||
// Please refer to the script code to learn how to update the source data. // | ||
// // | ||
///////////////////////////////////////////////////////////////////////////////////////// | ||
|
||
import { WebAPICallResult } from '../WebClient'; | ||
export type AppsManifestUpdateResponse = WebAPICallResult & { | ||
app_id?: string; | ||
error?: string; | ||
needed?: string; | ||
ok?: boolean; | ||
permissions_updated?: boolean; | ||
provided?: string; | ||
}; |
29 changes: 29 additions & 0 deletions
29
packages/web-api/src/response/AppsManifestValidateResponse.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* eslint-disable */ | ||
///////////////////////////////////////////////////////////////////////////////////////// | ||
// // | ||
// !!! DO NOT EDIT THIS FILE !!! // | ||
// // | ||
// This file is auto-generated by scripts/generate-web-api-types.sh in the repository. // | ||
// Please refer to the script code to learn how to update the source data. // | ||
// // | ||
///////////////////////////////////////////////////////////////////////////////////////// | ||
|
||
import { WebAPICallResult } from '../WebClient'; | ||
export type AppsManifestValidateResponse = WebAPICallResult & { | ||
error?: string; | ||
errors?: Error[]; | ||
needed?: string; | ||
ok?: boolean; | ||
provided?: string; | ||
response_metadata?: ResponseMetadata; | ||
}; | ||
|
||
export interface Error { | ||
code?: string; | ||
message?: string; | ||
pointer?: string; | ||
} | ||
|
||
export interface ResponseMetadata { | ||
messages?: string[]; | ||
} |
28 changes: 28 additions & 0 deletions
28
packages/web-api/src/response/ToolingTokensRotateResponse.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* eslint-disable */ | ||
///////////////////////////////////////////////////////////////////////////////////////// | ||
// // | ||
// !!! DO NOT EDIT THIS FILE !!! // | ||
// // | ||
// This file is auto-generated by scripts/generate-web-api-types.sh in the repository. // | ||
// Please refer to the script code to learn how to update the source data. // | ||
// // | ||
///////////////////////////////////////////////////////////////////////////////////////// | ||
|
||
import { WebAPICallResult } from '../WebClient'; | ||
export type ToolingTokensRotateResponse = WebAPICallResult & { | ||
error?: string; | ||
exp?: number; | ||
iat?: number; | ||
needed?: string; | ||
ok?: boolean; | ||
provided?: string; | ||
refresh_token?: string; | ||
response_metadata?: ResponseMetadata; | ||
team_id?: string; | ||
token?: string; | ||
user_id?: string; | ||
}; | ||
|
||
export interface ResponseMetadata { | ||
messages?: string[]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.