UNPKG

3.56 kBTypeScriptView Raw
1import type { OptionalArgument } from '../../helpers';
2import type { AppID, CursorPaginationEnabled, TeamID, TokenOverridable } from '../common';
3export interface RequestID {
4 /** @description The id of the request. */
5 request_id: string;
6}
7type AppOrRequestID = (AppID & {
8 request_id?: never;
9}) | (RequestID & {
10 app_id?: never;
11});
12export interface EnterpriseID {
13 /** @description The ID of the enterprise. */
14 enterprise_id: string;
15}
16type TeamOrEnterpriseID = (EnterpriseID & {
17 team_id?: never;
18}) | (TeamID & {
19 enterprise_id?: never;
20});
21export interface Certified {
22 /**
23 * @description Include certified apps. Defaults to `false`.
24 */
25 certified?: boolean;
26}
27export type AdminAppsActivitiesListArguments = OptionalArgument<Partial<AppID> & Partial<TeamID> & TokenOverridable & CursorPaginationEnabled & {
28 /**
29 * @description The component ID of log events to be returned. Will be `FnXXXXXX` for functions,
30 * and `WfXXXXXX` for worflows.
31 */
32 component_id?: string;
33 /** @description The component type of log events to be returned. */
34 component_type?: 'events_api' | 'workflows' | 'functions' | 'tables';
35 /** @description The event type of log events to be returned. */
36 log_event_type?: string;
37 /** @description The latest timestamp of the log to retrieve (epoch microseconds). */
38 max_date_created?: number;
39 /** @description The earliest timestamp of the log to retrieve (epoch microseconds). */
40 min_date_created?: number;
41 /** @description The minimum log level of the log events to be returned. Defaults to `info`. */
42 min_log_level?: 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'fatal';
43 /** @description The direction you want the data sorted by (always by timestamp). */
44 sort_direction?: 'asc' | 'desc';
45 /** @description The source of log events to be returned. */
46 source?: 'slack' | 'developer';
47 /** @description The trace ID of log events to be returned. */
48 trace_id?: string;
49}>;
50export type AdminAppsApproveArguments = AppOrRequestID & TeamOrEnterpriseID & TokenOverridable;
51export type AdminAppsApprovedListArguments = Partial<TeamOrEnterpriseID> & TokenOverridable & CursorPaginationEnabled & Certified;
52export type AdminAppsClearResolutionArguments = AppID & TeamOrEnterpriseID & TokenOverridable;
53export interface AdminAppsConfigLookupArguments extends TokenOverridable {
54 /** @description An array of app IDs to get app configs for. */
55 app_ids: string[];
56}
57export interface AdminAppsConfigSetArguments extends AppID, TokenOverridable {
58 /** @description Domain restrictions for the app. */
59 domain_restrictions?: {
60 /** @description Sets allowed URLs for the app. */
61 urls?: string[];
62 /** @description Sets emails for connector authorization. */
63 emails?: string[];
64 };
65 /** @description The workflow auth permission. */
66 workflow_auth_strategy?: 'builder_choice' | 'end_user_only';
67}
68export type AdminAppsRequestsCancelArguments = RequestID & TeamOrEnterpriseID & TokenOverridable;
69export type AdminAppsRequestsListArguments = TeamOrEnterpriseID & Certified & TokenOverridable & CursorPaginationEnabled;
70export type AdminAppsRestrictArguments = AppOrRequestID & TeamOrEnterpriseID & TokenOverridable;
71export type AdminAppsRestrictedListArguments = TeamOrEnterpriseID & Certified & TokenOverridable & CursorPaginationEnabled;
72export type AdminAppsUninstallArguments = AppID & TeamOrEnterpriseID & TokenOverridable;
73export {};
74//# sourceMappingURL=apps.d.ts.map
\No newline at end of file