Skip to content

Commit

Permalink
Run linter to undo previous styling changes
Browse files Browse the repository at this point in the history
  • Loading branch information
misscoded committed Sep 17, 2024
1 parent cf02773 commit cfaf1d6
Show file tree
Hide file tree
Showing 310 changed files with 20,021 additions and 20,036 deletions.
16 changes: 2 additions & 14 deletions packages/web-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,10 @@
"description": "Official library for using the Slack Platform's Web API",
"author": "Slack Technologies, LLC",
"license": "MIT",
"keywords": [
"slack",
"web-api",
"bot",
"client",
"http",
"api",
"proxy",
"rate-limiting",
"pagination"
],
"keywords": ["slack", "web-api", "bot", "client", "http", "api", "proxy", "rate-limiting", "pagination"],
"main": "dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist/**/*"
],
"files": ["dist/**/*"],
"engines": {
"node": ">= 18",
"npm": ">= 8.6.0"
Expand Down
23 changes: 16 additions & 7 deletions packages/web-api/src/methods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,6 @@ import type {
AdminWorkflowsPermissionsLookupArguments,
AdminWorkflowsSearchArguments,
AdminWorkflowsUnpublishArguments,
AssistantThreadsSetStatusArguments,
AssistantThreadsSetSuggestedPromptsArguments,
AssistantThreadsSetTitleArguments,
AppsConnectionsOpenArguments,
AppsEventAuthorizationsListArguments,
AppsManifestCreateArguments,
Expand All @@ -111,6 +108,9 @@ import type {
AppsManifestUpdateArguments,
AppsManifestValidateArguments,
AppsUninstallArguments,
AssistantThreadsSetStatusArguments,
AssistantThreadsSetSuggestedPromptsArguments,
AssistantThreadsSetTitleArguments,
AuthRevokeArguments,
AuthTeamsListArguments,
AuthTestArguments,
Expand Down Expand Up @@ -1344,18 +1344,27 @@ export abstract class Methods extends EventEmitter<WebClientEvent> {
* @description Set loading status to indicate that the app is building a response.
* @see {@link https://api.slack.com/methods/assistant.threads.setStatus `assistant.threads.setStatus` API reference}.
*/
setStatus: bindApiCall<AssistantThreadsSetStatusArguments, AssistantThreadsSetStatusResponse>(this, 'assistant.threads.setStatus'),
setStatus: bindApiCall<AssistantThreadsSetStatusArguments, AssistantThreadsSetStatusResponse>(
this,
'assistant.threads.setStatus',
),
/**
* @description Set suggested prompts for the user. Can suggest up to four prompts.
* @see {@link https://api.slack.com/methods/assistant.threads.setSuggestedPrompts `assistant.threads.setSuggestedPrompts` API reference}.
*/
setSuggestedPrompts: bindApiCall<AssistantThreadsSetSuggestedPromptsArguments, AssistantThreadsSetSuggestedPromptsResponse>(this, 'assistant.threads.setSuggestedPrompts'),
setSuggestedPrompts: bindApiCall<
AssistantThreadsSetSuggestedPromptsArguments,
AssistantThreadsSetSuggestedPromptsResponse
>(this, 'assistant.threads.setSuggestedPrompts'),
/**
* @description Set the title of the thread. This is shown when a user views the app's chat history.
* @see {@link https://api.slack.com/methods/assistant.threads.setTitle `assistant.threads.setTitle` API reference}.
*/
setTitle: bindApiCall<AssistantThreadsSetTitleArguments, AssistantThreadsSetTitleResponse>(this, 'assistant.threads.setTitle'),
}
setTitle: bindApiCall<AssistantThreadsSetTitleArguments, AssistantThreadsSetTitleResponse>(
this,
'assistant.threads.setTitle',
),
},
};

public readonly apps = {
Expand Down
6 changes: 5 additions & 1 deletion packages/web-api/src/types/request/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,11 @@ export type {
AppsUninstallArguments,
} from './apps';
export type { APITestArguments } from './api';
export type { AssistantThreadsSetStatusArguments, AssistantThreadsSetSuggestedPromptsArguments, AssistantThreadsSetTitleArguments } from './assistant';
export type {
AssistantThreadsSetStatusArguments,
AssistantThreadsSetSuggestedPromptsArguments,
AssistantThreadsSetTitleArguments,
} from './assistant';
export type { AdminAnalyticsGetFileArguments } from './admin/analytics';
export type {
AdminAppsActivitiesListArguments,
Expand Down
101 changes: 50 additions & 51 deletions packages/web-api/src/types/response/AdminAppsActivitiesListResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,81 +7,80 @@
// //
/////////////////////////////////////////////////////////////////////////////////////////

import { WebAPICallResult } from '../../WebClient';
import type { WebAPICallResult } from '../../WebClient';
export type AdminAppsActivitiesListResponse = WebAPICallResult & {
activities?: Activity[];
error?: string;
needed?: string;
ok?: boolean;
provided?: string;
activities?: Activity[];
error?: string;
needed?: string;
ok?: boolean;
provided?: string;
response_metadata?: ResponseMetadata;
};

export interface Activity {
app_id?: string;
component_id?: string;
app_id?: string;
component_id?: string;
component_type?: string;
created?: number;
enterprise_id?: string;
event_type?: string;
level?: string;
payload?: Payload;
source?: string;
team_id?: string;
trace_id?: string;
created?: number;
enterprise_id?: string;
event_type?: string;
level?: string;
payload?: Payload;
source?: string;
team_id?: string;
trace_id?: string;
}

export interface Payload {
action?: string;
actor?: string;
billing_reason?: string[];
bot_user_id?: string;
bundle_size_kb?: number;
channel_id?: string;
current_step?: number;
datastore_name?: string;
details?: string;
error?: string;
exec_outcome?: string;
action?: string;
actor?: string;
billing_reason?: string[];
bot_user_id?: string;
bundle_size_kb?: number;
channel_id?: string;
current_step?: number;
datastore_name?: string;
details?: string;
error?: string;
exec_outcome?: string;
function_execution_id?: string;
function_id?: string;
function_name?: string;
function_type?: string;
inputs?: Inputs;
is_billing_excluded?: boolean;
log?: string;
request_type?: string;
team_id?: string;
total_steps?: number;
trigger?: Trigger;
type?: string;
user_id?: string;
workflow_name?: string;
function_id?: string;
function_name?: string;
function_type?: string;
inputs?: Inputs;
is_billing_excluded?: boolean;
log?: string;
request_type?: string;
team_id?: string;
total_steps?: number;
trigger?: Trigger;
type?: string;
user_id?: string;
workflow_name?: string;
}

export interface Inputs {
}
export type Inputs = {};

export interface Trigger {
config?: Config;
id?: string;
config?: Config;
id?: string;
trip_information?: TripInformation;
type?: string;
type?: string;
}

export interface Config {
description?: string;
event_type?: string;
name?: string;
schema?: Inputs;
event_type?: string;
name?: string;
schema?: Inputs;
}

export interface TripInformation {
channel_id?: string;
list_id?: string;
list_id?: string;
message_ts?: string;
reaction?: string;
user_id?: string;
reaction?: string;
user_id?: string;
}

export interface ResponseMetadata {
Expand Down
10 changes: 5 additions & 5 deletions packages/web-api/src/types/response/AdminAppsApproveResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
// //
/////////////////////////////////////////////////////////////////////////////////////////

import { WebAPICallResult } from '../../WebClient';
import type { WebAPICallResult } from '../../WebClient';
export type AdminAppsApproveResponse = WebAPICallResult & {
error?: string;
needed?: string;
ok?: boolean;
error?: string;
needed?: string;
ok?: boolean;
provided?: string;
warning?: string;
warning?: string;
};
Original file line number Diff line number Diff line change
Expand Up @@ -7,67 +7,67 @@
// //
/////////////////////////////////////////////////////////////////////////////////////////

import { WebAPICallResult } from '../../WebClient';
import type { WebAPICallResult } from '../../WebClient';
export type AdminAppsApprovedListResponse = WebAPICallResult & {
approved_apps?: ApprovedApp[];
error?: string;
needed?: string;
ok?: boolean;
provided?: string;
approved_apps?: ApprovedApp[];
error?: string;
needed?: string;
ok?: boolean;
provided?: string;
response_metadata?: ResponseMetadata;
warning?: string;
warning?: string;
};

export interface ApprovedApp {
app?: App;
date_updated?: number;
app?: App;
date_updated?: number;
last_resolved_by?: LastResolvedBy;
scopes?: Scope[];
scopes?: Scope[];
}

export interface App {
additional_info?: string;
app_directory_url?: string;
app_homepage_url?: string;
description?: string;
help_url?: string;
icons?: Icons;
id?: string;
additional_info?: string;
app_directory_url?: string;
app_homepage_url?: string;
description?: string;
help_url?: string;
icons?: Icons;
id?: string;
is_app_directory_approved?: boolean;
is_granular_bot_app?: boolean;
is_internal?: boolean;
name?: string;
privacy_policy_url?: string;
is_granular_bot_app?: boolean;
is_internal?: boolean;
name?: string;
privacy_policy_url?: string;
}

export interface Icons {
image_1024?: string;
image_128?: string;
image_192?: string;
image_32?: string;
image_36?: string;
image_48?: string;
image_512?: string;
image_64?: string;
image_72?: string;
image_96?: string;
image_1024?: string;
image_128?: string;
image_192?: string;
image_32?: string;
image_36?: string;
image_48?: string;
image_512?: string;
image_64?: string;
image_72?: string;
image_96?: string;
image_original?: string;
}

export interface LastResolvedBy {
actor_id?: string;
actor_id?: string;
actor_type?: string;
}

export interface Scope {
description?: string;
description?: string;
is_sensitive?: boolean;
name?: string;
token_type?: string;
name?: string;
token_type?: string;
}

export interface ResponseMetadata {
messages?: string[];
messages?: string[];
next_cursor?: string;
warnings?: string[];
warnings?: string[];
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
// //
/////////////////////////////////////////////////////////////////////////////////////////

import { WebAPICallResult } from '../../WebClient';
import type { WebAPICallResult } from '../../WebClient';
export type AdminAppsClearResolutionResponse = WebAPICallResult & {
error?: string;
needed?: string;
ok?: boolean;
error?: string;
needed?: string;
ok?: boolean;
provided?: string;
warning?: string;
warning?: string;
};
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,25 @@
// //
/////////////////////////////////////////////////////////////////////////////////////////

import { WebAPICallResult } from '../../WebClient';
import type { WebAPICallResult } from '../../WebClient';
export type AdminAppsConfigLookupResponse = WebAPICallResult & {
configs?: Config[];
error?: string;
needed?: string;
ok?: boolean;
provided?: string;
configs?: Config[];
error?: string;
needed?: string;
ok?: boolean;
provided?: string;
response_metadata?: ResponseMetadata;
};

export interface Config {
app_id?: string;
domain_restrictions?: DomainRestrictions;
app_id?: string;
domain_restrictions?: DomainRestrictions;
workflow_auth_strategy?: string;
}

export interface DomainRestrictions {
emails?: string[];
urls?: string[];
urls?: string[];
}

export interface ResponseMetadata {
Expand Down
Loading

0 comments on commit cfaf1d6

Please sign in to comment.