@distilled.cloud/slack 0.0.0 → 1.0.0-rc.11
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 +3217 -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 +256 -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 +333 -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 +238 -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 +7722 -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 +642 -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 +834 -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 +605 -0
- package/src/traits.ts +45 -0
|
@@ -0,0 +1,309 @@
|
|
|
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 { slackPaginate } from "../pagination.js";
|
|
7
|
+
import { SlackError, SlackRateLimited } from "../errors.js";
|
|
8
|
+
import * as Retry from "../retry.js";
|
|
9
|
+
export const DeletePhotoRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/users.deletePhoto", code: 200 }))).annotate({
|
|
10
|
+
identifier: "DeletePhotoRequest",
|
|
11
|
+
});
|
|
12
|
+
export const DeletePhotoResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
13
|
+
ok: S.Boolean,
|
|
14
|
+
})).annotate({
|
|
15
|
+
identifier: "DeletePhotoResponse",
|
|
16
|
+
});
|
|
17
|
+
export const GetPresenceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
18
|
+
user: S.optional(S.String.pipe(T.Query())),
|
|
19
|
+
}).pipe(T.Http({ method: "GET", uri: "/users.getPresence", code: 200 }))).annotate({
|
|
20
|
+
identifier: "GetPresenceRequest",
|
|
21
|
+
});
|
|
22
|
+
export const GetPresenceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
23
|
+
ok: S.Boolean,
|
|
24
|
+
last_activity: S.optional(S.Number),
|
|
25
|
+
manual_away: S.optional(S.Boolean),
|
|
26
|
+
presence: S.String,
|
|
27
|
+
online: S.optional(S.Boolean),
|
|
28
|
+
connection_count: S.optional(S.Number),
|
|
29
|
+
auto_away: S.optional(S.Boolean),
|
|
30
|
+
})).annotate({
|
|
31
|
+
identifier: "GetPresenceResponse",
|
|
32
|
+
});
|
|
33
|
+
export const GetProfileRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
34
|
+
include_labels: S.optional(S.Boolean.pipe(T.Query())),
|
|
35
|
+
user: S.optional(S.String.pipe(T.Query())),
|
|
36
|
+
}).pipe(T.Http({ method: "GET", uri: "/users.profile.get", code: 200 }))).annotate({
|
|
37
|
+
identifier: "GetProfileRequest",
|
|
38
|
+
});
|
|
39
|
+
export const GetProfileResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
40
|
+
ok: S.Boolean,
|
|
41
|
+
profile: S.Unknown,
|
|
42
|
+
})).annotate({
|
|
43
|
+
identifier: "GetProfileResponse",
|
|
44
|
+
});
|
|
45
|
+
export const ListUsersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
46
|
+
cursor: S.optional(S.String.pipe(T.Query())),
|
|
47
|
+
include_locale: S.optional(S.Boolean.pipe(T.Query())),
|
|
48
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
49
|
+
team_id: S.optional(S.String.pipe(T.Query())),
|
|
50
|
+
}).pipe(T.Http({ method: "GET", uri: "/users.list", code: 200 }))).annotate({
|
|
51
|
+
identifier: "ListUsersRequest",
|
|
52
|
+
});
|
|
53
|
+
export const ListUsersResponseMembersList = /*@__PURE__*/ S.Array(S.Unknown);
|
|
54
|
+
export const ListUsersResponseResponseMetadata = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
55
|
+
next_cursor: S.optional(S.String),
|
|
56
|
+
})).annotate({
|
|
57
|
+
identifier: "ListUsersResponseResponseMetadata",
|
|
58
|
+
});
|
|
59
|
+
export const ListUsersResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
60
|
+
ok: S.Boolean,
|
|
61
|
+
members: ListUsersResponseMembersList,
|
|
62
|
+
cache_ts: S.Number,
|
|
63
|
+
response_metadata: S.optional(ListUsersResponseResponseMetadata),
|
|
64
|
+
offset: S.optional(S.String),
|
|
65
|
+
})).annotate({
|
|
66
|
+
identifier: "ListUsersResponse",
|
|
67
|
+
});
|
|
68
|
+
export const LookupByEmailRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
69
|
+
email: S.String.pipe(T.Query()),
|
|
70
|
+
}).pipe(T.Http({ method: "GET", uri: "/users.lookupByEmail", code: 200 }))).annotate({
|
|
71
|
+
identifier: "LookupByEmailRequest",
|
|
72
|
+
});
|
|
73
|
+
export const LookupByEmailResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
74
|
+
ok: S.Boolean,
|
|
75
|
+
user: S.Unknown,
|
|
76
|
+
})).annotate({
|
|
77
|
+
identifier: "LookupByEmailResponse",
|
|
78
|
+
});
|
|
79
|
+
export const LookupDiscoverableContactRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
80
|
+
email: S.String,
|
|
81
|
+
}).pipe(T.Http({
|
|
82
|
+
method: "POST",
|
|
83
|
+
uri: "/users.discoverableContacts.lookup",
|
|
84
|
+
code: 200,
|
|
85
|
+
}))).annotate({
|
|
86
|
+
identifier: "LookupDiscoverableContactRequest",
|
|
87
|
+
});
|
|
88
|
+
export const LookupDiscoverableContactResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
89
|
+
ok: S.Boolean,
|
|
90
|
+
is_discoverable: S.Boolean,
|
|
91
|
+
})).annotate({
|
|
92
|
+
identifier: "LookupDiscoverableContactResponse",
|
|
93
|
+
});
|
|
94
|
+
export const SetActiveRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "POST", uri: "/users.setActive", code: 200 }))).annotate({
|
|
95
|
+
identifier: "SetActiveRequest",
|
|
96
|
+
});
|
|
97
|
+
export const SetActiveResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
98
|
+
ok: S.Boolean,
|
|
99
|
+
})).annotate({
|
|
100
|
+
identifier: "SetActiveResponse",
|
|
101
|
+
});
|
|
102
|
+
export const SetPhotoRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
103
|
+
crop_w: S.optional(S.String),
|
|
104
|
+
crop_x: S.optional(S.String),
|
|
105
|
+
crop_y: S.optional(S.String),
|
|
106
|
+
image: S.optional(S.Unknown),
|
|
107
|
+
}).pipe(T.Http({
|
|
108
|
+
method: "POST",
|
|
109
|
+
uri: "/users.setPhoto",
|
|
110
|
+
code: 200,
|
|
111
|
+
contentType: "form-urlencoded",
|
|
112
|
+
}))).annotate({
|
|
113
|
+
identifier: "SetPhotoRequest",
|
|
114
|
+
});
|
|
115
|
+
export const SetPhotoResponseProfileMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
116
|
+
export const SetPhotoResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
117
|
+
ok: S.Boolean,
|
|
118
|
+
profile: SetPhotoResponseProfileMap,
|
|
119
|
+
})).annotate({
|
|
120
|
+
identifier: "SetPhotoResponse",
|
|
121
|
+
});
|
|
122
|
+
export const SetPresenceRequestPresence = S.String;
|
|
123
|
+
export const SetPresenceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
124
|
+
presence: SetPresenceRequestPresence,
|
|
125
|
+
}).pipe(T.Http({ method: "POST", uri: "/users.setPresence", code: 200 }))).annotate({
|
|
126
|
+
identifier: "SetPresenceRequest",
|
|
127
|
+
});
|
|
128
|
+
export const SetPresenceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
129
|
+
ok: S.Boolean,
|
|
130
|
+
})).annotate({
|
|
131
|
+
identifier: "SetPresenceResponse",
|
|
132
|
+
});
|
|
133
|
+
export const SetProfileRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
134
|
+
name: S.optional(S.String),
|
|
135
|
+
profile: S.optional(S.String),
|
|
136
|
+
user: S.optional(S.String),
|
|
137
|
+
value: S.optional(S.String),
|
|
138
|
+
}).pipe(T.Http({ method: "POST", uri: "/users.profile.set", code: 200 }))).annotate({
|
|
139
|
+
identifier: "SetProfileRequest",
|
|
140
|
+
});
|
|
141
|
+
export const SetProfileResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
142
|
+
ok: S.Boolean,
|
|
143
|
+
username: S.String,
|
|
144
|
+
profile: S.Unknown,
|
|
145
|
+
email_pending: S.optional(S.String),
|
|
146
|
+
})).annotate({
|
|
147
|
+
identifier: "SetProfileResponse",
|
|
148
|
+
});
|
|
149
|
+
export const UsersConversationsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
150
|
+
cursor: S.optional(S.String.pipe(T.Query())),
|
|
151
|
+
exclude_archived: S.optional(S.Boolean.pipe(T.Query())),
|
|
152
|
+
exclude_muted: S.optional(S.Boolean.pipe(T.Query())),
|
|
153
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
154
|
+
team_id: S.optional(S.String.pipe(T.Query())),
|
|
155
|
+
types: S.optional(S.String.pipe(T.Query())),
|
|
156
|
+
user: S.optional(S.String.pipe(T.Query())),
|
|
157
|
+
}).pipe(T.Http({ method: "GET", uri: "/users.conversations", code: 200 }))).annotate({
|
|
158
|
+
identifier: "UsersConversationsRequest",
|
|
159
|
+
});
|
|
160
|
+
export const UsersConversationsResponseChannelsList = /*@__PURE__*/ S.Array(S.Unknown);
|
|
161
|
+
export const UsersConversationsResponseResponseMetadata = ListUsersResponseResponseMetadata;
|
|
162
|
+
export const UsersConversationsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
163
|
+
ok: S.Boolean,
|
|
164
|
+
channels: UsersConversationsResponseChannelsList,
|
|
165
|
+
response_metadata: S.optional(ListUsersResponseResponseMetadata),
|
|
166
|
+
})).annotate({
|
|
167
|
+
identifier: "UsersConversationsResponse",
|
|
168
|
+
});
|
|
169
|
+
export const UsersIdentityRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/users.identity", code: 200 }))).annotate({
|
|
170
|
+
identifier: "UsersIdentityRequest",
|
|
171
|
+
});
|
|
172
|
+
export const UsersIdentityResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
173
|
+
ok: S.Boolean,
|
|
174
|
+
})).annotate({
|
|
175
|
+
identifier: "UsersIdentityResponse",
|
|
176
|
+
});
|
|
177
|
+
export const UsersInfoRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
178
|
+
include_locale: S.optional(S.Boolean.pipe(T.Query())),
|
|
179
|
+
user: S.String.pipe(T.Query()),
|
|
180
|
+
}).pipe(T.Http({ method: "GET", uri: "/users.info", code: 200 }))).annotate({
|
|
181
|
+
identifier: "UsersInfoRequest",
|
|
182
|
+
});
|
|
183
|
+
export const UsersInfoResponseUsersList = /*@__PURE__*/ S.Array(S.Unknown);
|
|
184
|
+
export const UsersInfoResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
185
|
+
ok: S.Boolean,
|
|
186
|
+
user: S.optional(S.Unknown),
|
|
187
|
+
users: S.optional(UsersInfoResponseUsersList),
|
|
188
|
+
})).annotate({
|
|
189
|
+
identifier: "UsersInfoResponse",
|
|
190
|
+
});
|
|
191
|
+
/** Delete the user profile photo Required scopes — user: `users.profile:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `internal_error` — An unexpected error occurred. See https://docs.slack.dev/reference/methods/users.deletePhoto */
|
|
192
|
+
export const deletePhoto = /*@__PURE__*/ API.make(() => ({
|
|
193
|
+
input: DeletePhotoRequest,
|
|
194
|
+
output: DeletePhotoResponse,
|
|
195
|
+
errors: [SlackError, SlackRateLimited],
|
|
196
|
+
protocol: SlackProtocol,
|
|
197
|
+
retry: Retry.Retry,
|
|
198
|
+
}));
|
|
199
|
+
/** Gets user presence information. Required scopes — bot: `users:read`; user: `users:read` Rate limit tier: 3 See https://docs.slack.dev/reference/methods/users.getPresence */
|
|
200
|
+
export const getPresence = /*@__PURE__*/ API.make(() => ({
|
|
201
|
+
input: GetPresenceRequest,
|
|
202
|
+
output: GetPresenceResponse,
|
|
203
|
+
errors: [SlackError, SlackRateLimited],
|
|
204
|
+
protocol: SlackProtocol,
|
|
205
|
+
retry: Retry.Retry,
|
|
206
|
+
}));
|
|
207
|
+
/** Retrieve a user's profile information, including their custom status. Required scopes — bot: `users.profile:read`; user: `users.profile:read` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `user_not_found` — Value passed for `user` was invalid. - `token_revoked` — The token being used is not valid. - `ratelimited` — You are attempting to call this method too frequently. See https://docs.slack.dev/reference/methods/users.profile.get */
|
|
208
|
+
export const getProfile = /*@__PURE__*/ API.make(() => ({
|
|
209
|
+
input: GetProfileRequest,
|
|
210
|
+
output: GetProfileResponse,
|
|
211
|
+
errors: [SlackError, SlackRateLimited],
|
|
212
|
+
protocol: SlackProtocol,
|
|
213
|
+
retry: Retry.Retry,
|
|
214
|
+
}));
|
|
215
|
+
/** Lists all users in a Slack team. Required scopes — bot: `users:read`; user: `users:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_cursor` — Value passed for `cursor` was not valid or is no longer valid. - `limit_required` — For large teams a limit is required. - `missing_argument` — A required argument is missing. See https://docs.slack.dev/reference/methods/users.list */
|
|
216
|
+
export const listUsers = /*@__PURE__*/ API.makePaginated(() => ({
|
|
217
|
+
input: ListUsersRequest,
|
|
218
|
+
output: ListUsersResponse,
|
|
219
|
+
errors: [SlackError, SlackRateLimited],
|
|
220
|
+
protocol: SlackProtocol,
|
|
221
|
+
retry: Retry.Retry,
|
|
222
|
+
pagination: {
|
|
223
|
+
mode: "cursor",
|
|
224
|
+
inputToken: "cursor",
|
|
225
|
+
outputToken: "response_metadata.next_cursor",
|
|
226
|
+
items: "members",
|
|
227
|
+
pageSize: "limit",
|
|
228
|
+
},
|
|
229
|
+
}), slackPaginate);
|
|
230
|
+
/** Find a user with an email address. Required scopes — bot: `users:read.email`; user: `users:read.email` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `enterprise_is_restricted` — This method was called with an inappropriate enterprise-level token. - `users_not_found` — Value passed for `user` was invalid. See https://docs.slack.dev/reference/methods/users.lookupByEmail */
|
|
231
|
+
export const lookupByEmail = /*@__PURE__*/ API.make(() => ({
|
|
232
|
+
input: LookupByEmailRequest,
|
|
233
|
+
output: LookupByEmailResponse,
|
|
234
|
+
errors: [SlackError, SlackRateLimited],
|
|
235
|
+
protocol: SlackProtocol,
|
|
236
|
+
retry: Retry.Retry,
|
|
237
|
+
}));
|
|
238
|
+
/** Look up an email address to see if someone is discoverable on Slack Required scopes — bot: `conversations.connect:manage`, `team:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `not_allowed` — user is not allowed to call this API - `ratelimited` — too many attempts - `invalid_arguments` — Invalid arguments (including exceeding character count) - `restricted_action` — user is restricted from calling this API - `not_an_enterprise` — The token does not belong to an enterprise. See https://docs.slack.dev/reference/methods/users.discoverableContacts.lookup */
|
|
239
|
+
export const lookupDiscoverableContact = /*@__PURE__*/ API.make(() => ({
|
|
240
|
+
input: LookupDiscoverableContactRequest,
|
|
241
|
+
output: LookupDiscoverableContactResponse,
|
|
242
|
+
errors: [SlackError, SlackRateLimited],
|
|
243
|
+
protocol: SlackProtocol,
|
|
244
|
+
retry: Retry.Retry,
|
|
245
|
+
}));
|
|
246
|
+
/** Marked a user as active. Deprecated and non-functional. Required scopes — bot: `users:write`; user: `users:write` Rate limit tier: 2 See https://docs.slack.dev/reference/methods/users.setActive */
|
|
247
|
+
export const setActive = /*@__PURE__*/ API.make(() => ({
|
|
248
|
+
input: SetActiveRequest,
|
|
249
|
+
output: SetActiveResponse,
|
|
250
|
+
errors: [SlackError, SlackRateLimited],
|
|
251
|
+
protocol: SlackProtocol,
|
|
252
|
+
retry: Retry.Retry,
|
|
253
|
+
}));
|
|
254
|
+
/** Set the user profile photo Required scopes — user: `users.profile:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `bad_image` — The uploaded image could not be processed - try passing a JPEG, GIF or PNG - `internal_error` — An unexpected error occurred. - `too_large` — The uploaded image had excessive dimensions - `too_many_frames` — An animated GIF with too many frames was uploaded See https://docs.slack.dev/reference/methods/users.setPhoto */
|
|
255
|
+
export const setPhoto = /*@__PURE__*/ API.make(() => ({
|
|
256
|
+
input: SetPhotoRequest,
|
|
257
|
+
output: SetPhotoResponse,
|
|
258
|
+
errors: [SlackError, SlackRateLimited],
|
|
259
|
+
protocol: SlackProtocol,
|
|
260
|
+
retry: Retry.Retry,
|
|
261
|
+
}));
|
|
262
|
+
/** Manually sets user presence. Required scopes — bot: `users:write`; user: `users:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_presence` — Value passed for `presence` was invalid. See https://docs.slack.dev/reference/methods/users.setPresence */
|
|
263
|
+
export const setPresence = /*@__PURE__*/ API.make(() => ({
|
|
264
|
+
input: SetPresenceRequest,
|
|
265
|
+
output: SetPresenceResponse,
|
|
266
|
+
errors: [SlackError, SlackRateLimited],
|
|
267
|
+
protocol: SlackProtocol,
|
|
268
|
+
retry: Retry.Retry,
|
|
269
|
+
}));
|
|
270
|
+
/** Set a user's profile information, including custom status. Required scopes — user: `users.profile:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `cannot_update_admin_user` — Only a primary owner can update the profile of an admin. - `email_taken` — email taken - `invalid_profile` — Profile object passed in is not valid JSON (make sure it is URL encoded!). - `must_clear_both_status_text_and_status_emoji` — Clearing the status requires setting both `status_text` and `status_emoji` to ''. - `name_not_allowed` — name cannot contain URL. - `not_admin` — Only admins can update the profile of another user. Some fields, like `email` may only be updated by an admin. - `not_app_admin` — Only team owners and selected members can update the profile of a bot user. - `partial_profile_set_failed` — Failed to set user profile. - `profile_set_failed` — Failed to set user profile. - `reserved_name` — First or last name are reserved. - `sudo_required` — Request requires sudo session. - `too_long` — You attempted to set a custom status but it was longer than the maximum allowed, 100. - `permission_denied` — Permission denied. - `username_same` — Username is the same as the current username. - `invalid_emoji_not_allowed` — Invalid emoji not allowed. - `invalid_ooo_message` — Invalid Out of Office message. - `invalid_starts_with_at` — Name cannot start with @. See https://docs.slack.dev/reference/methods/users.profile.set */
|
|
271
|
+
export const setProfile = /*@__PURE__*/ API.make(() => ({
|
|
272
|
+
input: SetProfileRequest,
|
|
273
|
+
output: SetProfileResponse,
|
|
274
|
+
errors: [SlackError, SlackRateLimited],
|
|
275
|
+
protocol: SlackProtocol,
|
|
276
|
+
retry: Retry.Retry,
|
|
277
|
+
}));
|
|
278
|
+
/** List conversations the calling user is a member of. Required scopes — bot: `groups:read`, `im:read`, `mpim:read`, `channels:read`; user: `groups:read`, `im:read`, `mpim:read`, `channels:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `invalid_cursor` — Value passed for `cursor` was not valid or is no longer valid. - `invalid_limit` — Value passed for `limit` is not understood. - `invalid_types` — Value passed for `type` could not be used based on the method's capabilities or the permission scopes granted to the used token. - `method_not_supported_for_channel_type` — This type of conversation cannot be used with this method. - `missing_argument` — A required argument is missing. - `missing_scope` — The calling token is not granted the necessary scopes to complete this operation. See https://docs.slack.dev/reference/methods/users.conversations */
|
|
279
|
+
export const usersConversations = /*@__PURE__*/ API.makePaginated(() => ({
|
|
280
|
+
input: UsersConversationsRequest,
|
|
281
|
+
output: UsersConversationsResponse,
|
|
282
|
+
errors: [SlackError, SlackRateLimited],
|
|
283
|
+
protocol: SlackProtocol,
|
|
284
|
+
retry: Retry.Retry,
|
|
285
|
+
pagination: {
|
|
286
|
+
mode: "cursor",
|
|
287
|
+
inputToken: "cursor",
|
|
288
|
+
outputToken: "response_metadata.next_cursor",
|
|
289
|
+
items: "channels",
|
|
290
|
+
pageSize: "limit",
|
|
291
|
+
},
|
|
292
|
+
}), slackPaginate);
|
|
293
|
+
/** Get a user's identity. Required scopes — user: `identity:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `internal_error` — Internal error - `invalid_user_id` — Invalid user id provided - `email_not_verified` — user email has not been verified See https://docs.slack.dev/reference/methods/users.identity */
|
|
294
|
+
export const usersIdentity = /*@__PURE__*/ API.make(() => ({
|
|
295
|
+
input: UsersIdentityRequest,
|
|
296
|
+
output: UsersIdentityResponse,
|
|
297
|
+
errors: [SlackError, SlackRateLimited],
|
|
298
|
+
protocol: SlackProtocol,
|
|
299
|
+
retry: Retry.Retry,
|
|
300
|
+
}));
|
|
301
|
+
/** Gets information about a user. Required scopes — bot: `users:read`; user: `users:read` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `too_many_users` — Too many users. - `user_not_found` — Value passed for `user` was invalid. - `user_not_visible` — The requested user is not visible to the calling user See https://docs.slack.dev/reference/methods/users.info */
|
|
302
|
+
export const usersInfo = /*@__PURE__*/ API.make(() => ({
|
|
303
|
+
input: UsersInfoRequest,
|
|
304
|
+
output: UsersInfoResponse,
|
|
305
|
+
errors: [SlackError, SlackRateLimited],
|
|
306
|
+
protocol: SlackProtocol,
|
|
307
|
+
retry: Retry.Retry,
|
|
308
|
+
}));
|
|
309
|
+
//# sourceMappingURL=users.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"users.js","sourceRoot":"","sources":["../../src/services/users.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,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,KAAK,KAAK,MAAM,aAAa,CAAC;AAKrC,MAAM,CAAC,MAAM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KAAK,EAAE,KAAK,CAAC,KAAK;CACnB,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,84 @@
|
|
|
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 PublishViewRequest {
|
|
6
|
+
/** `id` of the user you want publish a view to. */
|
|
7
|
+
user_id: string;
|
|
8
|
+
/** A [view payload](/reference/views). This must be a JSON-encoded string. */
|
|
9
|
+
view: unknown;
|
|
10
|
+
/** A string that represents view state to protect against possible race conditions. */
|
|
11
|
+
hash?: string;
|
|
12
|
+
interactivity_pointer?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const PublishViewRequest: S.Schema<PublishViewRequest>;
|
|
15
|
+
export interface PublishViewResponse {
|
|
16
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
17
|
+
ok: boolean;
|
|
18
|
+
view: unknown;
|
|
19
|
+
}
|
|
20
|
+
export declare const PublishViewResponse: S.Schema<PublishViewResponse>;
|
|
21
|
+
export interface UpdateViewRequest {
|
|
22
|
+
/** A unique identifier of the view to be updated. Either `view_id` or `external_id` is required. */
|
|
23
|
+
view_id?: string;
|
|
24
|
+
/** A unique identifier of the view set by the developer. Must be unique for all views on a team. Max length of 255 characters. Either `view_id` or `external_id` is required. */
|
|
25
|
+
external_id?: string;
|
|
26
|
+
/** A [view object](/reference/views). This must be a JSON-encoded string. */
|
|
27
|
+
view: unknown;
|
|
28
|
+
/** A string that represents view state to protect against possible race conditions. */
|
|
29
|
+
hash?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare const UpdateViewRequest: S.Schema<UpdateViewRequest>;
|
|
32
|
+
export interface UpdateViewResponse {
|
|
33
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
34
|
+
ok: boolean;
|
|
35
|
+
view: unknown;
|
|
36
|
+
}
|
|
37
|
+
export declare const UpdateViewResponse: S.Schema<UpdateViewResponse>;
|
|
38
|
+
export type ViewsOpenRequestViewMap = {
|
|
39
|
+
[key: string]: unknown | undefined;
|
|
40
|
+
};
|
|
41
|
+
export declare const ViewsOpenRequestViewMap: S.Schema<ViewsOpenRequestViewMap>;
|
|
42
|
+
export interface ViewsOpenRequest {
|
|
43
|
+
/** Exchange a trigger to post to the user. */
|
|
44
|
+
trigger_id?: string | null;
|
|
45
|
+
/** Exchange an interactivity pointer to post to the user. */
|
|
46
|
+
interactivity_pointer?: string | null;
|
|
47
|
+
/** A [view payload](/reference/views). This must be a JSON-encoded string. */
|
|
48
|
+
view: ViewsOpenRequestViewMap;
|
|
49
|
+
}
|
|
50
|
+
export declare const ViewsOpenRequest: S.Schema<ViewsOpenRequest>;
|
|
51
|
+
export interface ViewsOpenResponse {
|
|
52
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
53
|
+
ok: boolean;
|
|
54
|
+
view: unknown;
|
|
55
|
+
}
|
|
56
|
+
export declare const ViewsOpenResponse: S.Schema<ViewsOpenResponse>;
|
|
57
|
+
export interface ViewsPushRequest {
|
|
58
|
+
/** Exchange a trigger to post to the user. */
|
|
59
|
+
trigger_id?: string | null;
|
|
60
|
+
/** Exchange an interactivity pointer to post to the user. */
|
|
61
|
+
interactivity_pointer?: string | null;
|
|
62
|
+
/** A [view payload](/reference/views). This must be a JSON-encoded string. */
|
|
63
|
+
view: unknown;
|
|
64
|
+
}
|
|
65
|
+
export declare const ViewsPushRequest: S.Schema<ViewsPushRequest>;
|
|
66
|
+
export interface ViewsPushResponse {
|
|
67
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
68
|
+
ok: boolean;
|
|
69
|
+
view: unknown;
|
|
70
|
+
}
|
|
71
|
+
export declare const ViewsPushResponse: S.Schema<ViewsPushResponse>;
|
|
72
|
+
export type PublishViewError = SlackOpError;
|
|
73
|
+
/** Publish a static view for a User. Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `duplicate_external_id` — Error returned when the given `external_id` has already be used. - `hash_conflict` — Error returned when the provided `hash` doesn't match the current stored value. - `missing_profile_id` — A profile id was not provided when trying to publish a view of type profile. - `not_allowed_token_type` — The type of token your app used when requesting this method is not allowed. - `not_enabled` — Error returned if a `home` view is published but the Home tab isn't enabled for the app. - `not_implemented` — The profile view experiment is not enabled for this user. - `view_too_large` — Error returned if the provided view is greater than 250kb. See https://docs.slack.dev/reference/methods/views.publish */
|
|
74
|
+
export declare const publishView: API.OperationMethod<PublishViewRequest, PublishViewResponse, PublishViewError, SlackOpContext>;
|
|
75
|
+
export type UpdateViewError = SlackOpError;
|
|
76
|
+
/** Update an existing view. Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `duplicate_external_id` — Error returned when the given `external_id` has already be used. - `hash_conflict` — Error returned when the provided `hash` doesn't match the current stored value. - `not_found` — Error returned when the given `view_id` or `external_id` doesn't exist. - `view_too_large` — Error returned if the provided view is greater than 250kb. See https://docs.slack.dev/reference/methods/views.update */
|
|
77
|
+
export declare const updateView: API.OperationMethod<UpdateViewRequest, UpdateViewResponse, UpdateViewError, SlackOpContext>;
|
|
78
|
+
export type ViewsOpenError = SlackOpError;
|
|
79
|
+
/** Open a view for a user. Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `duplicate_external_id` — Error returned when the given `external_id` has already be used. - `exchanged_trigger_id` — The trigger_id was already exchanged in a previous call. - `expired_trigger_id` — The trigger_id is expired. - `invalid_trigger_id` — The trigger_id is invalid. The expected format for the trigger_id argument is "132456.7890123.abcdef". - `view_too_large` — Error returned if the provided view is greater than 250kb. See https://docs.slack.dev/reference/methods/views.open */
|
|
80
|
+
export declare const viewsOpen: API.OperationMethod<ViewsOpenRequest, ViewsOpenResponse, ViewsOpenError, SlackOpContext>;
|
|
81
|
+
export type ViewsPushError = SlackOpError;
|
|
82
|
+
/** Push a view onto the stack of a root view. Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `duplicate_external_id` — Error returned when the given `external_id` has already be used. - `exchanged_trigger_id` — The trigger_id was already exchanged in a previous call. - `expired_trigger_id` — The trigger_id is expired. - `invalid_trigger_id` — The trigger_id is invalid. The expected format for the trigger_id argument is "132456.7890123.abcdef". - `not_found` — Error returned when the requested view can't be found. - `push_limit_reached` — Error returned when the max push limit has been reached for views. Currently the limit is 3. - `view_too_large` — Error returned if the provided view is greater than 250kb. See https://docs.slack.dev/reference/methods/views.push */
|
|
83
|
+
export declare const viewsPush: API.OperationMethod<ViewsPushRequest, ViewsPushResponse, ViewsPushError, SlackOpContext>;
|
|
84
|
+
//# sourceMappingURL=views.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"views.d.ts","sourceRoot":"","sources":["../../src/services/views.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,mDAAmD;IACnD,OAAO,EAAE,MAAM,CAAC;IAChB,8EAA8E;IAC9E,IAAI,EAAE,OAAO,CAAC;IACd,uFAAuF;IACvF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AACD,eAAO,MAAM,kBAAkB,EASlB,CAAC,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;AAE1C,MAAM,WAAW,mBAAmB;IAClC,kEAAkE;IAClE,EAAE,EAAE,OAAO,CAAC;IACZ,IAAI,EAAE,OAAO,CAAC;CACf;AACD,eAAO,MAAM,mBAAmB,EAOnB,CAAC,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC;AAE3C,MAAM,WAAW,iBAAiB;IAChC,oGAAoG;IACpG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EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,8EAA8E;IAC9E,IAAI,EAAE,OAAO,CAAC;CACf;AACD,eAAO,MAAM,gBAAgB,EAQhB,CAAC,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;AAExC,MAAM,WAAW,iBAAiB;IAChC,kEAAkE;IAClE,EAAE,EAAE,OAAO,CAAC;IACZ,IAAI,EAAE,OAAO,CAAC;CACf;AACD,eAAO,MAAM,iBAAiB,EAOjB,CAAC,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAEzC,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC;AAC5C,80BAA80B;AAC90B,eAAO,MAAM,WAAW,EAAE,GAAG,CAAC,eAAe,CAC3C,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,CAOb,CAAC;AAEJ,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC;AAC3C,khBAAkhB;AAClhB,eAAO,MAAM,UAAU,EAAE,GAAG,CAAC,eAAe,CAC1C,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,cAAc,CAOb,CAAC;AAEJ,MAAM,MAAM,cAAc,GAAG,YAAY,CAAC;AAC1C,2lBAA2lB;AAC3lB,eAAO,MAAM,SAAS,EAAE,GAAG,CAAC,eAAe,CACzC,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,cAAc,CAOb,CAAC;AAEJ,MAAM,MAAM,cAAc,GAAG,YAAY,CAAC;AAC1C,2yBAA2yB;AAC3yB,eAAO,MAAM,SAAS,EAAE,GAAG,CAAC,eAAe,CACzC,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,cAAc,CAOb,CAAC"}
|
|
@@ -0,0 +1,95 @@
|
|
|
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 PublishViewRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
9
|
+
user_id: S.String,
|
|
10
|
+
view: S.Unknown,
|
|
11
|
+
hash: S.optional(S.String),
|
|
12
|
+
interactivity_pointer: S.optional(S.String),
|
|
13
|
+
}).pipe(T.Http({ method: "POST", uri: "/views.publish", code: 200 }))).annotate({
|
|
14
|
+
identifier: "PublishViewRequest",
|
|
15
|
+
});
|
|
16
|
+
export const PublishViewResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
17
|
+
ok: S.Boolean,
|
|
18
|
+
view: S.Unknown,
|
|
19
|
+
})).annotate({
|
|
20
|
+
identifier: "PublishViewResponse",
|
|
21
|
+
});
|
|
22
|
+
export const UpdateViewRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
23
|
+
view_id: S.optional(S.String),
|
|
24
|
+
external_id: S.optional(S.String),
|
|
25
|
+
view: S.Unknown,
|
|
26
|
+
hash: S.optional(S.String),
|
|
27
|
+
}).pipe(T.Http({ method: "POST", uri: "/views.update", code: 200 }))).annotate({
|
|
28
|
+
identifier: "UpdateViewRequest",
|
|
29
|
+
});
|
|
30
|
+
export const UpdateViewResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
31
|
+
ok: S.Boolean,
|
|
32
|
+
view: S.Unknown,
|
|
33
|
+
})).annotate({
|
|
34
|
+
identifier: "UpdateViewResponse",
|
|
35
|
+
});
|
|
36
|
+
export const ViewsOpenRequestViewMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
37
|
+
export const ViewsOpenRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
38
|
+
trigger_id: S.optional(S.NullOr(S.String)),
|
|
39
|
+
interactivity_pointer: S.optional(S.NullOr(S.String)),
|
|
40
|
+
view: ViewsOpenRequestViewMap,
|
|
41
|
+
}).pipe(T.Http({ method: "POST", uri: "/views.open", code: 200 }))).annotate({
|
|
42
|
+
identifier: "ViewsOpenRequest",
|
|
43
|
+
});
|
|
44
|
+
export const ViewsOpenResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
45
|
+
ok: S.Boolean,
|
|
46
|
+
view: S.Unknown,
|
|
47
|
+
})).annotate({
|
|
48
|
+
identifier: "ViewsOpenResponse",
|
|
49
|
+
});
|
|
50
|
+
export const ViewsPushRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
51
|
+
trigger_id: S.optional(S.NullOr(S.String)),
|
|
52
|
+
interactivity_pointer: S.optional(S.NullOr(S.String)),
|
|
53
|
+
view: S.Unknown,
|
|
54
|
+
}).pipe(T.Http({ method: "POST", uri: "/views.push", code: 200 }))).annotate({
|
|
55
|
+
identifier: "ViewsPushRequest",
|
|
56
|
+
});
|
|
57
|
+
export const ViewsPushResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
58
|
+
ok: S.Boolean,
|
|
59
|
+
view: S.Unknown,
|
|
60
|
+
})).annotate({
|
|
61
|
+
identifier: "ViewsPushResponse",
|
|
62
|
+
});
|
|
63
|
+
/** Publish a static view for a User. Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `duplicate_external_id` — Error returned when the given `external_id` has already be used. - `hash_conflict` — Error returned when the provided `hash` doesn't match the current stored value. - `missing_profile_id` — A profile id was not provided when trying to publish a view of type profile. - `not_allowed_token_type` — The type of token your app used when requesting this method is not allowed. - `not_enabled` — Error returned if a `home` view is published but the Home tab isn't enabled for the app. - `not_implemented` — The profile view experiment is not enabled for this user. - `view_too_large` — Error returned if the provided view is greater than 250kb. See https://docs.slack.dev/reference/methods/views.publish */
|
|
64
|
+
export const publishView = /*@__PURE__*/ API.make(() => ({
|
|
65
|
+
input: PublishViewRequest,
|
|
66
|
+
output: PublishViewResponse,
|
|
67
|
+
errors: [SlackError, SlackRateLimited],
|
|
68
|
+
protocol: SlackProtocol,
|
|
69
|
+
retry: Retry.Retry,
|
|
70
|
+
}));
|
|
71
|
+
/** Update an existing view. Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `duplicate_external_id` — Error returned when the given `external_id` has already be used. - `hash_conflict` — Error returned when the provided `hash` doesn't match the current stored value. - `not_found` — Error returned when the given `view_id` or `external_id` doesn't exist. - `view_too_large` — Error returned if the provided view is greater than 250kb. See https://docs.slack.dev/reference/methods/views.update */
|
|
72
|
+
export const updateView = /*@__PURE__*/ API.make(() => ({
|
|
73
|
+
input: UpdateViewRequest,
|
|
74
|
+
output: UpdateViewResponse,
|
|
75
|
+
errors: [SlackError, SlackRateLimited],
|
|
76
|
+
protocol: SlackProtocol,
|
|
77
|
+
retry: Retry.Retry,
|
|
78
|
+
}));
|
|
79
|
+
/** Open a view for a user. Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `duplicate_external_id` — Error returned when the given `external_id` has already be used. - `exchanged_trigger_id` — The trigger_id was already exchanged in a previous call. - `expired_trigger_id` — The trigger_id is expired. - `invalid_trigger_id` — The trigger_id is invalid. The expected format for the trigger_id argument is "132456.7890123.abcdef". - `view_too_large` — Error returned if the provided view is greater than 250kb. See https://docs.slack.dev/reference/methods/views.open */
|
|
80
|
+
export const viewsOpen = /*@__PURE__*/ API.make(() => ({
|
|
81
|
+
input: ViewsOpenRequest,
|
|
82
|
+
output: ViewsOpenResponse,
|
|
83
|
+
errors: [SlackError, SlackRateLimited],
|
|
84
|
+
protocol: SlackProtocol,
|
|
85
|
+
retry: Retry.Retry,
|
|
86
|
+
}));
|
|
87
|
+
/** Push a view onto the stack of a root view. Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `duplicate_external_id` — Error returned when the given `external_id` has already be used. - `exchanged_trigger_id` — The trigger_id was already exchanged in a previous call. - `expired_trigger_id` — The trigger_id is expired. - `invalid_trigger_id` — The trigger_id is invalid. The expected format for the trigger_id argument is "132456.7890123.abcdef". - `not_found` — Error returned when the requested view can't be found. - `push_limit_reached` — Error returned when the max push limit has been reached for views. Currently the limit is 3. - `view_too_large` — Error returned if the provided view is greater than 250kb. See https://docs.slack.dev/reference/methods/views.push */
|
|
88
|
+
export const viewsPush = /*@__PURE__*/ API.make(() => ({
|
|
89
|
+
input: ViewsPushRequest,
|
|
90
|
+
output: ViewsPushResponse,
|
|
91
|
+
errors: [SlackError, SlackRateLimited],
|
|
92
|
+
protocol: SlackProtocol,
|
|
93
|
+
retry: Retry.Retry,
|
|
94
|
+
}));
|
|
95
|
+
//# sourceMappingURL=views.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"views.js","sourceRoot":"","sources":["../../src/services/views.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,cAAc,CAAC;AAC5D,OAAO,KAAK,KAAK,MAAM,aAAa,CAAC;AAarC,MAAM,CAAC,MAAM,kBAAkB,GAAG,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,CAC7D,CAAC,CAAC,MAAM,CAAC;IACP,OAAO,EAAE,CAAC,CAAC,MAAM;IACjB,IAAI,EAAE,CAAC,CAAC,OAAO;IACf,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC;IAC1B,qBAAqB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC;CAC5C,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,gBAAgB,EAAE,IAAI,EAAE,GAAG,EA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