@distilled.cloud/slack 0.0.0 → 1.0.0-rc.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/lib/credentials.d.ts +27 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +53 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +83 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +59 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +17 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +17 -0
- package/lib/index.js.map +1 -0
- package/lib/pagination.d.ts +31 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +31 -0
- package/lib/pagination.js.map +1 -0
- package/lib/protocol.d.ts +18 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +230 -0
- package/lib/protocol.js.map +1 -0
- package/lib/retry.d.ts +52 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +45 -0
- package/lib/retry.js.map +1 -0
- package/lib/services/admin.d.ts +2796 -0
- package/lib/services/admin.d.ts.map +1 -0
- package/lib/services/admin.js +3225 -0
- package/lib/services/admin.js.map +1 -0
- package/lib/services/api.d.ts +23 -0
- package/lib/services/api.d.ts.map +1 -0
- package/lib/services/api.js +26 -0
- package/lib/services/api.js.map +1 -0
- package/lib/services/apps.d.ts +568 -0
- package/lib/services/apps.d.ts.map +1 -0
- package/lib/services/apps.js +584 -0
- package/lib/services/apps.js.map +1 -0
- package/lib/services/assistant.d.ts +290 -0
- package/lib/services/assistant.d.ts.map +1 -0
- package/lib/services/assistant.js +232 -0
- package/lib/services/assistant.js.map +1 -0
- package/lib/services/auth.d.ts +90 -0
- package/lib/services/auth.d.ts.map +1 -0
- package/lib/services/auth.js +114 -0
- package/lib/services/auth.js.map +1 -0
- package/lib/services/blocks.d.ts +31 -0
- package/lib/services/blocks.d.ts.map +1 -0
- package/lib/services/blocks.js +31 -0
- package/lib/services/blocks.js.map +1 -0
- package/lib/services/bookmarks.d.ts +91 -0
- package/lib/services/bookmarks.d.ts.map +1 -0
- package/lib/services/bookmarks.js +98 -0
- package/lib/services/bookmarks.js.map +1 -0
- package/lib/services/bots.d.ts +60 -0
- package/lib/services/bots.d.ts.map +1 -0
- package/lib/services/bots.js +68 -0
- package/lib/services/bots.js.map +1 -0
- package/lib/services/calls.d.ts +124 -0
- package/lib/services/calls.d.ts.map +1 -0
- package/lib/services/calls.js +136 -0
- package/lib/services/calls.js.map +1 -0
- package/lib/services/canvases.d.ts +152 -0
- package/lib/services/canvases.d.ts.map +1 -0
- package/lib/services/canvases.js +152 -0
- package/lib/services/canvases.js.map +1 -0
- package/lib/services/chat.d.ts +525 -0
- package/lib/services/chat.d.ts.map +1 -0
- package/lib/services/chat.js +436 -0
- package/lib/services/chat.js.map +1 -0
- package/lib/services/conversations.d.ts +642 -0
- package/lib/services/conversations.d.ts.map +1 -0
- package/lib/services/conversations.js +769 -0
- package/lib/services/conversations.js.map +1 -0
- package/lib/services/dialog.d.ts +20 -0
- package/lib/services/dialog.d.ts.map +1 -0
- package/lib/services/dialog.js +27 -0
- package/lib/services/dialog.js.map +1 -0
- package/lib/services/dnd.d.ts +94 -0
- package/lib/services/dnd.d.ts.map +1 -0
- package/lib/services/dnd.js +111 -0
- package/lib/services/dnd.js.map +1 -0
- package/lib/services/emoji.d.ts +35 -0
- package/lib/services/emoji.d.ts.map +1 -0
- package/lib/services/emoji.js +40 -0
- package/lib/services/emoji.js.map +1 -0
- package/lib/services/entity.d.ts +93 -0
- package/lib/services/entity.d.ts.map +1 -0
- package/lib/services/entity.js +89 -0
- package/lib/services/entity.js.map +1 -0
- package/lib/services/files.d.ts +473 -0
- package/lib/services/files.d.ts.map +1 -0
- package/lib/services/files.js +510 -0
- package/lib/services/files.js.map +1 -0
- package/lib/services/functions.d.ts +235 -0
- package/lib/services/functions.d.ts.map +1 -0
- package/lib/services/functions.js +261 -0
- package/lib/services/functions.js.map +1 -0
- package/lib/services/index.d.ts +35 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +36 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/lists.d.ts +300 -0
- package/lib/services/lists.d.ts.map +1 -0
- package/lib/services/lists.js +366 -0
- package/lib/services/lists.js.map +1 -0
- package/lib/services/migration.d.ts +34 -0
- package/lib/services/migration.d.ts.map +1 -0
- package/lib/services/migration.js +36 -0
- package/lib/services/migration.js.map +1 -0
- package/lib/services/oauth.d.ts +307 -0
- package/lib/services/oauth.d.ts.map +1 -0
- package/lib/services/oauth.js +278 -0
- package/lib/services/oauth.js.map +1 -0
- package/lib/services/openid.d.ts +86 -0
- package/lib/services/openid.d.ts.map +1 -0
- package/lib/services/openid.js +93 -0
- package/lib/services/openid.js.map +1 -0
- package/lib/services/pins.d.ts +64 -0
- package/lib/services/pins.d.ts.map +1 -0
- package/lib/services/pins.js +75 -0
- package/lib/services/pins.js.map +1 -0
- package/lib/services/reactions.d.ts +108 -0
- package/lib/services/reactions.d.ts.map +1 -0
- package/lib/services/reactions.js +119 -0
- package/lib/services/reactions.js.map +1 -0
- package/lib/services/reminders.d.ts +89 -0
- package/lib/services/reminders.d.ts.map +1 -0
- package/lib/services/reminders.js +109 -0
- package/lib/services/reminders.js.map +1 -0
- package/lib/services/rtm.d.ts +68 -0
- package/lib/services/rtm.d.ts.map +1 -0
- package/lib/services/rtm.js +74 -0
- package/lib/services/rtm.js.map +1 -0
- package/lib/services/search.d.ts +239 -0
- package/lib/services/search.d.ts.map +1 -0
- package/lib/services/search.js +190 -0
- package/lib/services/search.js.map +1 -0
- package/lib/services/stars.d.ts +126 -0
- package/lib/services/stars.d.ts.map +1 -0
- package/lib/services/stars.js +145 -0
- package/lib/services/stars.js.map +1 -0
- package/lib/services/team.d.ts +309 -0
- package/lib/services/team.d.ts.map +1 -0
- package/lib/services/team.js +336 -0
- package/lib/services/team.js.map +1 -0
- package/lib/services/tooling.d.ts +31 -0
- package/lib/services/tooling.d.ts.map +1 -0
- package/lib/services/tooling.js +38 -0
- package/lib/services/tooling.js.map +1 -0
- package/lib/services/usergroups.d.ts +183 -0
- package/lib/services/usergroups.d.ts.map +1 -0
- package/lib/services/usergroups.js +180 -0
- package/lib/services/usergroups.js.map +1 -0
- package/lib/services/users.d.ts +246 -0
- package/lib/services/users.d.ts.map +1 -0
- package/lib/services/users.js +309 -0
- package/lib/services/users.js.map +1 -0
- package/lib/services/views.d.ts +84 -0
- package/lib/services/views.d.ts.map +1 -0
- package/lib/services/views.js +95 -0
- package/lib/services/views.js.map +1 -0
- package/lib/services/workflows.d.ts +231 -0
- package/lib/services/workflows.d.ts.map +1 -0
- package/lib/services/workflows.js +240 -0
- package/lib/services/workflows.js.map +1 -0
- package/lib/traits.d.ts +11 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +12 -0
- package/lib/traits.js.map +1 -0
- package/package.json +82 -4
- package/src/credentials.ts +86 -0
- package/src/errors.ts +101 -0
- package/src/index.ts +20 -0
- package/src/pagination.ts +35 -0
- package/src/protocol.ts +326 -0
- package/src/retry.ts +76 -0
- package/src/services/admin.ts +7729 -0
- package/src/services/api.ts +58 -0
- package/src/services/apps.ts +1441 -0
- package/src/services/assistant.ts +639 -0
- package/src/services/auth.ts +241 -0
- package/src/services/blocks.ts +80 -0
- package/src/services/bookmarks.ts +223 -0
- package/src/services/bots.ts +144 -0
- package/src/services/calls.ts +318 -0
- package/src/services/canvases.ts +392 -0
- package/src/services/chat.ts +1191 -0
- package/src/services/conversations.ts +1754 -0
- package/src/services/dialog.ts +55 -0
- package/src/services/dnd.ts +246 -0
- package/src/services/emoji.ts +91 -0
- package/src/services/entity.ts +225 -0
- package/src/services/files.ts +1192 -0
- package/src/services/functions.ts +647 -0
- package/src/services/index.ts +35 -0
- package/src/services/lists.ts +832 -0
- package/src/services/migration.ts +85 -0
- package/src/services/oauth.ts +658 -0
- package/src/services/openid.ts +243 -0
- package/src/services/pins.ts +167 -0
- package/src/services/reactions.ts +272 -0
- package/src/services/reminders.ts +240 -0
- package/src/services/rtm.ts +162 -0
- package/src/services/search.ts +507 -0
- package/src/services/stars.ts +323 -0
- package/src/services/team.ts +836 -0
- package/src/services/tooling.ts +78 -0
- package/src/services/usergroups.ts +441 -0
- package/src/services/users.ts +685 -0
- package/src/services/views.ts +212 -0
- package/src/services/workflows.ts +607 -0
- package/src/traits.ts +45 -0
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
2
|
+
import * as API from "@distilled.cloud/core/api";
|
|
3
|
+
import { type SlackOpError, type SlackOpContext } from "../protocol.ts";
|
|
4
|
+
export type { SlackOpError, SlackOpContext };
|
|
5
|
+
export interface AddReminderRequest {
|
|
6
|
+
/** The content of the reminder */
|
|
7
|
+
text: string;
|
|
8
|
+
/** Can also take a type of integer. When this reminder should happen: the Unix timestamp (up to five years from now), the number of seconds until the reminder (if within 24 hours), or a natural language description (Ex. "in 15 minutes," or "every Thursday") */
|
|
9
|
+
time: string;
|
|
10
|
+
/** No longer supported - reminders cannot be set for other users. Previously, was the user who would receive the reminder. */
|
|
11
|
+
user?: string;
|
|
12
|
+
/** Encoded team id, required if org token is used */
|
|
13
|
+
team_id?: string;
|
|
14
|
+
/** Specify the repeating behavior of a reminder. Available options: `daily`, `weekly`, `monthly`, or `yearly`. If `weekly`, may further specify the days of the week. */
|
|
15
|
+
recurrence?: unknown;
|
|
16
|
+
}
|
|
17
|
+
export declare const AddReminderRequest: S.Schema<AddReminderRequest>;
|
|
18
|
+
export interface AddReminderResponse {
|
|
19
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
20
|
+
ok: boolean;
|
|
21
|
+
reminder: unknown;
|
|
22
|
+
}
|
|
23
|
+
export declare const AddReminderResponse: S.Schema<AddReminderResponse>;
|
|
24
|
+
export interface CompleteReminderRequest {
|
|
25
|
+
/** The ID of the reminder to be marked as complete */
|
|
26
|
+
reminder: string;
|
|
27
|
+
/** Encoded team id, required if org token is used */
|
|
28
|
+
team_id?: string;
|
|
29
|
+
}
|
|
30
|
+
export declare const CompleteReminderRequest: S.Schema<CompleteReminderRequest>;
|
|
31
|
+
export interface CompleteReminderResponse {
|
|
32
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
33
|
+
ok: boolean;
|
|
34
|
+
}
|
|
35
|
+
export declare const CompleteReminderResponse: S.Schema<CompleteReminderResponse>;
|
|
36
|
+
export interface DeleteReminderRequest {
|
|
37
|
+
/** The ID of the reminder */
|
|
38
|
+
reminder: string;
|
|
39
|
+
/** Encoded team id, required if org token is used */
|
|
40
|
+
team_id?: string;
|
|
41
|
+
}
|
|
42
|
+
export declare const DeleteReminderRequest: S.Schema<DeleteReminderRequest>;
|
|
43
|
+
export interface DeleteReminderResponse {
|
|
44
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
45
|
+
ok: boolean;
|
|
46
|
+
}
|
|
47
|
+
export declare const DeleteReminderResponse: S.Schema<DeleteReminderResponse>;
|
|
48
|
+
export interface ListRemindersRequest {
|
|
49
|
+
/** Encoded team id, required if org token is passed */
|
|
50
|
+
team_id?: string;
|
|
51
|
+
}
|
|
52
|
+
export declare const ListRemindersRequest: S.Schema<ListRemindersRequest>;
|
|
53
|
+
export type ListRemindersResponseRemindersList = Array<unknown>;
|
|
54
|
+
export declare const ListRemindersResponseRemindersList: S.Schema<ListRemindersResponseRemindersList>;
|
|
55
|
+
export interface ListRemindersResponse {
|
|
56
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
57
|
+
ok: boolean;
|
|
58
|
+
reminders?: ListRemindersResponseRemindersList;
|
|
59
|
+
}
|
|
60
|
+
export declare const ListRemindersResponse: S.Schema<ListRemindersResponse>;
|
|
61
|
+
export interface RemindersInfoRequest {
|
|
62
|
+
/** The ID of the reminder */
|
|
63
|
+
reminder: string;
|
|
64
|
+
/** Encoded team id, required if org token is passed */
|
|
65
|
+
team_id?: string;
|
|
66
|
+
}
|
|
67
|
+
export declare const RemindersInfoRequest: S.Schema<RemindersInfoRequest>;
|
|
68
|
+
export interface RemindersInfoResponse {
|
|
69
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
70
|
+
ok: boolean;
|
|
71
|
+
reminder: unknown;
|
|
72
|
+
}
|
|
73
|
+
export declare const RemindersInfoResponse: S.Schema<RemindersInfoResponse>;
|
|
74
|
+
export type AddReminderError = SlackOpError;
|
|
75
|
+
/** Creates a reminder. Required scopes — user: `reminders:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `cannot_add_bot` — Reminders can't be sent to bots. - `cannot_add_others` — Guests can't set reminders for other team members. - `cannot_add_others_recurring` — Recurring reminders can't be set for other team members. - `cannot_add_profile_only_user` — Reminders can't be sent to profile only users. - `cannot_add_slackbot` — Reminders can't be sent to Slackbot. - `cannot_parse` — The phrasing of the timing for this reminder is unclear. You must include a complete time description. Some examples that work: `1458678068`, `20`, `in 5 minutes`, `tomorrow`, `at 3:30pm`, `on Tuesday`, or `next week`. - `missing_argument` — An argument is missing. - `user_not_found` — That user can't be found. See https://docs.slack.dev/reference/methods/reminders.add */
|
|
76
|
+
export declare const addReminder: API.OperationMethod<AddReminderRequest, AddReminderResponse, AddReminderError, SlackOpContext>;
|
|
77
|
+
export type CompleteReminderError = SlackOpError;
|
|
78
|
+
/** Marks a reminder as complete. Required scopes — user: `reminders:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `cannot_complete_others` — Reminders for other team members can't be marked complete. - `cannot_complete_recurring` — Recurring reminders can't be marked complete. - `missing_argument` — An argument is missing. - `not_found` — That reminder can't be found. See https://docs.slack.dev/reference/methods/reminders.complete */
|
|
79
|
+
export declare const completeReminder: API.OperationMethod<CompleteReminderRequest, CompleteReminderResponse, CompleteReminderError, SlackOpContext>;
|
|
80
|
+
export type DeleteReminderError = SlackOpError;
|
|
81
|
+
/** Deletes a reminder. Required scopes — user: `reminders:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `missing_argument` — An argument is missing. - `not_found` — That reminder can't be found. See https://docs.slack.dev/reference/methods/reminders.delete */
|
|
82
|
+
export declare const deleteReminder: API.OperationMethod<DeleteReminderRequest, DeleteReminderResponse, DeleteReminderError, SlackOpContext>;
|
|
83
|
+
export type ListRemindersError = SlackOpError;
|
|
84
|
+
/** Lists all reminders created by or for a given user. Required scopes — user: `reminders:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `missing_argument` — An argument is missing. See https://docs.slack.dev/reference/methods/reminders.list */
|
|
85
|
+
export declare const listReminders: API.OperationMethod<ListRemindersRequest, ListRemindersResponse, ListRemindersError, SlackOpContext>;
|
|
86
|
+
export type RemindersInfoError = SlackOpError;
|
|
87
|
+
/** Gets information about a reminder. Required scopes — user: `reminders:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `missing_argument` — An argument is missing. - `not_found` — That reminder can't be found. See https://docs.slack.dev/reference/methods/reminders.info */
|
|
88
|
+
export declare const remindersInfo: API.OperationMethod<RemindersInfoRequest, RemindersInfoResponse, RemindersInfoError, SlackOpContext>;
|
|
89
|
+
//# sourceMappingURL=reminders.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reminders.d.ts","sourceRoot":"","sources":["../../src/services/reminders.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAClD,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAEjD,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,cAAc,EACpB,MAAM,gBAAgB,CAAC;AAIxB,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC;AAE7C,MAAM,WAAW,kBAAkB;IACjC,kCAAkC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,qQAAqQ;IACrQ,IAAI,EAAE,MAAM,CAAC;IACb,8HAA8H;IAC9H,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,qDAAqD;IACrD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EACtB,mBAAmB,EACnB,cAAc,CAOb,CAAC;AAEJ,MAAM,MAAM,kBAAkB,GAAG,YAAY,CAAC;AAC9C,8RAA8R;AAC9R,eAAO,MAAM,aAAa,EAAE,GAAG,CAAC,eAAe,CAC7C,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,EAClB,cAAc,CAOb,CAAC;AAEJ,MAAM,MAAM,kBAAkB,GAAG,YAAY,CAAC;AAC9C,2TAA2T;AAC3T,eAAO,MAAM,aAAa,EAAE,GAAG,CAAC,eAAe,CAC7C,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,EAClB,cAAc,CAOb,CAAC"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (docs.slack.dev JSON twins). Do not edit.
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
+
import * as API from "@distilled.cloud/core/api";
|
|
4
|
+
import * as T from "../traits.js";
|
|
5
|
+
import { SlackProtocol, } from "../protocol.js";
|
|
6
|
+
import { SlackError, SlackRateLimited } from "../errors.js";
|
|
7
|
+
import * as Retry from "../retry.js";
|
|
8
|
+
export const AddReminderRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
9
|
+
text: S.String,
|
|
10
|
+
time: S.String,
|
|
11
|
+
user: S.optional(S.String),
|
|
12
|
+
team_id: S.optional(S.String),
|
|
13
|
+
recurrence: S.optional(S.Unknown),
|
|
14
|
+
}).pipe(T.Http({ method: "POST", uri: "/reminders.add", code: 200 }))).annotate({
|
|
15
|
+
identifier: "AddReminderRequest",
|
|
16
|
+
});
|
|
17
|
+
export const AddReminderResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
18
|
+
ok: S.Boolean,
|
|
19
|
+
reminder: S.Unknown,
|
|
20
|
+
})).annotate({
|
|
21
|
+
identifier: "AddReminderResponse",
|
|
22
|
+
});
|
|
23
|
+
export const CompleteReminderRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
24
|
+
reminder: S.String,
|
|
25
|
+
team_id: S.optional(S.String),
|
|
26
|
+
}).pipe(T.Http({ method: "POST", uri: "/reminders.complete", code: 200 }))).annotate({
|
|
27
|
+
identifier: "CompleteReminderRequest",
|
|
28
|
+
});
|
|
29
|
+
export const CompleteReminderResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
30
|
+
ok: S.Boolean,
|
|
31
|
+
})).annotate({
|
|
32
|
+
identifier: "CompleteReminderResponse",
|
|
33
|
+
});
|
|
34
|
+
export const DeleteReminderRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
35
|
+
reminder: S.String,
|
|
36
|
+
team_id: S.optional(S.String),
|
|
37
|
+
}).pipe(T.Http({ method: "POST", uri: "/reminders.delete", code: 200 }))).annotate({
|
|
38
|
+
identifier: "DeleteReminderRequest",
|
|
39
|
+
});
|
|
40
|
+
export const DeleteReminderResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
41
|
+
ok: S.Boolean,
|
|
42
|
+
})).annotate({
|
|
43
|
+
identifier: "DeleteReminderResponse",
|
|
44
|
+
});
|
|
45
|
+
export const ListRemindersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
46
|
+
team_id: S.optional(S.String.pipe(T.Query())),
|
|
47
|
+
}).pipe(T.Http({ method: "GET", uri: "/reminders.list", code: 200 }))).annotate({
|
|
48
|
+
identifier: "ListRemindersRequest",
|
|
49
|
+
});
|
|
50
|
+
export const ListRemindersResponseRemindersList = /*@__PURE__*/ S.Array(S.Unknown);
|
|
51
|
+
export const ListRemindersResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
52
|
+
ok: S.Boolean,
|
|
53
|
+
reminders: S.optional(ListRemindersResponseRemindersList),
|
|
54
|
+
})).annotate({
|
|
55
|
+
identifier: "ListRemindersResponse",
|
|
56
|
+
});
|
|
57
|
+
export const RemindersInfoRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
58
|
+
reminder: S.String.pipe(T.Query()),
|
|
59
|
+
team_id: S.optional(S.String.pipe(T.Query())),
|
|
60
|
+
}).pipe(T.Http({ method: "GET", uri: "/reminders.info", code: 200 }))).annotate({
|
|
61
|
+
identifier: "RemindersInfoRequest",
|
|
62
|
+
});
|
|
63
|
+
export const RemindersInfoResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
64
|
+
ok: S.Boolean,
|
|
65
|
+
reminder: S.Unknown,
|
|
66
|
+
})).annotate({
|
|
67
|
+
identifier: "RemindersInfoResponse",
|
|
68
|
+
});
|
|
69
|
+
/** Creates a reminder. Required scopes — user: `reminders:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `cannot_add_bot` — Reminders can't be sent to bots. - `cannot_add_others` — Guests can't set reminders for other team members. - `cannot_add_others_recurring` — Recurring reminders can't be set for other team members. - `cannot_add_profile_only_user` — Reminders can't be sent to profile only users. - `cannot_add_slackbot` — Reminders can't be sent to Slackbot. - `cannot_parse` — The phrasing of the timing for this reminder is unclear. You must include a complete time description. Some examples that work: `1458678068`, `20`, `in 5 minutes`, `tomorrow`, `at 3:30pm`, `on Tuesday`, or `next week`. - `missing_argument` — An argument is missing. - `user_not_found` — That user can't be found. See https://docs.slack.dev/reference/methods/reminders.add */
|
|
70
|
+
export const addReminder = /*@__PURE__*/ API.make(() => ({
|
|
71
|
+
input: AddReminderRequest,
|
|
72
|
+
output: AddReminderResponse,
|
|
73
|
+
errors: [SlackError, SlackRateLimited],
|
|
74
|
+
protocol: SlackProtocol,
|
|
75
|
+
retry: Retry.Retry,
|
|
76
|
+
}));
|
|
77
|
+
/** Marks a reminder as complete. Required scopes — user: `reminders:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `cannot_complete_others` — Reminders for other team members can't be marked complete. - `cannot_complete_recurring` — Recurring reminders can't be marked complete. - `missing_argument` — An argument is missing. - `not_found` — That reminder can't be found. See https://docs.slack.dev/reference/methods/reminders.complete */
|
|
78
|
+
export const completeReminder = /*@__PURE__*/ API.make(() => ({
|
|
79
|
+
input: CompleteReminderRequest,
|
|
80
|
+
output: CompleteReminderResponse,
|
|
81
|
+
errors: [SlackError, SlackRateLimited],
|
|
82
|
+
protocol: SlackProtocol,
|
|
83
|
+
retry: Retry.Retry,
|
|
84
|
+
}));
|
|
85
|
+
/** Deletes a reminder. Required scopes — user: `reminders:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `missing_argument` — An argument is missing. - `not_found` — That reminder can't be found. See https://docs.slack.dev/reference/methods/reminders.delete */
|
|
86
|
+
export const deleteReminder = /*@__PURE__*/ API.make(() => ({
|
|
87
|
+
input: DeleteReminderRequest,
|
|
88
|
+
output: DeleteReminderResponse,
|
|
89
|
+
errors: [SlackError, SlackRateLimited],
|
|
90
|
+
protocol: SlackProtocol,
|
|
91
|
+
retry: Retry.Retry,
|
|
92
|
+
}));
|
|
93
|
+
/** Lists all reminders created by or for a given user. Required scopes — user: `reminders:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `missing_argument` — An argument is missing. See https://docs.slack.dev/reference/methods/reminders.list */
|
|
94
|
+
export const listReminders = /*@__PURE__*/ API.make(() => ({
|
|
95
|
+
input: ListRemindersRequest,
|
|
96
|
+
output: ListRemindersResponse,
|
|
97
|
+
errors: [SlackError, SlackRateLimited],
|
|
98
|
+
protocol: SlackProtocol,
|
|
99
|
+
retry: Retry.Retry,
|
|
100
|
+
}));
|
|
101
|
+
/** Gets information about a reminder. Required scopes — user: `reminders:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `missing_argument` — An argument is missing. - `not_found` — That reminder can't be found. See https://docs.slack.dev/reference/methods/reminders.info */
|
|
102
|
+
export const remindersInfo = /*@__PURE__*/ API.make(() => ({
|
|
103
|
+
input: RemindersInfoRequest,
|
|
104
|
+
output: RemindersInfoResponse,
|
|
105
|
+
errors: [SlackError, SlackRateLimited],
|
|
106
|
+
protocol: SlackProtocol,
|
|
107
|
+
retry: Retry.Retry,
|
|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,CAAC,CAAC;AAGJ,+SAA+S;AAC/S,MAAM,CAAC,MAAM,cAAc,GAKvB,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAChC,KAAK,EAAE,qBAAqB;IAC5B,MAAM,EAAE,sBAAsB;IAC9B,MAAM,EAAE,CAAC,UAAU,EAAE,gBAAgB,CAAC;IACtC,QAAQ,EAAE,aAAa;IACvB,KAAK,EAAE,KAAK,CAAC,KAAK;CACnB,CAAC,CAAC,CAAC;AAGJ,8RAA8R;AAC9R,MAAM,CAAC,MAAM,aAAa,GAKtB,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAChC,KAAK,EAAE,oBAAoB;IAC3B,MAAM,EAAE,qBAAqB;IAC7B,MAAM,EAAE,CAAC,UAAU,EAAE,gBAAgB,CAAC;IACtC,QAAQ,EAAE,aAAa;IACvB,KAAK,EAAE,KAAK,CAAC,KAAK;CACnB,CAAC,CAAC,CAAC;AAGJ,2TAA2T;AAC3T,MAAM,CAAC,MAAM,aAAa,GAKtB,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAChC,KAAK,EAAE,oBAAoB;IAC3B,MAAM,EAAE,qBAAqB;IAC7B,MAAM,EAAE,CAAC,UAAU,EAAE,gBAAgB,CAAC;IACtC,QAAQ,EAAE,aAAa;IACvB,KAAK,EAAE,KAAK,CAAC,KAAK;CACnB,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
2
|
+
import * as API from "@distilled.cloud/core/api";
|
|
3
|
+
import { type SlackOpError, type SlackOpContext } from "../protocol.ts";
|
|
4
|
+
export type { SlackOpError, SlackOpContext };
|
|
5
|
+
export interface ConnectRtmRequest {
|
|
6
|
+
/** Batch presence deliveries via subscription. Enabling changes the shape of `presence_change` events. See [batch presence](/apis/web-api/user-presence-and-status#batching). */
|
|
7
|
+
batch_presence_aware?: boolean;
|
|
8
|
+
/** Only deliver presence events when requested by subscription. See [presence subscriptions](/apis/web-api/user-presence-and-status#subscriptions). */
|
|
9
|
+
presence_sub?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const ConnectRtmRequest: S.Schema<ConnectRtmRequest>;
|
|
12
|
+
export interface ConnectRtmResponseSelf {
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const ConnectRtmResponseSelf: S.Schema<ConnectRtmResponseSelf>;
|
|
17
|
+
export interface ConnectRtmResponseTeam {
|
|
18
|
+
domain: string;
|
|
19
|
+
id: string;
|
|
20
|
+
name: string;
|
|
21
|
+
enterprise_id?: string;
|
|
22
|
+
enterprise_name?: string;
|
|
23
|
+
}
|
|
24
|
+
export declare const ConnectRtmResponseTeam: S.Schema<ConnectRtmResponseTeam>;
|
|
25
|
+
export interface ConnectRtmResponse {
|
|
26
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
27
|
+
ok: boolean;
|
|
28
|
+
url: string;
|
|
29
|
+
self: ConnectRtmResponseSelf;
|
|
30
|
+
team: ConnectRtmResponseTeam;
|
|
31
|
+
}
|
|
32
|
+
export declare const ConnectRtmResponse: S.Schema<ConnectRtmResponse>;
|
|
33
|
+
export interface StartRtmRequest {
|
|
34
|
+
/** Return timestamp only for latest message object of each channel (improves performance). */
|
|
35
|
+
simple_latest?: boolean;
|
|
36
|
+
/** Skip unread counts for each channel (improves performance). */
|
|
37
|
+
no_unreads?: boolean;
|
|
38
|
+
/** Returns MPIMs to the client in the API response. */
|
|
39
|
+
mpim_aware?: boolean;
|
|
40
|
+
/** Only deliver presence events when requested by subscription. See [presence subscriptions](/apis/web-api/user-presence-and-status#subscriptions). */
|
|
41
|
+
presence_sub?: boolean;
|
|
42
|
+
/** Batch presence deliveries via subscription. Enabling changes the shape of `presence_change` events. See [batch presence](/apis/web-api/user-presence-and-status#batching). */
|
|
43
|
+
batch_presence_aware?: boolean;
|
|
44
|
+
/** Exclude latest timestamps for channels, groups, mpims, and ims. Automatically sets `no_unreads` to `1` */
|
|
45
|
+
no_latest?: boolean;
|
|
46
|
+
/** Set this to `true` to receive the locale for users and channels. Defaults to `false` */
|
|
47
|
+
include_locale?: boolean;
|
|
48
|
+
}
|
|
49
|
+
export declare const StartRtmRequest: S.Schema<StartRtmRequest>;
|
|
50
|
+
export type StartRtmResponseSelf = ConnectRtmResponseSelf;
|
|
51
|
+
export declare const StartRtmResponseSelf: S.Schema<ConnectRtmResponseSelf>;
|
|
52
|
+
export type StartRtmResponseTeam = ConnectRtmResponseTeam;
|
|
53
|
+
export declare const StartRtmResponseTeam: S.Schema<ConnectRtmResponseTeam>;
|
|
54
|
+
export interface StartRtmResponse {
|
|
55
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
56
|
+
ok: boolean;
|
|
57
|
+
url: string;
|
|
58
|
+
self: ConnectRtmResponseSelf;
|
|
59
|
+
team: ConnectRtmResponseTeam;
|
|
60
|
+
}
|
|
61
|
+
export declare const StartRtmResponse: S.Schema<StartRtmResponse>;
|
|
62
|
+
export type ConnectRtmError = SlackOpError;
|
|
63
|
+
/** Starts a Real Time Messaging session. Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `migration_in_progress` — Team is being migrated between servers. See [the `team_migration_started` event documentation](/reference/events/team_migration_started) for details. See https://docs.slack.dev/reference/methods/rtm.connect */
|
|
64
|
+
export declare const connectRtm: API.OperationMethod<ConnectRtmRequest, ConnectRtmResponse, ConnectRtmError, SlackOpContext>;
|
|
65
|
+
export type StartRtmError = SlackOpError;
|
|
66
|
+
/** Deprecated: Starts a Real Time Messaging session. Use rtm.connect instead. Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `method_deprecated` — `rtm.start` is deprecated. Please use `rtm.connect` instead of `rtm.start`. Read https://docs.slack.dev/changelog/2021-10-rtm-start-to-stop for more info. - `migration_in_progress` — Workspace is being migrated between servers. See [the `team_migration_started` event documentation](/reference/events/team_migration_started) for details. - `rtm_connect_required` — `rtm.start` is deprecated. Please use `rtm.connect` instead of `rtm.start`. Read https://docs.slack.dev/changelog/2021-10-rtm-start-to-stop for more info. See https://docs.slack.dev/reference/methods/rtm.start */
|
|
67
|
+
export declare const startRtm: API.OperationMethod<StartRtmRequest, StartRtmResponse, StartRtmError, SlackOpContext>;
|
|
68
|
+
//# sourceMappingURL=rtm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rtm.d.ts","sourceRoot":"","sources":["../../src/services/rtm.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAClD,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAEjD,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,cAAc,EACpB,MAAM,gBAAgB,CAAC;AAIxB,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC;AAE7C,MAAM,WAAW,iBAAiB;IAChC,iLAAiL;IACjL,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,uJAAuJ;IACvJ,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AACD,eAAO,MAAM,iBAAiB,EAOjB,CAAC,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAEzC,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd;AACD,eAAO,MAAM,sBAAsB,EAOtB,CAAC,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC;AAE9C,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,MAAM,CAAC;IACf,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AACD,eAAO,MAAM,sBAAsB,EAUtB,CAAC,CAAC,MAAM,CAAC,sBAA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eAAO,MAAM,UAAU,EAAE,GAAG,CAAC,eAAe,CAC1C,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,cAAc,CAOb,CAAC;AAEJ,MAAM,MAAM,aAAa,GAAG,YAAY,CAAC;AACzC,wvBAAwvB;AACxvB,eAAO,MAAM,QAAQ,EAAE,GAAG,CAAC,eAAe,CACxC,eAAe,EACf,gBAAgB,EAChB,aAAa,EACb,cAAc,CAOb,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (docs.slack.dev JSON twins). Do not edit.
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
+
import * as API from "@distilled.cloud/core/api";
|
|
4
|
+
import * as T from "../traits.js";
|
|
5
|
+
import { SlackProtocol, } from "../protocol.js";
|
|
6
|
+
import { SlackError, SlackRateLimited } from "../errors.js";
|
|
7
|
+
import * as Retry from "../retry.js";
|
|
8
|
+
export const ConnectRtmRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
9
|
+
batch_presence_aware: S.optional(S.Boolean.pipe(T.Query())),
|
|
10
|
+
presence_sub: S.optional(S.Boolean.pipe(T.Query())),
|
|
11
|
+
}).pipe(T.Http({ method: "GET", uri: "/rtm.connect", code: 200 }))).annotate({
|
|
12
|
+
identifier: "ConnectRtmRequest",
|
|
13
|
+
});
|
|
14
|
+
export const ConnectRtmResponseSelf = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
15
|
+
id: S.String,
|
|
16
|
+
name: S.String,
|
|
17
|
+
})).annotate({
|
|
18
|
+
identifier: "ConnectRtmResponseSelf",
|
|
19
|
+
});
|
|
20
|
+
export const ConnectRtmResponseTeam = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
21
|
+
domain: S.String,
|
|
22
|
+
id: S.String,
|
|
23
|
+
name: S.String,
|
|
24
|
+
enterprise_id: S.optional(S.String),
|
|
25
|
+
enterprise_name: S.optional(S.String),
|
|
26
|
+
})).annotate({
|
|
27
|
+
identifier: "ConnectRtmResponseTeam",
|
|
28
|
+
});
|
|
29
|
+
export const ConnectRtmResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
30
|
+
ok: S.Boolean,
|
|
31
|
+
url: S.String,
|
|
32
|
+
self: ConnectRtmResponseSelf,
|
|
33
|
+
team: ConnectRtmResponseTeam,
|
|
34
|
+
})).annotate({
|
|
35
|
+
identifier: "ConnectRtmResponse",
|
|
36
|
+
});
|
|
37
|
+
export const StartRtmRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
38
|
+
simple_latest: S.optional(S.Boolean.pipe(T.Query())),
|
|
39
|
+
no_unreads: S.optional(S.Boolean.pipe(T.Query())),
|
|
40
|
+
mpim_aware: S.optional(S.Boolean.pipe(T.Query())),
|
|
41
|
+
presence_sub: S.optional(S.Boolean.pipe(T.Query())),
|
|
42
|
+
batch_presence_aware: S.optional(S.Boolean.pipe(T.Query())),
|
|
43
|
+
no_latest: S.optional(S.Boolean.pipe(T.Query())),
|
|
44
|
+
include_locale: S.optional(S.Boolean.pipe(T.Query())),
|
|
45
|
+
}).pipe(T.Http({ method: "GET", uri: "/rtm.start", code: 200 }))).annotate({
|
|
46
|
+
identifier: "StartRtmRequest",
|
|
47
|
+
});
|
|
48
|
+
export const StartRtmResponseSelf = ConnectRtmResponseSelf;
|
|
49
|
+
export const StartRtmResponseTeam = ConnectRtmResponseTeam;
|
|
50
|
+
export const StartRtmResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
51
|
+
ok: S.Boolean,
|
|
52
|
+
url: S.String,
|
|
53
|
+
self: ConnectRtmResponseSelf,
|
|
54
|
+
team: ConnectRtmResponseTeam,
|
|
55
|
+
})).annotate({
|
|
56
|
+
identifier: "StartRtmResponse",
|
|
57
|
+
});
|
|
58
|
+
/** Starts a Real Time Messaging session. Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `migration_in_progress` — Team is being migrated between servers. See [the `team_migration_started` event documentation](/reference/events/team_migration_started) for details. See https://docs.slack.dev/reference/methods/rtm.connect */
|
|
59
|
+
export const connectRtm = /*@__PURE__*/ API.make(() => ({
|
|
60
|
+
input: ConnectRtmRequest,
|
|
61
|
+
output: ConnectRtmResponse,
|
|
62
|
+
errors: [SlackError, SlackRateLimited],
|
|
63
|
+
protocol: SlackProtocol,
|
|
64
|
+
retry: Retry.Retry,
|
|
65
|
+
}));
|
|
66
|
+
/** Deprecated: Starts a Real Time Messaging session. Use rtm.connect instead. Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `method_deprecated` — `rtm.start` is deprecated. Please use `rtm.connect` instead of `rtm.start`. Read https://docs.slack.dev/changelog/2021-10-rtm-start-to-stop for more info. - `migration_in_progress` — Workspace is being migrated between servers. See [the `team_migration_started` event documentation](/reference/events/team_migration_started) for details. - `rtm_connect_required` — `rtm.start` is deprecated. Please use `rtm.connect` instead of `rtm.start`. Read https://docs.slack.dev/changelog/2021-10-rtm-start-to-stop for more info. See https://docs.slack.dev/reference/methods/rtm.start */
|
|
67
|
+
export const startRtm = /*@__PURE__*/ API.make(() => ({
|
|
68
|
+
input: StartRtmRequest,
|
|
69
|
+
output: StartRtmResponse,
|
|
70
|
+
errors: [SlackError, SlackRateLimited],
|
|
71
|
+
protocol: SlackProtocol,
|
|
72
|
+
retry: Retry.Retry,
|
|
73
|
+
}));
|
|
74
|
+
//# sourceMappingURL=rtm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rtm.js","sourceRoot":"","sources":["../../src/services/rtm.ts"],"names":[],"mappings":"AAAA,wGAAwG;AACxG,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAClD,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,EACL,aAAa,GAGd,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,cAA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B;IACxB,MAAM,EAAE,CAAC,UAAU,EAAE,gBAAgB,CAAC;IACtC,QAAQ,EAAE,aAAa;IACvB,KAAK,EAAE,KAAK,CAAC,KAAK;CACnB,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
2
|
+
import * as API from "@distilled.cloud/core/api";
|
|
3
|
+
import { type SlackOpError, type SlackOpContext } from "../protocol.ts";
|
|
4
|
+
export type { SlackOpError, SlackOpContext };
|
|
5
|
+
export type SearchAllRequestSortDir = "asc" | "desc";
|
|
6
|
+
export declare const SearchAllRequestSortDir: any;
|
|
7
|
+
export interface SearchAllRequest {
|
|
8
|
+
count?: number;
|
|
9
|
+
/** Pass a value of `true` to enable query highlight markers (see below). */
|
|
10
|
+
highlight?: boolean;
|
|
11
|
+
page?: number;
|
|
12
|
+
/** Search query. May contains booleans, etc. */
|
|
13
|
+
query: string;
|
|
14
|
+
/** Return matches sorted by either `score` or `timestamp`. */
|
|
15
|
+
sort?: string;
|
|
16
|
+
/** Change sort direction to ascending (`asc`) or descending (`desc`). */
|
|
17
|
+
sort_dir?: SearchAllRequestSortDir | (string & {});
|
|
18
|
+
/** encoded team id to search in, required if org token is used */
|
|
19
|
+
team_id?: string;
|
|
20
|
+
}
|
|
21
|
+
export declare const SearchAllRequest: S.Schema<SearchAllRequest>;
|
|
22
|
+
export interface SearchAllResponse {
|
|
23
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
24
|
+
ok: boolean;
|
|
25
|
+
files?: unknown;
|
|
26
|
+
callstack?: string;
|
|
27
|
+
messages?: unknown;
|
|
28
|
+
posts?: unknown;
|
|
29
|
+
/** Search query. */
|
|
30
|
+
query?: string;
|
|
31
|
+
}
|
|
32
|
+
export declare const SearchAllResponse: S.Schema<SearchAllResponse>;
|
|
33
|
+
export type SearchFilesRequestSortDir = "asc" | "desc";
|
|
34
|
+
export declare const SearchFilesRequestSortDir: any;
|
|
35
|
+
export interface SearchFilesRequest {
|
|
36
|
+
count?: number;
|
|
37
|
+
/** Pass a value of `true` to enable query highlight markers (see below). */
|
|
38
|
+
highlight?: boolean;
|
|
39
|
+
page?: number;
|
|
40
|
+
/** Search query. */
|
|
41
|
+
query: string;
|
|
42
|
+
/** Return matches sorted by either `score` or `timestamp`. */
|
|
43
|
+
sort?: string;
|
|
44
|
+
/** Change sort direction to ascending (`asc`) or descending (`desc`). */
|
|
45
|
+
sort_dir?: SearchFilesRequestSortDir | (string & {});
|
|
46
|
+
/** encoded team id to search in, required if org token is used */
|
|
47
|
+
team_id?: string;
|
|
48
|
+
}
|
|
49
|
+
export declare const SearchFilesRequest: S.Schema<SearchFilesRequest>;
|
|
50
|
+
export type SearchFilesResponseFilesPaginationWarningsList = Array<string>;
|
|
51
|
+
export declare const SearchFilesResponseFilesPaginationWarningsList: S.Schema<SearchFilesResponseFilesPaginationWarningsList>;
|
|
52
|
+
export interface SearchFilesResponseFilesPagination {
|
|
53
|
+
/** Last result id */
|
|
54
|
+
last?: number;
|
|
55
|
+
warnings?: SearchFilesResponseFilesPaginationWarningsList;
|
|
56
|
+
/** Total count of results */
|
|
57
|
+
total_count?: number;
|
|
58
|
+
/** Number of pages */
|
|
59
|
+
page_count?: number;
|
|
60
|
+
/** Number of results per page */
|
|
61
|
+
per_page?: number;
|
|
62
|
+
/** Current page */
|
|
63
|
+
page?: number;
|
|
64
|
+
/** First result id */
|
|
65
|
+
first?: number;
|
|
66
|
+
}
|
|
67
|
+
export declare const SearchFilesResponseFilesPagination: S.Schema<SearchFilesResponseFilesPagination>;
|
|
68
|
+
export type SearchFilesResponseFilesMatchesList = Array<unknown>;
|
|
69
|
+
export declare const SearchFilesResponseFilesMatchesList: S.Schema<SearchFilesResponseFilesMatchesList>;
|
|
70
|
+
export type SearchFilesResponseFilesPagingWarningsList = Array<string>;
|
|
71
|
+
export declare const SearchFilesResponseFilesPagingWarningsList: S.Schema<SearchFilesResponseFilesPagingWarningsList>;
|
|
72
|
+
export interface SearchFilesResponseFilesPaging {
|
|
73
|
+
/** Number of results per page */
|
|
74
|
+
count?: number;
|
|
75
|
+
/** Number of pages */
|
|
76
|
+
pages?: number;
|
|
77
|
+
/** Number of results */
|
|
78
|
+
total?: number;
|
|
79
|
+
/** Current page */
|
|
80
|
+
page?: number;
|
|
81
|
+
warnings?: SearchFilesResponseFilesPagingWarningsList;
|
|
82
|
+
}
|
|
83
|
+
export declare const SearchFilesResponseFilesPaging: S.Schema<SearchFilesResponseFilesPaging>;
|
|
84
|
+
export interface SearchFilesResponseFiles {
|
|
85
|
+
pagination?: SearchFilesResponseFilesPagination;
|
|
86
|
+
matches?: SearchFilesResponseFilesMatchesList;
|
|
87
|
+
paging?: SearchFilesResponseFilesPaging;
|
|
88
|
+
all_stop_words?: boolean;
|
|
89
|
+
/** Total number of file search results. */
|
|
90
|
+
total?: number;
|
|
91
|
+
query_too_long?: boolean;
|
|
92
|
+
}
|
|
93
|
+
export declare const SearchFilesResponseFiles: S.Schema<SearchFilesResponseFiles>;
|
|
94
|
+
export type SearchFilesResponseUsersMap = {
|
|
95
|
+
[key: string]: unknown | undefined;
|
|
96
|
+
};
|
|
97
|
+
export declare const SearchFilesResponseUsersMap: S.Schema<SearchFilesResponseUsersMap>;
|
|
98
|
+
export type SearchFilesResponseTeamsMap = {
|
|
99
|
+
[key: string]: unknown | undefined;
|
|
100
|
+
};
|
|
101
|
+
export declare const SearchFilesResponseTeamsMap: S.Schema<SearchFilesResponseTeamsMap>;
|
|
102
|
+
export type SearchFilesResponseChannelsMap = {
|
|
103
|
+
[key: string]: unknown | undefined;
|
|
104
|
+
};
|
|
105
|
+
export declare const SearchFilesResponseChannelsMap: S.Schema<SearchFilesResponseChannelsMap>;
|
|
106
|
+
export type SearchFilesResponseImsMap = {
|
|
107
|
+
[key: string]: unknown | undefined;
|
|
108
|
+
};
|
|
109
|
+
export declare const SearchFilesResponseImsMap: S.Schema<SearchFilesResponseImsMap>;
|
|
110
|
+
export type SearchFilesResponseGroupsMap = {
|
|
111
|
+
[key: string]: unknown | undefined;
|
|
112
|
+
};
|
|
113
|
+
export declare const SearchFilesResponseGroupsMap: S.Schema<SearchFilesResponseGroupsMap>;
|
|
114
|
+
export interface SearchFilesResponse {
|
|
115
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
116
|
+
ok: boolean;
|
|
117
|
+
files?: SearchFilesResponseFiles;
|
|
118
|
+
callstack?: string;
|
|
119
|
+
users?: SearchFilesResponseUsersMap;
|
|
120
|
+
teams?: SearchFilesResponseTeamsMap;
|
|
121
|
+
channels?: SearchFilesResponseChannelsMap;
|
|
122
|
+
ims?: SearchFilesResponseImsMap;
|
|
123
|
+
groups?: SearchFilesResponseGroupsMap;
|
|
124
|
+
/** Search query. */
|
|
125
|
+
query?: string;
|
|
126
|
+
ignored_exclude_bots_pref?: boolean;
|
|
127
|
+
}
|
|
128
|
+
export declare const SearchFilesResponse: S.Schema<SearchFilesResponse>;
|
|
129
|
+
export type SearchMessagesRequestSortDir = "asc" | "desc" | "";
|
|
130
|
+
export declare const SearchMessagesRequestSortDir: any;
|
|
131
|
+
export interface SearchMessagesRequest {
|
|
132
|
+
/** Pass the number of results you want per "page". Maximum of `100`. */
|
|
133
|
+
count?: number;
|
|
134
|
+
/** Pass a value of `true` to enable query highlight markers (see below). */
|
|
135
|
+
highlight?: boolean;
|
|
136
|
+
page?: number;
|
|
137
|
+
/** Use this when getting results with cursormark pagination. For first call send `*` for subsequent calls, send the value of `next_cursor` returned in the previous call's results */
|
|
138
|
+
cursor?: string;
|
|
139
|
+
/** Search query. */
|
|
140
|
+
query: string;
|
|
141
|
+
/** Return matches sorted by either `score` or `timestamp`. */
|
|
142
|
+
sort?: string;
|
|
143
|
+
/** Change sort direction to ascending (`asc`) or descending (`desc`). */
|
|
144
|
+
sort_dir?: SearchMessagesRequestSortDir | (string & {});
|
|
145
|
+
/** encoded team id to search in, required if org token is used */
|
|
146
|
+
team_id?: string;
|
|
147
|
+
}
|
|
148
|
+
export declare const SearchMessagesRequest: S.Schema<SearchMessagesRequest>;
|
|
149
|
+
export type SearchMessagesResponseUsersMap = {
|
|
150
|
+
[key: string]: unknown | undefined;
|
|
151
|
+
};
|
|
152
|
+
export declare const SearchMessagesResponseUsersMap: S.Schema<SearchMessagesResponseUsersMap>;
|
|
153
|
+
export type SearchMessagesResponseMessagesMatchesList = Array<unknown>;
|
|
154
|
+
export declare const SearchMessagesResponseMessagesMatchesList: S.Schema<SearchMessagesResponseMessagesMatchesList>;
|
|
155
|
+
export type SearchMessagesResponseMessagesPaginationWarningsList = Array<string>;
|
|
156
|
+
export declare const SearchMessagesResponseMessagesPaginationWarningsList: S.Schema<SearchMessagesResponseMessagesPaginationWarningsList>;
|
|
157
|
+
export interface SearchMessagesResponseMessagesPagination {
|
|
158
|
+
/** Last result id */
|
|
159
|
+
last?: number;
|
|
160
|
+
warnings?: SearchMessagesResponseMessagesPaginationWarningsList;
|
|
161
|
+
/** Total count of results */
|
|
162
|
+
total_count?: number;
|
|
163
|
+
/** Number of pages */
|
|
164
|
+
page_count?: number;
|
|
165
|
+
/** Number of results per page */
|
|
166
|
+
per_page?: number;
|
|
167
|
+
/** Current page */
|
|
168
|
+
page?: number;
|
|
169
|
+
/** First result id */
|
|
170
|
+
first?: number;
|
|
171
|
+
/** value of next cursor to be passed when using cursormark pagination */
|
|
172
|
+
next_cursor?: string;
|
|
173
|
+
}
|
|
174
|
+
export declare const SearchMessagesResponseMessagesPagination: S.Schema<SearchMessagesResponseMessagesPagination>;
|
|
175
|
+
export type SearchMessagesResponseMessagesPagingWarningsList = Array<string>;
|
|
176
|
+
export declare const SearchMessagesResponseMessagesPagingWarningsList: S.Schema<SearchMessagesResponseMessagesPagingWarningsList>;
|
|
177
|
+
export interface SearchMessagesResponseMessagesPaging {
|
|
178
|
+
/** Number of results per page */
|
|
179
|
+
count?: number;
|
|
180
|
+
/** Number of results */
|
|
181
|
+
total?: number;
|
|
182
|
+
/** Number of pages */
|
|
183
|
+
pages?: number;
|
|
184
|
+
/** Current page */
|
|
185
|
+
page?: number;
|
|
186
|
+
warnings?: SearchMessagesResponseMessagesPagingWarningsList;
|
|
187
|
+
/** next cursor to be passed to the method for next set of results using cursor pagination */
|
|
188
|
+
next_cursor?: string;
|
|
189
|
+
}
|
|
190
|
+
export declare const SearchMessagesResponseMessagesPaging: S.Schema<SearchMessagesResponseMessagesPaging>;
|
|
191
|
+
export interface SearchMessagesResponseMessages {
|
|
192
|
+
matches?: SearchMessagesResponseMessagesMatchesList;
|
|
193
|
+
pagination?: SearchMessagesResponseMessagesPagination;
|
|
194
|
+
/** Total number of message search results. */
|
|
195
|
+
total?: number;
|
|
196
|
+
all_stop_words?: boolean;
|
|
197
|
+
paging?: SearchMessagesResponseMessagesPaging;
|
|
198
|
+
}
|
|
199
|
+
export declare const SearchMessagesResponseMessages: S.Schema<SearchMessagesResponseMessages>;
|
|
200
|
+
export type SearchMessagesResponseTeamsMap = {
|
|
201
|
+
[key: string]: unknown | undefined;
|
|
202
|
+
};
|
|
203
|
+
export declare const SearchMessagesResponseTeamsMap: S.Schema<SearchMessagesResponseTeamsMap>;
|
|
204
|
+
export type SearchMessagesResponseBotsMap = {
|
|
205
|
+
[key: string]: unknown | undefined;
|
|
206
|
+
};
|
|
207
|
+
export declare const SearchMessagesResponseBotsMap: S.Schema<SearchMessagesResponseBotsMap>;
|
|
208
|
+
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
209
|
+
export interface SearchMessagesResponseResponseMetadata {
|
|
210
|
+
/** Cursor for the next page — pass as `cursor` on the next call. */
|
|
211
|
+
next_cursor?: string;
|
|
212
|
+
}
|
|
213
|
+
export declare const SearchMessagesResponseResponseMetadata: S.Schema<SearchMessagesResponseResponseMetadata>;
|
|
214
|
+
export interface SearchMessagesResponse {
|
|
215
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
216
|
+
ok: boolean;
|
|
217
|
+
callstack?: string;
|
|
218
|
+
users?: SearchMessagesResponseUsersMap;
|
|
219
|
+
messages?: SearchMessagesResponseMessages;
|
|
220
|
+
show_feedback?: boolean;
|
|
221
|
+
teams?: SearchMessagesResponseTeamsMap;
|
|
222
|
+
/** Search query. */
|
|
223
|
+
query?: string;
|
|
224
|
+
bots?: SearchMessagesResponseBotsMap;
|
|
225
|
+
ignored_exclude_bots_pref?: boolean;
|
|
226
|
+
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
227
|
+
response_metadata?: SearchMessagesResponseResponseMetadata;
|
|
228
|
+
}
|
|
229
|
+
export declare const SearchMessagesResponse: S.Schema<SearchMessagesResponse>;
|
|
230
|
+
export type SearchAllError = SlackOpError;
|
|
231
|
+
/** Searches for messages and files matching a query. Required scopes — user: `search:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `no_query` — No query was provided. See https://docs.slack.dev/reference/methods/search.all */
|
|
232
|
+
export declare const searchAll: API.OperationMethod<SearchAllRequest, SearchAllResponse, SearchAllError, SlackOpContext>;
|
|
233
|
+
export type SearchFilesError = SlackOpError;
|
|
234
|
+
/** Searches for files matching a query. Required scopes — user: `search:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `no_query` — No query was provided. See https://docs.slack.dev/reference/methods/search.files */
|
|
235
|
+
export declare const searchFiles: API.OperationMethod<SearchFilesRequest, SearchFilesResponse, SearchFilesError, SlackOpContext>;
|
|
236
|
+
export type SearchMessagesError = SlackOpError;
|
|
237
|
+
/** Searches for messages matching a query. Required scopes — user: `search:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `no_query` — No query was provided. See https://docs.slack.dev/reference/methods/search.messages */
|
|
238
|
+
export declare const searchMessages: API.OperationMethod<SearchMessagesRequest, SearchMessagesResponse, SearchMessagesError, SlackOpContext>;
|
|
239
|
+
//# sourceMappingURL=search.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../src/services/search.ts"],"names":[],"mappings":"AACA,OAAO,K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