1 | import type { WebAPICallResult } from '../../WebClient';
|
2 | export type AppsManifestExportResponse = WebAPICallResult & {
|
3 | error?: string;
|
4 | manifest?: Manifest;
|
5 | needed?: string;
|
6 | ok?: boolean;
|
7 | provided?: string;
|
8 | };
|
9 | export interface Manifest {
|
10 | _metadata?: Metadata;
|
11 | display_information?: DisplayInformation;
|
12 | features?: Features;
|
13 | functions?: {
|
14 | [key: string]: Function;
|
15 | };
|
16 | oauth_config?: OauthConfig;
|
17 | settings?: Settings;
|
18 | }
|
19 | export interface Metadata {
|
20 | major_version?: number;
|
21 | minor_version?: number;
|
22 | }
|
23 | export interface DisplayInformation {
|
24 | background_color?: string;
|
25 | description?: string;
|
26 | long_description?: string;
|
27 | name?: string;
|
28 | }
|
29 | export interface Features {
|
30 | app_home?: AppHome;
|
31 | bot_user?: BotUser;
|
32 | shortcuts?: Shortcut[];
|
33 | slash_commands?: SlashCommand[];
|
34 | unfurl_domains?: string[];
|
35 | }
|
36 | export interface AppHome {
|
37 | home_tab_enabled?: boolean;
|
38 | messages_tab_enabled?: boolean;
|
39 | messages_tab_read_only_enabled?: boolean;
|
40 | }
|
41 | export interface BotUser {
|
42 | always_online?: boolean;
|
43 | display_name?: string;
|
44 | }
|
45 | export interface Shortcut {
|
46 | callback_id?: string;
|
47 | description?: string;
|
48 | name?: string;
|
49 | type?: string;
|
50 | }
|
51 | export interface SlashCommand {
|
52 | command?: string;
|
53 | description?: string;
|
54 | should_escape?: boolean;
|
55 | url?: string;
|
56 | usage_hint?: string;
|
57 | }
|
58 | export interface Function {
|
59 | description?: string;
|
60 | input_parameters?: {
|
61 | [key: string]: PutParameter;
|
62 | };
|
63 | output_parameters?: {
|
64 | [key: string]: PutParameter;
|
65 | };
|
66 | title?: string;
|
67 | }
|
68 | export interface PutParameter {
|
69 | description?: string;
|
70 | hint?: string;
|
71 | is_required?: boolean;
|
72 | maxLength?: number;
|
73 | maximum?: number;
|
74 | minLength?: number;
|
75 | minimum?: number;
|
76 | name?: string;
|
77 | title?: string;
|
78 | type?: string;
|
79 | }
|
80 | export interface OauthConfig {
|
81 | redirect_urls?: string[];
|
82 | scopes?: Scopes;
|
83 | token_management_enabled?: boolean;
|
84 | }
|
85 | export interface Scopes {
|
86 | bot?: string[];
|
87 | user?: string[];
|
88 | }
|
89 | export interface Settings {
|
90 | allowed_ip_address_ranges?: string[];
|
91 | background_color?: string;
|
92 | description?: string;
|
93 | event_subscriptions?: EventSubscriptions;
|
94 | function_runtime?: string;
|
95 | hermes_app_type?: string;
|
96 | interactivity?: Interactivity;
|
97 | long_description?: string;
|
98 | org_deploy_enabled?: boolean;
|
99 | socket_mode_enabled?: boolean;
|
100 | token_rotation_enabled?: boolean;
|
101 | }
|
102 | export interface EventSubscriptions {
|
103 | bot_events?: string[];
|
104 | request_url?: string;
|
105 | user_events?: string[];
|
106 | }
|
107 | export interface Interactivity {
|
108 | is_enabled?: boolean;
|
109 | message_menu_options_url?: string;
|
110 | request_url?: string;
|
111 | }
|
112 |
|
\ | No newline at end of file |