@wirecat/slack-cli 0.0.0-stage → 0.1.0

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.
Files changed (295) hide show
  1. package/CHANGELOG.md +104 -0
  2. package/LICENSE +204 -0
  3. package/README.md +131 -2
  4. package/contracts/wirecat.json +5526 -0
  5. package/dist/bin/slack.d.ts +3 -0
  6. package/dist/bin/slack.d.ts.map +1 -0
  7. package/dist/bin/slack.js +40 -0
  8. package/dist/bin/slack.js.map +1 -0
  9. package/dist/bundle/agent-GOFXFUQP.js +37 -0
  10. package/dist/bundle/all-profiles-4C7VOT2D.js +320 -0
  11. package/dist/bundle/anthropic-ZD66TC5S.js +91 -0
  12. package/dist/bundle/app-server-QNCVEDMY.js +249 -0
  13. package/dist/bundle/bun-2FULBYXS.js +169 -0
  14. package/dist/bundle/bun-sqlite-PMS26ZUT.js +76 -0
  15. package/dist/bundle/chunk-2LB5BWC4.js +362 -0
  16. package/dist/bundle/chunk-2ZEYRHZV.js +18 -0
  17. package/dist/bundle/chunk-3IJ3THPV.js +7 -0
  18. package/dist/bundle/chunk-4HSVEQ3R.js +29 -0
  19. package/dist/bundle/chunk-4QPMHVM5.js +1007 -0
  20. package/dist/bundle/chunk-53LIHHXC.js +16 -0
  21. package/dist/bundle/chunk-5F36CXDM.js +794 -0
  22. package/dist/bundle/chunk-5LPREGD3.js +12636 -0
  23. package/dist/bundle/chunk-5R5YRYIP.js +1148 -0
  24. package/dist/bundle/chunk-5RSQTG7L.js +388 -0
  25. package/dist/bundle/chunk-5SXZETJF.js +170 -0
  26. package/dist/bundle/chunk-6PDQP5RM.js +50 -0
  27. package/dist/bundle/chunk-75BLNPN3.js +1197 -0
  28. package/dist/bundle/chunk-7BEO72EN.js +131 -0
  29. package/dist/bundle/chunk-7F6RNAIM.js +230 -0
  30. package/dist/bundle/chunk-AG7FP64Z.js +77 -0
  31. package/dist/bundle/chunk-B7ZM3FCB.js +61 -0
  32. package/dist/bundle/chunk-BRXTN5LJ.js +338 -0
  33. package/dist/bundle/chunk-CABZAU37.js +319 -0
  34. package/dist/bundle/chunk-CCOSG3F2.js +24616 -0
  35. package/dist/bundle/chunk-CDTZSFTN.js +58 -0
  36. package/dist/bundle/chunk-CMZBCWND.js +1246 -0
  37. package/dist/bundle/chunk-CRQEEJNF.js +185 -0
  38. package/dist/bundle/chunk-CWYU4R65.js +358 -0
  39. package/dist/bundle/chunk-CZFR6JQX.js +52 -0
  40. package/dist/bundle/chunk-D72URWJE.js +532 -0
  41. package/dist/bundle/chunk-DFDN6AUB.js +21 -0
  42. package/dist/bundle/chunk-DVHX7R54.js +4072 -0
  43. package/dist/bundle/chunk-DYKOG7QR.js +9596 -0
  44. package/dist/bundle/chunk-ECDI42G6.js +100 -0
  45. package/dist/bundle/chunk-EH6ZEJGT.js +932 -0
  46. package/dist/bundle/chunk-ELY2TLCY.js +259 -0
  47. package/dist/bundle/chunk-ERRVUVKR.js +156 -0
  48. package/dist/bundle/chunk-FBWR4E5D.js +353 -0
  49. package/dist/bundle/chunk-GKS6KL57.js +6848 -0
  50. package/dist/bundle/chunk-H2COZZ55.js +2787 -0
  51. package/dist/bundle/chunk-HGXTEK7R.js +82 -0
  52. package/dist/bundle/chunk-HXLXM7HV.js +726 -0
  53. package/dist/bundle/chunk-IPP4N6HD.js +24 -0
  54. package/dist/bundle/chunk-IWTVR7S7.js +53 -0
  55. package/dist/bundle/chunk-IYJH75D4.js +63 -0
  56. package/dist/bundle/chunk-JCZLRT4Z.js +39 -0
  57. package/dist/bundle/chunk-JGRWMR5H.js +123 -0
  58. package/dist/bundle/chunk-JYRYQJBN.js +633 -0
  59. package/dist/bundle/chunk-KIKLDI74.js +161 -0
  60. package/dist/bundle/chunk-L4WO3XH6.js +2020 -0
  61. package/dist/bundle/chunk-LQDNUAK3.js +274 -0
  62. package/dist/bundle/chunk-LV5ONLQH.js +38 -0
  63. package/dist/bundle/chunk-M27Z23OZ.js +23 -0
  64. package/dist/bundle/chunk-M5XTZHXM.js +142 -0
  65. package/dist/bundle/chunk-MJBEGUIZ.js +76 -0
  66. package/dist/bundle/chunk-N4WOLGIV.js +2333 -0
  67. package/dist/bundle/chunk-N5K4OHPT.js +206 -0
  68. package/dist/bundle/chunk-NYAPUET7.js +108 -0
  69. package/dist/bundle/chunk-P4IFLOIK.js +218 -0
  70. package/dist/bundle/chunk-P6G2QTCD.js +288 -0
  71. package/dist/bundle/chunk-PL5P7UKW.js +25216 -0
  72. package/dist/bundle/chunk-PU7R6XNV.js +80 -0
  73. package/dist/bundle/chunk-QLLBACDR.js +72 -0
  74. package/dist/bundle/chunk-QP7XN5KX.js +407 -0
  75. package/dist/bundle/chunk-QY2F6A3D.js +557 -0
  76. package/dist/bundle/chunk-RLIT7VAZ.js +66 -0
  77. package/dist/bundle/chunk-S4UUN6LD.js +1410 -0
  78. package/dist/bundle/chunk-SKGAKI62.js +86 -0
  79. package/dist/bundle/chunk-SQMZP5MA.js +66653 -0
  80. package/dist/bundle/chunk-UB6NTICY.js +95 -0
  81. package/dist/bundle/chunk-UBHQO5HV.js +778 -0
  82. package/dist/bundle/chunk-UM4RKO24.js +106 -0
  83. package/dist/bundle/chunk-VAHFY732.js +1068 -0
  84. package/dist/bundle/chunk-VGDM4C3F.js +188 -0
  85. package/dist/bundle/chunk-VOUAKCPM.js +41181 -0
  86. package/dist/bundle/chunk-WCCFJ4Q6.js +3736 -0
  87. package/dist/bundle/chunk-WV6EXRDV.js +46 -0
  88. package/dist/bundle/chunk-WVAT5TGY.js +334 -0
  89. package/dist/bundle/chunk-WW76JMKE.js +1243 -0
  90. package/dist/bundle/chunk-XXOMUKC6.js +54 -0
  91. package/dist/bundle/chunk-Y5E2WNWB.js +35 -0
  92. package/dist/bundle/chunk-YDO6RJ2P.js +1337 -0
  93. package/dist/bundle/chunk-ZBCFZCJW.js +388 -0
  94. package/dist/bundle/chunk-ZVVMGPBJ.js +50 -0
  95. package/dist/bundle/command-contract-BWGRUY6L.js +37 -0
  96. package/dist/bundle/command-server-entry-BATOWE3Y.js +166 -0
  97. package/dist/bundle/decode-MZQGYXJH.js +297 -0
  98. package/dist/bundle/definitions-3EONB23J.js +8600 -0
  99. package/dist/bundle/dispatch-NYC4ARWX.js +411 -0
  100. package/dist/bundle/dist-PAKDDIBT.js +191 -0
  101. package/dist/bundle/dist-XZ65GRQ6.js +7577 -0
  102. package/dist/bundle/echarts-7OYGL2GW.js +42501 -0
  103. package/dist/bundle/embed-4I25DVKZ.js +38 -0
  104. package/dist/bundle/embedder-YXKQHAZO.js +111 -0
  105. package/dist/bundle/emoji-4LYX3GOS.js +4271 -0
  106. package/dist/bundle/failure-3YOVYZTX.js +25 -0
  107. package/dist/bundle/first-run-2VL2BOV7.js +29 -0
  108. package/dist/bundle/first-screen-C7FIWZL2.js +37 -0
  109. package/dist/bundle/instructions-UMNDHXG2.js +11 -0
  110. package/dist/bundle/mcp-V27RHILF.js +167 -0
  111. package/dist/bundle/meeting-combined-LS6XO4JH.js +24 -0
  112. package/dist/bundle/meeting-model-VIR465CY.js +25 -0
  113. package/dist/bundle/meeting-semantic-H5J3OOF2.js +22 -0
  114. package/dist/bundle/node-JJ3WDCNJ.js +2340 -0
  115. package/dist/bundle/node-PYFPGL4E.js +176 -0
  116. package/dist/bundle/node-TLZSIHIJ.js +21 -0
  117. package/dist/bundle/node-sqlite-LFWPGDVP.js +74 -0
  118. package/dist/bundle/oauth-42VCSIVL.js +20 -0
  119. package/dist/bundle/open-XJ5R5LHC.js +23 -0
  120. package/dist/bundle/openai-RZBLV4HG.js +238 -0
  121. package/dist/bundle/process-DD6H3K7L.js +91 -0
  122. package/dist/bundle/program-33RT6DER.js +35421 -0
  123. package/dist/bundle/prompt-NQRDM5LY.js +17 -0
  124. package/dist/bundle/recognize-EM7H2IZS.js +26 -0
  125. package/dist/bundle/remote-Z6NU6QQA.js +31 -0
  126. package/dist/bundle/rerank-PNPCSPNF.js +52 -0
  127. package/dist/bundle/schemas-JMKNP4U3.js +2765 -0
  128. package/dist/bundle/serve-SQVGX76J.js +199 -0
  129. package/dist/bundle/server-NPJH45FZ.js +212 -0
  130. package/dist/bundle/server-Z4ZMGRAH.js +79 -0
  131. package/dist/bundle/slack.js +184 -0
  132. package/dist/bundle/sqlite-runtime-F3AJGAPN.js +20 -0
  133. package/dist/bundle/state-JT7ZFSXN.js +36 -0
  134. package/dist/bundle/store-FXGMHRF3.js +181 -0
  135. package/dist/bundle/store-J5ZL2USR.js +295 -0
  136. package/dist/bundle/store-maintenance-command-TIHOIKLZ.js +66 -0
  137. package/dist/bundle/surface-NW6T5OR6.js +65 -0
  138. package/dist/commands/api.d.ts +7 -0
  139. package/dist/commands/api.d.ts.map +1 -0
  140. package/dist/commands/api.js +49 -0
  141. package/dist/commands/api.js.map +1 -0
  142. package/dist/commands/comments.d.ts +3 -0
  143. package/dist/commands/comments.d.ts.map +1 -0
  144. package/dist/commands/comments.js +114 -0
  145. package/dist/commands/comments.js.map +1 -0
  146. package/dist/commands/doctor.d.ts +7 -0
  147. package/dist/commands/doctor.d.ts.map +1 -0
  148. package/dist/commands/doctor.js +53 -0
  149. package/dist/commands/doctor.js.map +1 -0
  150. package/dist/commands/session.d.ts +7 -0
  151. package/dist/commands/session.d.ts.map +1 -0
  152. package/dist/commands/session.js +26 -0
  153. package/dist/commands/session.js.map +1 -0
  154. package/dist/config.d.ts +24 -0
  155. package/dist/config.d.ts.map +1 -0
  156. package/dist/config.js +75 -0
  157. package/dist/config.js.map +1 -0
  158. package/dist/context.d.ts +59 -0
  159. package/dist/context.d.ts.map +1 -0
  160. package/dist/context.js +75 -0
  161. package/dist/context.js.map +1 -0
  162. package/dist/generated/definitions.d.ts +3 -0
  163. package/dist/generated/definitions.d.ts.map +1 -0
  164. package/dist/generated/definitions.js +8596 -0
  165. package/dist/generated/definitions.js.map +1 -0
  166. package/dist/generated/emoji.d.ts +2 -0
  167. package/dist/generated/emoji.d.ts.map +1 -0
  168. package/dist/generated/emoji.js +4265 -0
  169. package/dist/generated/emoji.js.map +1 -0
  170. package/dist/generated/manifest.d.ts +6 -0
  171. package/dist/generated/manifest.d.ts.map +1 -0
  172. package/dist/generated/manifest.js +6139 -0
  173. package/dist/generated/manifest.js.map +1 -0
  174. package/dist/generated/schemas.d.ts +631 -0
  175. package/dist/generated/schemas.d.ts.map +1 -0
  176. package/dist/generated/schemas.js +2426 -0
  177. package/dist/generated/schemas.js.map +1 -0
  178. package/dist/generated/types.d.ts +3220 -0
  179. package/dist/generated/types.d.ts.map +1 -0
  180. package/dist/generated/types.js +5 -0
  181. package/dist/generated/types.js.map +1 -0
  182. package/dist/identity.d.ts +29 -0
  183. package/dist/identity.d.ts.map +1 -0
  184. package/dist/identity.js +32 -0
  185. package/dist/identity.js.map +1 -0
  186. package/dist/index.d.ts +3 -0
  187. package/dist/index.d.ts.map +1 -0
  188. package/dist/index.js +3 -0
  189. package/dist/index.js.map +1 -0
  190. package/dist/messenger.d.ts +12 -0
  191. package/dist/messenger.d.ts.map +1 -0
  192. package/dist/messenger.js +184 -0
  193. package/dist/messenger.js.map +1 -0
  194. package/dist/program.d.ts +6 -0
  195. package/dist/program.d.ts.map +1 -0
  196. package/dist/program.js +116 -0
  197. package/dist/program.js.map +1 -0
  198. package/dist/reasons.d.ts +7 -0
  199. package/dist/reasons.d.ts.map +1 -0
  200. package/dist/reasons.js +20 -0
  201. package/dist/reasons.js.map +1 -0
  202. package/dist/sample/comments.d.ts +61 -0
  203. package/dist/sample/comments.d.ts.map +1 -0
  204. package/dist/sample/comments.js +39 -0
  205. package/dist/sample/comments.js.map +1 -0
  206. package/dist/sample/records.d.ts +16 -0
  207. package/dist/sample/records.d.ts.map +1 -0
  208. package/dist/sample/records.js +22 -0
  209. package/dist/sample/records.js.map +1 -0
  210. package/dist/sample/transport.d.ts +42 -0
  211. package/dist/sample/transport.d.ts.map +1 -0
  212. package/dist/sample/transport.js +153 -0
  213. package/dist/sample/transport.js.map +1 -0
  214. package/dist/setup/flow.d.ts +2 -0
  215. package/dist/setup/flow.d.ts.map +1 -0
  216. package/dist/setup/flow.js +83 -0
  217. package/dist/setup/flow.js.map +1 -0
  218. package/dist/setup/guide.d.ts +6 -0
  219. package/dist/setup/guide.d.ts.map +1 -0
  220. package/dist/setup/guide.js +13 -0
  221. package/dist/setup/guide.js.map +1 -0
  222. package/dist/setup/texts.d.ts +24 -0
  223. package/dist/setup/texts.d.ts.map +1 -0
  224. package/dist/setup/texts.js +24 -0
  225. package/dist/setup/texts.js.map +1 -0
  226. package/dist/slack/adapter.d.ts +36 -0
  227. package/dist/slack/adapter.d.ts.map +1 -0
  228. package/dist/slack/adapter.js +551 -0
  229. package/dist/slack/adapter.js.map +1 -0
  230. package/dist/slack/app-manifest.d.ts +25 -0
  231. package/dist/slack/app-manifest.d.ts.map +1 -0
  232. package/dist/slack/app-manifest.js +51 -0
  233. package/dist/slack/app-manifest.js.map +1 -0
  234. package/dist/slack/client.d.ts +45 -0
  235. package/dist/slack/client.d.ts.map +1 -0
  236. package/dist/slack/client.js +236 -0
  237. package/dist/slack/client.js.map +1 -0
  238. package/dist/slack/map.d.ts +429 -0
  239. package/dist/slack/map.d.ts.map +1 -0
  240. package/dist/slack/map.js +406 -0
  241. package/dist/slack/map.js.map +1 -0
  242. package/dist/slack/mrkdwn.d.ts +9 -0
  243. package/dist/slack/mrkdwn.d.ts.map +1 -0
  244. package/dist/slack/mrkdwn.js +56 -0
  245. package/dist/slack/mrkdwn.js.map +1 -0
  246. package/dist/slack/search.d.ts +24 -0
  247. package/dist/slack/search.d.ts.map +1 -0
  248. package/dist/slack/search.js +99 -0
  249. package/dist/slack/search.js.map +1 -0
  250. package/dist/slack/threads.d.ts +28 -0
  251. package/dist/slack/threads.d.ts.map +1 -0
  252. package/dist/slack/threads.js +56 -0
  253. package/dist/slack/threads.js.map +1 -0
  254. package/dist/slack/tokens.d.ts +17 -0
  255. package/dist/slack/tokens.d.ts.map +1 -0
  256. package/dist/slack/tokens.js +27 -0
  257. package/dist/slack/tokens.js.map +1 -0
  258. package/dist/slack/writes.d.ts +43 -0
  259. package/dist/slack/writes.d.ts.map +1 -0
  260. package/dist/slack/writes.js +277 -0
  261. package/dist/slack/writes.js.map +1 -0
  262. package/dist/version.d.ts +2 -0
  263. package/dist/version.d.ts.map +1 -0
  264. package/dist/version.js +2 -0
  265. package/dist/version.js.map +1 -0
  266. package/dist/wcat.d.ts +3 -0
  267. package/dist/wcat.d.ts.map +1 -0
  268. package/dist/wcat.js +4 -0
  269. package/dist/wcat.js.map +1 -0
  270. package/package.json +89 -4
  271. package/skills/slack-cli/SKILL.md +117 -0
  272. package/skills/slack-cli/references/api/api-admin.md +541 -0
  273. package/skills/slack-cli/references/api/api-api.md +13 -0
  274. package/skills/slack-cli/references/api/api-apps.md +78 -0
  275. package/skills/slack-cli/references/api/api-auth.md +18 -0
  276. package/skills/slack-cli/references/api/api-bots.md +12 -0
  277. package/skills/slack-cli/references/api/api-calls.md +68 -0
  278. package/skills/slack-cli/references/api/api-chat.md +123 -0
  279. package/skills/slack-cli/references/api/api-conversations.md +230 -0
  280. package/skills/slack-cli/references/api/api-dialog.md +13 -0
  281. package/skills/slack-cli/references/api/api-dnd.md +31 -0
  282. package/skills/slack-cli/references/api/api-emoji.md +8 -0
  283. package/skills/slack-cli/references/api/api-files.md +120 -0
  284. package/skills/slack-cli/references/api/api-migration.md +14 -0
  285. package/skills/slack-cli/references/api/api-pins.md +37 -0
  286. package/skills/slack-cli/references/api/api-reactions.md +58 -0
  287. package/skills/slack-cli/references/api/api-reminders.md +51 -0
  288. package/skills/slack-cli/references/api/api-search.md +18 -0
  289. package/skills/slack-cli/references/api/api-stars.md +42 -0
  290. package/skills/slack-cli/references/api/api-team.md +55 -0
  291. package/skills/slack-cli/references/api/api-usergroups.md +80 -0
  292. package/skills/slack-cli/references/api/api-users.md +101 -0
  293. package/skills/slack-cli/references/api/api-views.md +46 -0
  294. package/skills/slack-cli/references/api/api-workflows.md +36 -0
  295. package/skills/slack-cli/references/api.md +35 -0
@@ -0,0 +1,2426 @@
1
+ // GENERATED. DO NOT EDIT.
2
+ // Source: spec/slack/, checked against provenance.json
3
+ // Run: pnpm generate
4
+ import { integer, number, unique } from "@wirecat/cli-base/codegen/runtime";
5
+ import * as v from "valibot";
6
+ export const Blocks = v.array(v.objectWithRest({
7
+ type: v.string(),
8
+ }, v.unknown()));
9
+ export const DefsAppId = v.pipe(v.string(), v.regex(/^A[A-Z0-9]{1,}$/));
10
+ export const DefsBotId = v.pipe(v.string(), v.regex(/^B[A-Z0-9]{8,}$/));
11
+ export const DefsChannel = v.pipe(v.string(), v.regex(/^[CGD][A-Z0-9]{8,}$/));
12
+ export const DefsChannelId = v.pipe(v.string(), v.regex(/^[C][A-Z0-9]{2,}$/));
13
+ export const DefsChannelName = v.string();
14
+ export const DefsCommentId = v.pipe(v.string(), v.regex(/^Fc[A-Z0-9]{8,}$/));
15
+ export const DefsDmId = v.pipe(v.string(), v.regex(/^[D][A-Z0-9]{8,}$/));
16
+ export const DefsEnterpriseId = v.pipe(v.string(), v.regex(/^[E][A-Z0-9]{8,}$/));
17
+ export const DefsEnterpriseName = v.string();
18
+ export const DefsEnterpriseUserId = v.pipe(v.string(), v.regex(/^[WU][A-Z0-9]{8,}$/));
19
+ export const DefsFileId = v.pipe(v.string(), v.regex(/^[F][A-Z0-9]{8,}$/));
20
+ export const DefsGroupId = v.pipe(v.string(), v.regex(/^[G][A-Z0-9]{8,}$/));
21
+ export const DefsOkFalse = v.literal(false);
22
+ export const DefsOkTrue = v.literal(true);
23
+ export const DefsOptionalAppId = v.pipe(v.string(), v.regex(/^(A[A-Z0-9]{1,})?$/));
24
+ export const DefsPinnedInfo = v.record(v.string(), v.unknown());
25
+ export const DefsReminderId = v.pipe(v.string(), v.regex(/^Rm[A-Z0-9]{8,}$/));
26
+ export const DefsSubteamId = v.pipe(v.string(), v.regex(/^S[A-Z0-9]{2,}$/));
27
+ export const DefsTeam = v.pipe(v.string(), v.regex(/^[T][A-Z0-9]{2,}$/));
28
+ export const DefsTopicPurposeCreator = v.pipe(v.string(), v.regex(/^[UW][A-Z0-9]{8,}$|^$/));
29
+ export const DefsTs = v.pipe(v.string(), v.regex(/^\d{10}\.\d{6}$/));
30
+ export const DefsUserId = v.pipe(v.string(), v.regex(/^[UW][A-Z0-9]{2,}$/));
31
+ export const DefsWorkspaceId = v.pipe(v.string(), v.regex(/^[TE][A-Z0-9]{8,}$/));
32
+ export const ObjsBotProfile = v.objectWithRest({
33
+ app_id: v.lazy(() => DefsAppId),
34
+ deleted: v.boolean(),
35
+ icons: v.objectWithRest({
36
+ image_36: v.string(),
37
+ image_48: v.string(),
38
+ image_72: v.string(),
39
+ }, v.unknown()),
40
+ id: v.lazy(() => DefsBotId),
41
+ name: v.string(),
42
+ team_id: v.lazy(() => DefsTeam),
43
+ updated: integer(),
44
+ }, v.unknown());
45
+ export const ObjsChannel = v.objectWithRest({
46
+ accepted_user: v.optional(v.lazy(() => DefsUserId)),
47
+ created: integer(),
48
+ creator: v.lazy(() => DefsUserId),
49
+ id: v.lazy(() => DefsChannelId),
50
+ is_archived: v.optional(v.boolean()),
51
+ is_channel: v.boolean(),
52
+ is_frozen: v.optional(v.boolean()),
53
+ is_general: v.optional(v.boolean()),
54
+ is_member: v.optional(v.boolean()),
55
+ is_moved: v.optional(integer()),
56
+ is_mpim: v.boolean(),
57
+ is_non_threadable: v.optional(v.boolean()),
58
+ is_org_shared: v.boolean(),
59
+ is_pending_ext_shared: v.optional(v.boolean()),
60
+ is_private: v.boolean(),
61
+ is_read_only: v.optional(v.boolean()),
62
+ is_shared: v.boolean(),
63
+ is_thread_only: v.optional(v.boolean()),
64
+ last_read: v.optional(v.lazy(() => DefsTs)),
65
+ latest: v.optional(v.nullable(v.lazy(() => ObjsMessage))),
66
+ members: v.pipe(v.array(v.lazy(() => DefsUserId)), v.minLength(0), v.check((items) => unique(items), "items must be unique")),
67
+ name: v.string(),
68
+ name_normalized: v.string(),
69
+ num_members: v.optional(integer()),
70
+ pending_shared: v.optional(v.pipe(v.array(v.lazy(() => DefsTeam)), v.minLength(0), v.check((items) => unique(items), "items must be unique"))),
71
+ previous_names: v.optional(v.pipe(v.array(v.lazy(() => DefsChannelName)), v.minLength(0), v.check((items) => unique(items), "items must be unique"))),
72
+ priority: v.optional(number()),
73
+ purpose: v.objectWithRest({
74
+ creator: v.lazy(() => DefsTopicPurposeCreator),
75
+ last_set: integer(),
76
+ value: v.string(),
77
+ }, v.unknown()),
78
+ topic: v.objectWithRest({
79
+ creator: v.lazy(() => DefsTopicPurposeCreator),
80
+ last_set: integer(),
81
+ value: v.string(),
82
+ }, v.unknown()),
83
+ unlinked: v.optional(integer()),
84
+ unread_count: v.optional(integer()),
85
+ unread_count_display: v.optional(integer()),
86
+ }, v.unknown());
87
+ export const ObjsComment = v.objectWithRest({
88
+ comment: v.string(),
89
+ created: integer(),
90
+ id: v.lazy(() => DefsCommentId),
91
+ is_intro: v.boolean(),
92
+ is_starred: v.optional(v.boolean()),
93
+ num_stars: v.optional(integer()),
94
+ pinned_info: v.optional(v.lazy(() => DefsPinnedInfo)),
95
+ pinned_to: v.optional(v.array(v.lazy(() => DefsChannel))),
96
+ reactions: v.optional(v.array(v.lazy(() => ObjsReaction))),
97
+ timestamp: integer(),
98
+ user: v.lazy(() => DefsUserId),
99
+ }, v.unknown());
100
+ export const ObjsComments = v.array(v.unknown());
101
+ export const ObjsConversation = v.union([
102
+ v.objectWithRest({
103
+ accepted_user: v.optional(v.lazy(() => DefsUserId)),
104
+ connected_team_ids: v.optional(v.pipe(v.array(v.lazy(() => DefsWorkspaceId)), v.minLength(0), v.check((items) => unique(items), "items must be unique"))),
105
+ conversation_host_id: v.optional(v.lazy(() => DefsWorkspaceId)),
106
+ created: integer(),
107
+ creator: v.lazy(() => DefsUserId),
108
+ display_counts: v.optional(v.objectWithRest({
109
+ display_counts: integer(),
110
+ guest_counts: integer(),
111
+ }, v.unknown())),
112
+ enterprise_id: v.optional(v.lazy(() => DefsEnterpriseId)),
113
+ has_pins: v.optional(v.boolean()),
114
+ id: v.lazy(() => DefsChannel),
115
+ internal_team_ids: v.optional(v.pipe(v.array(v.lazy(() => DefsTeam)), v.minLength(0), v.check((items) => unique(items), "items must be unique"))),
116
+ is_archived: v.boolean(),
117
+ is_channel: v.boolean(),
118
+ is_ext_shared: v.optional(v.boolean()),
119
+ is_frozen: v.optional(v.boolean()),
120
+ is_general: v.boolean(),
121
+ is_global_shared: v.optional(v.boolean()),
122
+ is_group: v.boolean(),
123
+ is_im: v.boolean(),
124
+ is_member: v.optional(v.boolean()),
125
+ is_moved: v.optional(integer()),
126
+ is_mpim: v.literal(false),
127
+ is_non_threadable: v.optional(v.boolean()),
128
+ is_open: v.optional(v.boolean()),
129
+ is_org_default: v.optional(v.boolean()),
130
+ is_org_mandatory: v.optional(v.boolean()),
131
+ is_org_shared: v.boolean(),
132
+ is_pending_ext_shared: v.optional(v.boolean()),
133
+ is_private: v.boolean(),
134
+ is_read_only: v.optional(v.boolean()),
135
+ is_shared: v.boolean(),
136
+ is_starred: v.optional(v.boolean()),
137
+ is_thread_only: v.optional(v.boolean()),
138
+ last_read: v.optional(v.lazy(() => DefsTs)),
139
+ latest: v.optional(v.nullable(v.lazy(() => ObjsMessage))),
140
+ members: v.optional(v.pipe(v.array(v.lazy(() => DefsUserId)), v.minLength(0), v.check((items) => unique(items), "items must be unique"))),
141
+ name: v.string(),
142
+ name_normalized: v.string(),
143
+ num_members: v.optional(integer()),
144
+ parent_conversation: v.optional(v.nullable(v.lazy(() => DefsChannel))),
145
+ pending_connected_team_ids: v.optional(v.pipe(v.array(v.lazy(() => DefsTeam)), v.minLength(0), v.check((items) => unique(items), "items must be unique"))),
146
+ pending_shared: v.optional(v.pipe(v.array(v.lazy(() => DefsTeam)), v.minLength(0), v.check((items) => unique(items), "items must be unique"))),
147
+ pin_count: v.optional(integer()),
148
+ previous_names: v.optional(v.pipe(v.array(v.lazy(() => DefsChannelName)), v.minLength(0), v.check((items) => unique(items), "items must be unique"))),
149
+ priority: v.optional(number()),
150
+ purpose: v.objectWithRest({
151
+ creator: v.lazy(() => DefsTopicPurposeCreator),
152
+ last_set: integer(),
153
+ value: v.string(),
154
+ }, v.unknown()),
155
+ shared_team_ids: v.optional(v.pipe(v.array(v.lazy(() => DefsTeam)), v.minLength(0), v.check((items) => unique(items), "items must be unique"))),
156
+ shares: v.optional(v.pipe(v.array(v.objectWithRest({
157
+ accepted_user: v.optional(v.lazy(() => DefsUserId)),
158
+ is_active: v.boolean(),
159
+ team: v.lazy(() => ObjsTeam),
160
+ user: v.lazy(() => DefsUserId),
161
+ }, v.unknown())), v.minLength(0), v.check((items) => unique(items), "items must be unique"))),
162
+ timezone_count: v.optional(integer()),
163
+ topic: v.objectWithRest({
164
+ creator: v.lazy(() => DefsTopicPurposeCreator),
165
+ last_set: integer(),
166
+ value: v.string(),
167
+ }, v.unknown()),
168
+ unlinked: v.optional(integer()),
169
+ unread_count: v.optional(integer()),
170
+ unread_count_display: v.optional(integer()),
171
+ use_case: v.optional(v.string()),
172
+ user: v.optional(v.lazy(() => DefsUserId)),
173
+ version: v.optional(integer()),
174
+ }, v.unknown()),
175
+ v.objectWithRest({
176
+ accepted_user: v.optional(v.lazy(() => DefsUserId)),
177
+ connected_team_ids: v.optional(v.pipe(v.array(v.lazy(() => DefsTeam)), v.minLength(0), v.check((items) => unique(items), "items must be unique"))),
178
+ conversation_host_id: v.optional(v.lazy(() => DefsWorkspaceId)),
179
+ created: integer(),
180
+ creator: v.lazy(() => DefsUserId),
181
+ display_counts: v.optional(v.objectWithRest({
182
+ display_counts: integer(),
183
+ guest_counts: integer(),
184
+ }, v.unknown())),
185
+ id: v.lazy(() => DefsChannel),
186
+ internal_team_ids: v.optional(v.pipe(v.array(v.lazy(() => DefsTeam)), v.minLength(0), v.check((items) => unique(items), "items must be unique"))),
187
+ is_archived: v.boolean(),
188
+ is_channel: v.boolean(),
189
+ is_ext_shared: v.optional(v.boolean()),
190
+ is_frozen: v.optional(v.boolean()),
191
+ is_general: v.boolean(),
192
+ is_group: v.boolean(),
193
+ is_im: v.boolean(),
194
+ is_member: v.optional(v.boolean()),
195
+ is_moved: v.optional(integer()),
196
+ is_mpim: v.literal(true),
197
+ is_non_threadable: v.optional(v.boolean()),
198
+ is_open: v.optional(v.boolean()),
199
+ is_org_shared: v.boolean(),
200
+ is_pending_ext_shared: v.optional(v.boolean()),
201
+ is_private: v.boolean(),
202
+ is_read_only: v.optional(v.boolean()),
203
+ is_shared: v.boolean(),
204
+ is_starred: v.optional(v.boolean()),
205
+ is_thread_only: v.optional(v.boolean()),
206
+ last_read: v.optional(v.lazy(() => DefsTs)),
207
+ latest: v.optional(v.nullable(v.lazy(() => ObjsMessage))),
208
+ members: v.optional(v.pipe(v.array(v.lazy(() => DefsUserId)), v.minLength(0), v.check((items) => unique(items), "items must be unique"))),
209
+ name: v.string(),
210
+ name_normalized: v.string(),
211
+ num_members: v.optional(integer()),
212
+ parent_conversation: v.optional(v.nullable(v.lazy(() => DefsChannel))),
213
+ pending_connected_team_ids: v.optional(v.pipe(v.array(v.lazy(() => DefsTeam)), v.minLength(0), v.check((items) => unique(items), "items must be unique"))),
214
+ pending_shared: v.optional(v.pipe(v.array(v.lazy(() => DefsTeam)), v.minLength(0), v.check((items) => unique(items), "items must be unique"))),
215
+ pin_count: v.optional(integer()),
216
+ previous_names: v.optional(v.pipe(v.array(v.lazy(() => DefsChannelName)), v.minLength(0), v.check((items) => unique(items), "items must be unique"))),
217
+ priority: v.optional(number()),
218
+ purpose: v.objectWithRest({
219
+ creator: v.lazy(() => DefsTopicPurposeCreator),
220
+ last_set: integer(),
221
+ value: v.string(),
222
+ }, v.unknown()),
223
+ shared_team_ids: v.optional(v.pipe(v.array(v.lazy(() => DefsTeam)), v.minLength(0), v.check((items) => unique(items), "items must be unique"))),
224
+ shares: v.optional(v.pipe(v.array(v.objectWithRest({
225
+ accepted_user: v.optional(v.lazy(() => DefsUserId)),
226
+ is_active: v.boolean(),
227
+ team: v.lazy(() => ObjsTeam),
228
+ user: v.lazy(() => DefsUserId),
229
+ }, v.unknown())), v.minLength(0), v.check((items) => unique(items), "items must be unique"))),
230
+ timezone_count: v.optional(integer()),
231
+ topic: v.objectWithRest({
232
+ creator: v.lazy(() => DefsTopicPurposeCreator),
233
+ last_set: integer(),
234
+ value: v.string(),
235
+ }, v.unknown()),
236
+ unlinked: v.optional(integer()),
237
+ unread_count: v.optional(integer()),
238
+ unread_count_display: v.optional(integer()),
239
+ user: v.optional(v.lazy(() => DefsUserId)),
240
+ version: v.optional(integer()),
241
+ }, v.unknown()),
242
+ v.objectWithRest({
243
+ created: integer(),
244
+ has_pins: v.optional(v.boolean()),
245
+ id: v.lazy(() => DefsDmId),
246
+ is_archived: v.optional(v.boolean()),
247
+ is_ext_shared: v.optional(v.boolean()),
248
+ is_frozen: v.optional(v.boolean()),
249
+ is_im: v.boolean(),
250
+ is_open: v.optional(v.boolean()),
251
+ is_org_shared: v.boolean(),
252
+ is_shared: v.optional(v.boolean()),
253
+ is_starred: v.optional(v.boolean()),
254
+ is_user_deleted: v.optional(v.boolean()),
255
+ last_read: v.optional(v.lazy(() => DefsTs)),
256
+ latest: v.optional(v.nullable(v.lazy(() => ObjsMessage))),
257
+ parent_conversation: v.optional(v.nullable(v.lazy(() => DefsChannel))),
258
+ pin_count: v.optional(integer()),
259
+ priority: number(),
260
+ shares: v.optional(v.pipe(v.array(v.objectWithRest({
261
+ date_create: integer(),
262
+ id: v.lazy(() => DefsTeam),
263
+ is_active: v.boolean(),
264
+ name: v.string(),
265
+ team: v.lazy(() => ObjsTeam),
266
+ }, v.unknown())), v.minLength(0), v.check((items) => unique(items), "items must be unique"))),
267
+ unread_count: v.optional(integer()),
268
+ unread_count_display: v.optional(integer()),
269
+ user: v.lazy(() => DefsUserId),
270
+ version: v.optional(integer()),
271
+ }, v.unknown()),
272
+ ]);
273
+ export const ObjsEnterpriseUser = v.objectWithRest({
274
+ enterprise_id: v.lazy(() => DefsEnterpriseId),
275
+ enterprise_name: v.lazy(() => DefsEnterpriseName),
276
+ id: v.lazy(() => DefsEnterpriseUserId),
277
+ is_admin: v.boolean(),
278
+ is_owner: v.boolean(),
279
+ teams: v.pipe(v.array(v.lazy(() => DefsTeam)), v.check((items) => unique(items), "items must be unique")),
280
+ }, v.unknown());
281
+ export const ObjsExternalOrgMigrations = v.looseObject({
282
+ current: v.array(v.looseObject({
283
+ date_started: integer(),
284
+ team_id: v.string(),
285
+ })),
286
+ date_updated: integer(),
287
+ });
288
+ export const ObjsFile = v.objectWithRest({
289
+ channels: v.optional(v.pipe(v.array(v.lazy(() => DefsChannelId)), v.check((items) => unique(items), "items must be unique"))),
290
+ comments_count: v.optional(integer()),
291
+ created: v.optional(integer()),
292
+ date_delete: v.optional(integer()),
293
+ display_as_bot: v.optional(v.boolean()),
294
+ editable: v.optional(v.boolean()),
295
+ editor: v.optional(v.lazy(() => DefsUserId)),
296
+ external_id: v.optional(v.string()),
297
+ external_type: v.optional(v.string()),
298
+ external_url: v.optional(v.string()),
299
+ filetype: v.optional(v.string()),
300
+ groups: v.optional(v.pipe(v.array(v.lazy(() => DefsGroupId)), v.check((items) => unique(items), "items must be unique"))),
301
+ has_rich_preview: v.optional(v.boolean()),
302
+ id: v.optional(v.lazy(() => DefsFileId)),
303
+ image_exif_rotation: v.optional(integer()),
304
+ ims: v.optional(v.pipe(v.array(v.lazy(() => DefsDmId)), v.check((items) => unique(items), "items must be unique"))),
305
+ is_external: v.optional(v.boolean()),
306
+ is_public: v.optional(v.boolean()),
307
+ is_starred: v.optional(v.boolean()),
308
+ is_tombstoned: v.optional(v.boolean()),
309
+ last_editor: v.optional(v.lazy(() => DefsUserId)),
310
+ mimetype: v.optional(v.string()),
311
+ mode: v.optional(v.string()),
312
+ name: v.optional(v.string()),
313
+ non_owner_editable: v.optional(v.boolean()),
314
+ num_stars: v.optional(integer()),
315
+ original_h: v.optional(integer()),
316
+ original_w: v.optional(integer()),
317
+ permalink: v.optional(v.string()),
318
+ permalink_public: v.optional(v.string()),
319
+ pinned_info: v.optional(v.lazy(() => DefsPinnedInfo)),
320
+ pinned_to: v.optional(v.array(v.lazy(() => DefsChannel))),
321
+ pretty_type: v.optional(v.string()),
322
+ preview: v.optional(v.string()),
323
+ public_url_shared: v.optional(v.boolean()),
324
+ reactions: v.optional(v.array(v.lazy(() => ObjsReaction))),
325
+ shares: v.optional(v.objectWithRest({
326
+ private: v.optional(v.record(v.string(), v.unknown())),
327
+ public: v.optional(v.record(v.string(), v.unknown())),
328
+ }, v.unknown())),
329
+ size: v.optional(integer()),
330
+ source_team: v.optional(v.lazy(() => DefsTeam)),
331
+ state: v.optional(v.string()),
332
+ thumb_1024: v.optional(v.string()),
333
+ thumb_1024_h: v.optional(integer()),
334
+ thumb_1024_w: v.optional(integer()),
335
+ thumb_160: v.optional(v.string()),
336
+ thumb_360: v.optional(v.string()),
337
+ thumb_360_h: v.optional(integer()),
338
+ thumb_360_w: v.optional(integer()),
339
+ thumb_480: v.optional(v.string()),
340
+ thumb_480_h: v.optional(integer()),
341
+ thumb_480_w: v.optional(integer()),
342
+ thumb_64: v.optional(v.string()),
343
+ thumb_720: v.optional(v.string()),
344
+ thumb_720_h: v.optional(integer()),
345
+ thumb_720_w: v.optional(integer()),
346
+ thumb_80: v.optional(v.string()),
347
+ thumb_800: v.optional(v.string()),
348
+ thumb_800_h: v.optional(integer()),
349
+ thumb_800_w: v.optional(integer()),
350
+ thumb_960: v.optional(v.string()),
351
+ thumb_960_h: v.optional(integer()),
352
+ thumb_960_w: v.optional(integer()),
353
+ thumb_tiny: v.optional(v.string()),
354
+ timestamp: v.optional(integer()),
355
+ title: v.optional(v.string()),
356
+ updated: v.optional(integer()),
357
+ url_private: v.optional(v.string()),
358
+ url_private_download: v.optional(v.string()),
359
+ user: v.optional(v.string()),
360
+ user_team: v.optional(v.lazy(() => DefsTeam)),
361
+ username: v.optional(v.string()),
362
+ }, v.unknown());
363
+ export const ObjsIcon = v.looseObject({
364
+ image_102: v.optional(v.string()),
365
+ image_132: v.optional(v.string()),
366
+ image_230: v.optional(v.string()),
367
+ image_34: v.optional(v.string()),
368
+ image_44: v.optional(v.string()),
369
+ image_68: v.optional(v.string()),
370
+ image_88: v.optional(v.string()),
371
+ image_default: v.optional(v.boolean()),
372
+ });
373
+ export const ObjsMessage = v.objectWithRest({
374
+ attachments: v.optional(v.pipe(v.array(v.objectWithRest({
375
+ fallback: v.optional(v.string()),
376
+ id: integer(),
377
+ image_bytes: v.optional(integer()),
378
+ image_height: v.optional(integer()),
379
+ image_url: v.optional(v.string()),
380
+ image_width: v.optional(integer()),
381
+ }, v.unknown())), v.minLength(0), v.check((items) => unique(items), "items must be unique"))),
382
+ blocks: v.optional(v.lazy(() => Blocks)),
383
+ bot_id: v.optional(v.nullable(v.lazy(() => DefsBotId))),
384
+ bot_profile: v.optional(v.lazy(() => ObjsBotProfile)),
385
+ client_msg_id: v.optional(v.string()),
386
+ comment: v.optional(v.lazy(() => ObjsComment)),
387
+ display_as_bot: v.optional(v.boolean()),
388
+ file: v.optional(v.lazy(() => ObjsFile)),
389
+ files: v.optional(v.pipe(v.array(v.lazy(() => ObjsFile)), v.minLength(0), v.check((items) => unique(items), "items must be unique"))),
390
+ icons: v.optional(v.objectWithRest({
391
+ emoji: v.optional(v.string()),
392
+ image_64: v.optional(v.string()),
393
+ }, v.unknown())),
394
+ inviter: v.optional(v.lazy(() => DefsUserId)),
395
+ is_delayed_message: v.optional(v.boolean()),
396
+ is_intro: v.optional(v.boolean()),
397
+ is_starred: v.optional(v.boolean()),
398
+ last_read: v.optional(v.lazy(() => DefsTs)),
399
+ latest_reply: v.optional(v.lazy(() => DefsTs)),
400
+ name: v.optional(v.string()),
401
+ old_name: v.optional(v.string()),
402
+ parent_user_id: v.optional(v.lazy(() => DefsUserId)),
403
+ permalink: v.optional(v.string()),
404
+ pinned_to: v.optional(v.array(v.lazy(() => DefsChannel))),
405
+ purpose: v.optional(v.string()),
406
+ reactions: v.optional(v.array(v.lazy(() => ObjsReaction))),
407
+ reply_count: v.optional(integer()),
408
+ reply_users: v.optional(v.pipe(v.array(v.lazy(() => DefsUserId)), v.minLength(0), v.check((items) => unique(items), "items must be unique"))),
409
+ reply_users_count: v.optional(integer()),
410
+ source_team: v.optional(v.lazy(() => DefsWorkspaceId)),
411
+ subscribed: v.optional(v.boolean()),
412
+ subtype: v.optional(v.string()),
413
+ team: v.optional(v.lazy(() => DefsWorkspaceId)),
414
+ text: v.string(),
415
+ thread_ts: v.optional(v.lazy(() => DefsTs)),
416
+ topic: v.optional(v.string()),
417
+ ts: v.lazy(() => DefsTs),
418
+ type: v.string(),
419
+ unread_count: v.optional(integer()),
420
+ upload: v.optional(v.boolean()),
421
+ user: v.optional(v.lazy(() => DefsUserId)),
422
+ user_profile: v.optional(v.lazy(() => ObjsUserProfileShort)),
423
+ user_team: v.optional(v.lazy(() => DefsWorkspaceId)),
424
+ username: v.optional(v.string()),
425
+ }, v.unknown());
426
+ export const ObjsPaging = v.objectWithRest({
427
+ count: v.optional(integer()),
428
+ page: integer(),
429
+ pages: v.optional(integer()),
430
+ per_page: v.optional(integer()),
431
+ spill: v.optional(integer()),
432
+ total: integer(),
433
+ }, v.unknown());
434
+ export const ObjsPrimaryOwner = v.looseObject({
435
+ email: v.string(),
436
+ id: v.string(),
437
+ });
438
+ export const ObjsReaction = v.objectWithRest({
439
+ count: integer(),
440
+ name: v.string(),
441
+ users: v.array(v.lazy(() => DefsUserId)),
442
+ }, v.unknown());
443
+ export const ObjsReminder = v.objectWithRest({
444
+ complete_ts: v.optional(integer()),
445
+ creator: v.lazy(() => DefsUserId),
446
+ id: v.lazy(() => DefsReminderId),
447
+ recurring: v.boolean(),
448
+ text: v.string(),
449
+ time: v.optional(integer()),
450
+ user: v.lazy(() => DefsUserId),
451
+ }, v.unknown());
452
+ export const ObjsResources = v.objectWithRest({
453
+ excluded_ids: v.optional(v.array(v.union([v.lazy(() => DefsChannel), v.lazy(() => DefsTeam)]))),
454
+ ids: v.array(v.union([v.lazy(() => DefsChannel), v.lazy(() => DefsTeam)])),
455
+ wildcard: v.optional(v.boolean()),
456
+ }, v.unknown());
457
+ export const ObjsResponseMetadata = v.looseObject({
458
+ next_cursor: v.optional(v.string()),
459
+ messages: v.optional(v.array(v.string())),
460
+ warnings: v.optional(v.array(v.string())),
461
+ });
462
+ export const ObjsScopes = v.array(v.string());
463
+ export const ObjsSubteam = v.objectWithRest({
464
+ auto_provision: v.boolean(),
465
+ auto_type: v.nullable(v.picklist(["owner", "admin"])),
466
+ channel_count: v.optional(integer()),
467
+ created_by: v.lazy(() => DefsUserId),
468
+ date_create: integer(),
469
+ date_delete: integer(),
470
+ date_update: integer(),
471
+ deleted_by: v.nullable(v.lazy(() => DefsUserId)),
472
+ description: v.string(),
473
+ enterprise_subteam_id: v.string(),
474
+ handle: v.string(),
475
+ id: v.lazy(() => DefsSubteamId),
476
+ is_external: v.boolean(),
477
+ is_subteam: v.boolean(),
478
+ is_usergroup: v.boolean(),
479
+ name: v.string(),
480
+ prefs: v.objectWithRest({
481
+ channels: v.array(v.lazy(() => DefsChannelId)),
482
+ groups: v.array(v.lazy(() => DefsGroupId)),
483
+ }, v.unknown()),
484
+ team_id: v.lazy(() => DefsTeam),
485
+ updated_by: v.lazy(() => DefsUserId),
486
+ user_count: v.optional(integer()),
487
+ users: v.optional(v.array(v.lazy(() => DefsUserId))),
488
+ }, v.unknown());
489
+ export const ObjsTeam = v.objectWithRest({
490
+ archived: v.optional(v.boolean()),
491
+ avatar_base_url: v.optional(v.string()),
492
+ created: v.optional(integer()),
493
+ date_create: v.optional(integer()),
494
+ deleted: v.optional(v.boolean()),
495
+ description: v.optional(v.nullable(v.string())),
496
+ discoverable: v.optional(v.nullable(v.string())),
497
+ domain: v.string(),
498
+ email_domain: v.string(),
499
+ enterprise_id: v.optional(v.lazy(() => DefsEnterpriseId)),
500
+ enterprise_name: v.optional(v.lazy(() => DefsEnterpriseName)),
501
+ external_org_migrations: v.optional(v.lazy(() => ObjsExternalOrgMigrations)),
502
+ has_compliance_export: v.optional(v.boolean()),
503
+ icon: v.lazy(() => ObjsIcon),
504
+ id: v.lazy(() => DefsWorkspaceId),
505
+ is_assigned: v.optional(v.boolean()),
506
+ is_enterprise: v.optional(integer()),
507
+ is_over_storage_limit: v.optional(v.boolean()),
508
+ limit_ts: v.optional(integer()),
509
+ locale: v.optional(v.string()),
510
+ messages_count: v.optional(integer()),
511
+ msg_edit_window_mins: v.optional(integer()),
512
+ name: v.string(),
513
+ over_integrations_limit: v.optional(v.boolean()),
514
+ over_storage_limit: v.optional(v.boolean()),
515
+ pay_prod_cur: v.optional(v.string()),
516
+ plan: v.optional(v.picklist(["", "std", "plus", "compliance", "enterprise"])),
517
+ primary_owner: v.optional(v.lazy(() => ObjsPrimaryOwner)),
518
+ sso_provider: v.optional(v.looseObject({
519
+ label: v.optional(v.string()),
520
+ name: v.optional(v.string()),
521
+ type: v.optional(v.string()),
522
+ })),
523
+ }, v.unknown());
524
+ export const ObjsTeamProfileField = v.objectWithRest({
525
+ field_name: v.optional(v.nullable(v.string())),
526
+ hint: v.string(),
527
+ id: v.pipe(v.string(), v.regex(/^X[a-zA-Z0-9]{9,}$/)),
528
+ is_hidden: v.optional(v.boolean()),
529
+ label: v.string(),
530
+ options: v.optional(v.nullable(v.lazy(() => ObjsTeamProfileFieldOption))),
531
+ ordering: number(),
532
+ possible_values: v.optional(v.nullable(v.array(v.string()))),
533
+ type: v.picklist(["text", "date", "link", "mailto", "options_list", "user"]),
534
+ }, v.unknown());
535
+ export const ObjsTeamProfileFieldOption = v.objectWithRest({
536
+ is_custom: v.optional(v.nullable(v.boolean())),
537
+ is_multiple_entry: v.optional(v.nullable(v.boolean())),
538
+ is_protected: v.optional(v.nullable(v.boolean())),
539
+ is_scim: v.optional(v.nullable(v.boolean())),
540
+ }, v.unknown());
541
+ export const ObjsUser = v.union([
542
+ v.objectWithRest({
543
+ color: v.optional(v.pipe(v.string(), v.regex(/^[a-fA-F0-9]{6}$/))),
544
+ deleted: v.optional(v.boolean()),
545
+ enterprise_user: v.optional(v.lazy(() => ObjsEnterpriseUser)),
546
+ has_2fa: v.optional(v.boolean()),
547
+ id: v.lazy(() => DefsUserId),
548
+ is_admin: v.optional(v.boolean()),
549
+ is_app_user: v.boolean(),
550
+ is_bot: v.boolean(),
551
+ is_external: v.optional(v.boolean()),
552
+ is_forgotten: v.optional(v.boolean()),
553
+ is_invited_user: v.optional(v.boolean()),
554
+ is_owner: v.optional(v.boolean()),
555
+ is_primary_owner: v.optional(v.boolean()),
556
+ is_restricted: v.optional(v.boolean()),
557
+ is_stranger: v.optional(v.boolean()),
558
+ is_ultra_restricted: v.optional(v.boolean()),
559
+ locale: v.optional(v.string()),
560
+ name: v.string(),
561
+ presence: v.optional(v.string()),
562
+ profile: v.lazy(() => ObjsUserProfile),
563
+ real_name: v.optional(v.string()),
564
+ team: v.optional(v.lazy(() => DefsWorkspaceId)),
565
+ team_id: v.optional(v.lazy(() => DefsWorkspaceId)),
566
+ team_profile: v.optional(v.objectWithRest({
567
+ fields: v.pipe(v.array(v.lazy(() => ObjsTeamProfileField)), v.minLength(0), v.check((items) => unique(items), "items must be unique")),
568
+ }, v.unknown())),
569
+ two_factor_type: v.optional(v.string()),
570
+ tz: v.optional(v.nullable(v.string())),
571
+ tz_label: v.optional(v.string()),
572
+ tz_offset: v.optional(number()),
573
+ updated: number(),
574
+ }, v.unknown()),
575
+ v.objectWithRest({
576
+ color: v.optional(v.pipe(v.string(), v.regex(/^([a-fA-F0-9]{6})?$/))),
577
+ deleted: v.optional(v.boolean()),
578
+ enterprise_user: v.optional(v.lazy(() => ObjsEnterpriseUser)),
579
+ has_2fa: v.optional(v.boolean()),
580
+ id: v.lazy(() => DefsUserId),
581
+ is_admin: v.optional(v.boolean()),
582
+ is_app_user: v.boolean(),
583
+ is_bot: v.boolean(),
584
+ is_external: v.optional(v.boolean()),
585
+ is_forgotten: v.optional(v.boolean()),
586
+ is_owner: v.optional(v.boolean()),
587
+ is_primary_owner: v.optional(v.boolean()),
588
+ is_restricted: v.optional(v.boolean()),
589
+ is_stranger: v.optional(v.boolean()),
590
+ is_ultra_restricted: v.optional(v.boolean()),
591
+ locale: v.optional(v.string()),
592
+ name: v.string(),
593
+ presence: v.optional(v.string()),
594
+ profile: v.lazy(() => ObjsUserProfile),
595
+ real_name: v.optional(v.string()),
596
+ team_id: v.optional(v.lazy(() => DefsWorkspaceId)),
597
+ team_profile: v.optional(v.objectWithRest({
598
+ fields: v.pipe(v.array(v.lazy(() => ObjsTeamProfileField)), v.minLength(0), v.check((items) => unique(items), "items must be unique")),
599
+ }, v.unknown())),
600
+ teams: v.optional(v.pipe(v.array(v.lazy(() => DefsWorkspaceId)), v.minLength(0), v.check((items) => unique(items), "items must be unique"))),
601
+ two_factor_type: v.optional(v.string()),
602
+ tz: v.optional(v.nullable(v.string())),
603
+ tz_label: v.optional(v.string()),
604
+ tz_offset: v.optional(number()),
605
+ updated: number(),
606
+ }, v.unknown()),
607
+ ]);
608
+ export const ObjsUserProfile = v.objectWithRest({
609
+ always_active: v.optional(v.boolean()),
610
+ api_app_id: v.optional(v.lazy(() => DefsOptionalAppId)),
611
+ avatar_hash: v.string(),
612
+ bot_id: v.optional(v.lazy(() => DefsBotId)),
613
+ display_name: v.string(),
614
+ display_name_normalized: v.string(),
615
+ email: v.optional(v.nullable(v.string())),
616
+ fields: v.nullable(v.union([v.looseObject({}), v.array(v.looseObject({}))])),
617
+ first_name: v.optional(v.nullable(v.string())),
618
+ guest_expiration_ts: v.optional(v.nullable(integer())),
619
+ guest_invited_by: v.optional(v.nullable(v.string())),
620
+ image_1024: v.optional(v.nullable(v.string())),
621
+ image_192: v.optional(v.nullable(v.string())),
622
+ image_24: v.optional(v.nullable(v.string())),
623
+ image_32: v.optional(v.nullable(v.string())),
624
+ image_48: v.optional(v.nullable(v.string())),
625
+ image_512: v.optional(v.nullable(v.string())),
626
+ image_72: v.optional(v.nullable(v.string())),
627
+ image_original: v.optional(v.nullable(v.string())),
628
+ is_app_user: v.optional(v.boolean()),
629
+ is_custom_image: v.optional(v.boolean()),
630
+ is_restricted: v.optional(v.nullable(v.boolean())),
631
+ is_ultra_restricted: v.optional(v.nullable(v.boolean())),
632
+ last_avatar_image_hash: v.optional(v.string()),
633
+ last_name: v.optional(v.nullable(v.string())),
634
+ memberships_count: v.optional(integer()),
635
+ name: v.optional(v.nullable(v.string())),
636
+ phone: v.string(),
637
+ pronouns: v.optional(v.string()),
638
+ real_name: v.string(),
639
+ real_name_normalized: v.string(),
640
+ skype: v.string(),
641
+ status_default_emoji: v.optional(v.string()),
642
+ status_default_text: v.optional(v.string()),
643
+ status_default_text_canonical: v.optional(v.nullable(v.string())),
644
+ status_emoji: v.string(),
645
+ status_expiration: v.optional(integer()),
646
+ status_text: v.string(),
647
+ status_text_canonical: v.optional(v.nullable(v.string())),
648
+ team: v.optional(v.lazy(() => DefsWorkspaceId)),
649
+ title: v.string(),
650
+ updated: v.optional(integer()),
651
+ user_id: v.optional(v.string()),
652
+ username: v.optional(v.nullable(v.string())),
653
+ }, v.unknown());
654
+ export const ObjsUserProfileShort = v.objectWithRest({
655
+ avatar_hash: v.string(),
656
+ display_name: v.string(),
657
+ display_name_normalized: v.optional(v.string()),
658
+ first_name: v.nullable(v.string()),
659
+ image_72: v.string(),
660
+ is_restricted: v.boolean(),
661
+ is_ultra_restricted: v.boolean(),
662
+ name: v.string(),
663
+ real_name: v.string(),
664
+ real_name_normalized: v.optional(v.string()),
665
+ team: v.lazy(() => DefsWorkspaceId),
666
+ }, v.unknown());
667
+ export const AdminAppsApproveRequest = v.looseObject({
668
+ app_id: v.optional(v.string()),
669
+ request_id: v.optional(v.string()),
670
+ team_id: v.optional(v.string()),
671
+ });
672
+ export const AdminAppsApproveResponse = v.objectWithRest({
673
+ ok: v.lazy(() => DefsOkTrue),
674
+ }, v.unknown());
675
+ export const AdminAppsApprovedListResponse = v.objectWithRest({
676
+ ok: v.lazy(() => DefsOkTrue),
677
+ }, v.unknown());
678
+ export const AdminAppsRequestsListResponse = v.objectWithRest({
679
+ ok: v.lazy(() => DefsOkTrue),
680
+ }, v.unknown());
681
+ export const AdminAppsRestrictRequest = v.looseObject({
682
+ app_id: v.optional(v.string()),
683
+ request_id: v.optional(v.string()),
684
+ team_id: v.optional(v.string()),
685
+ });
686
+ export const AdminAppsRestrictResponse = v.objectWithRest({
687
+ ok: v.lazy(() => DefsOkTrue),
688
+ }, v.unknown());
689
+ export const AdminAppsRestrictedListResponse = v.objectWithRest({
690
+ ok: v.lazy(() => DefsOkTrue),
691
+ }, v.unknown());
692
+ export const AdminConversationsArchiveRequest = v.looseObject({
693
+ channel_id: v.string(),
694
+ });
695
+ export const AdminConversationsArchiveResponse = v.objectWithRest({
696
+ ok: v.lazy(() => DefsOkTrue),
697
+ }, v.unknown());
698
+ export const AdminConversationsConvertToPrivateRequest = v.looseObject({
699
+ channel_id: v.string(),
700
+ });
701
+ export const AdminConversationsConvertToPrivateResponse = v.objectWithRest({
702
+ ok: v.lazy(() => DefsOkTrue),
703
+ }, v.unknown());
704
+ export const AdminConversationsCreateRequest = v.looseObject({
705
+ name: v.string(),
706
+ description: v.optional(v.string()),
707
+ is_private: v.boolean(),
708
+ org_wide: v.optional(v.boolean()),
709
+ team_id: v.optional(v.string()),
710
+ });
711
+ export const AdminConversationsCreateResponse = v.objectWithRest({
712
+ channel_id: v.optional(v.lazy(() => DefsChannelId)),
713
+ ok: v.lazy(() => DefsOkTrue),
714
+ }, v.unknown());
715
+ export const AdminConversationsDeleteRequest = v.looseObject({
716
+ channel_id: v.string(),
717
+ });
718
+ export const AdminConversationsDeleteResponse = v.objectWithRest({
719
+ ok: v.lazy(() => DefsOkTrue),
720
+ }, v.unknown());
721
+ export const AdminConversationsDisconnectSharedRequest = v.looseObject({
722
+ channel_id: v.string(),
723
+ leaving_team_ids: v.optional(v.string()),
724
+ });
725
+ export const AdminConversationsDisconnectSharedResponse = v.objectWithRest({
726
+ ok: v.lazy(() => DefsOkTrue),
727
+ }, v.unknown());
728
+ export const AdminConversationsEkmListOriginalConnectedChannelInfoResponse = v.objectWithRest({
729
+ ok: v.lazy(() => DefsOkTrue),
730
+ }, v.unknown());
731
+ export const AdminConversationsGetConversationPrefsResponse = v.objectWithRest({
732
+ ok: v.lazy(() => DefsOkTrue),
733
+ prefs: v.optional(v.looseObject({
734
+ can_thread: v.optional(v.looseObject({
735
+ type: v.optional(v.array(v.string())),
736
+ user: v.optional(v.array(v.string())),
737
+ })),
738
+ who_can_post: v.optional(v.looseObject({
739
+ type: v.optional(v.array(v.string())),
740
+ user: v.optional(v.array(v.string())),
741
+ })),
742
+ })),
743
+ }, v.unknown());
744
+ export const AdminConversationsGetTeamsResponse = v.objectWithRest({
745
+ ok: v.lazy(() => DefsOkTrue),
746
+ response_metadata: v.optional(v.objectWithRest({
747
+ next_cursor: v.string(),
748
+ }, v.unknown())),
749
+ team_ids: v.array(v.lazy(() => DefsTeam)),
750
+ }, v.unknown());
751
+ export const AdminConversationsInviteRequest = v.looseObject({
752
+ user_ids: v.string(),
753
+ channel_id: v.string(),
754
+ });
755
+ export const AdminConversationsInviteResponse = v.objectWithRest({
756
+ ok: v.lazy(() => DefsOkTrue),
757
+ }, v.unknown());
758
+ export const AdminConversationsRenameRequest = v.looseObject({
759
+ channel_id: v.string(),
760
+ name: v.string(),
761
+ });
762
+ export const AdminConversationsRenameResponse = v.objectWithRest({
763
+ ok: v.lazy(() => DefsOkTrue),
764
+ }, v.unknown());
765
+ export const AdminConversationsRestrictAccessAddGroupRequest = v.looseObject({
766
+ team_id: v.optional(v.string()),
767
+ group_id: v.string(),
768
+ channel_id: v.string(),
769
+ });
770
+ export const AdminConversationsRestrictAccessAddGroupResponse = v.objectWithRest({
771
+ ok: v.lazy(() => DefsOkTrue),
772
+ }, v.unknown());
773
+ export const AdminConversationsRestrictAccessListGroupsResponse = v.objectWithRest({
774
+ ok: v.lazy(() => DefsOkTrue),
775
+ }, v.unknown());
776
+ export const AdminConversationsRestrictAccessRemoveGroupRequest = v.looseObject({
777
+ team_id: v.string(),
778
+ group_id: v.string(),
779
+ channel_id: v.string(),
780
+ });
781
+ export const AdminConversationsRestrictAccessRemoveGroupResponse = v.objectWithRest({
782
+ ok: v.lazy(() => DefsOkTrue),
783
+ }, v.unknown());
784
+ export const AdminConversationsSearchResponse = v.objectWithRest({
785
+ channels: v.array(v.lazy(() => ObjsChannel)),
786
+ next_cursor: v.string(),
787
+ }, v.unknown());
788
+ export const AdminConversationsSetConversationPrefsRequest = v.looseObject({
789
+ channel_id: v.string(),
790
+ prefs: v.string(),
791
+ });
792
+ export const AdminConversationsSetConversationPrefsResponse = v.objectWithRest({
793
+ ok: v.lazy(() => DefsOkTrue),
794
+ }, v.unknown());
795
+ export const AdminConversationsSetTeamsRequest = v.looseObject({
796
+ channel_id: v.string(),
797
+ team_id: v.optional(v.string()),
798
+ target_team_ids: v.optional(v.string()),
799
+ org_channel: v.optional(v.boolean()),
800
+ });
801
+ export const AdminConversationsSetTeamsResponse = v.objectWithRest({
802
+ ok: v.lazy(() => DefsOkTrue),
803
+ }, v.unknown());
804
+ export const AdminConversationsUnarchiveRequest = v.looseObject({
805
+ channel_id: v.string(),
806
+ });
807
+ export const AdminConversationsUnarchiveResponse = v.objectWithRest({
808
+ ok: v.lazy(() => DefsOkTrue),
809
+ }, v.unknown());
810
+ export const AdminEmojiAddRequest = v.looseObject({
811
+ name: v.string(),
812
+ url: v.string(),
813
+ });
814
+ export const AdminEmojiAddResponse = v.objectWithRest({
815
+ ok: v.lazy(() => DefsOkTrue),
816
+ }, v.unknown());
817
+ export const AdminEmojiAddAliasRequest = v.looseObject({
818
+ name: v.string(),
819
+ alias_for: v.string(),
820
+ });
821
+ export const AdminEmojiAddAliasResponse = v.objectWithRest({
822
+ ok: v.lazy(() => DefsOkTrue),
823
+ }, v.unknown());
824
+ export const AdminEmojiListResponse = v.objectWithRest({
825
+ ok: v.lazy(() => DefsOkTrue),
826
+ }, v.unknown());
827
+ export const AdminEmojiRemoveRequest = v.looseObject({
828
+ name: v.string(),
829
+ });
830
+ export const AdminEmojiRemoveResponse = v.objectWithRest({
831
+ ok: v.lazy(() => DefsOkTrue),
832
+ }, v.unknown());
833
+ export const AdminEmojiRenameRequest = v.looseObject({
834
+ name: v.string(),
835
+ new_name: v.string(),
836
+ });
837
+ export const AdminEmojiRenameResponse = v.objectWithRest({
838
+ ok: v.lazy(() => DefsOkTrue),
839
+ }, v.unknown());
840
+ export const AdminInviteRequestsApproveRequest = v.looseObject({
841
+ team_id: v.optional(v.string()),
842
+ invite_request_id: v.string(),
843
+ });
844
+ export const AdminInviteRequestsApproveResponse = v.objectWithRest({
845
+ ok: v.lazy(() => DefsOkTrue),
846
+ }, v.unknown());
847
+ export const AdminInviteRequestsApprovedListResponse = v.objectWithRest({
848
+ ok: v.lazy(() => DefsOkTrue),
849
+ }, v.unknown());
850
+ export const AdminInviteRequestsDeniedListResponse = v.objectWithRest({
851
+ ok: v.lazy(() => DefsOkTrue),
852
+ }, v.unknown());
853
+ export const AdminInviteRequestsDenyRequest = v.looseObject({
854
+ team_id: v.optional(v.string()),
855
+ invite_request_id: v.string(),
856
+ });
857
+ export const AdminInviteRequestsDenyResponse = v.objectWithRest({
858
+ ok: v.lazy(() => DefsOkTrue),
859
+ }, v.unknown());
860
+ export const AdminInviteRequestsListResponse = v.objectWithRest({
861
+ ok: v.lazy(() => DefsOkTrue),
862
+ }, v.unknown());
863
+ export const AdminTeamsAdminsListResponse = v.objectWithRest({
864
+ ok: v.lazy(() => DefsOkTrue),
865
+ }, v.unknown());
866
+ export const AdminTeamsCreateRequest = v.looseObject({
867
+ team_domain: v.string(),
868
+ team_name: v.string(),
869
+ team_description: v.optional(v.string()),
870
+ team_discoverability: v.optional(v.string()),
871
+ });
872
+ export const AdminTeamsCreateResponse = v.objectWithRest({
873
+ ok: v.lazy(() => DefsOkTrue),
874
+ }, v.unknown());
875
+ export const AdminTeamsListResponse = v.objectWithRest({
876
+ ok: v.lazy(() => DefsOkTrue),
877
+ }, v.unknown());
878
+ export const AdminTeamsOwnersListResponse = v.objectWithRest({
879
+ ok: v.lazy(() => DefsOkTrue),
880
+ }, v.unknown());
881
+ export const AdminTeamsSettingsInfoResponse = v.objectWithRest({
882
+ ok: v.lazy(() => DefsOkTrue),
883
+ }, v.unknown());
884
+ export const AdminTeamsSettingsSetDefaultChannelsRequest = v.looseObject({
885
+ team_id: v.string(),
886
+ channel_ids: v.string(),
887
+ });
888
+ export const AdminTeamsSettingsSetDefaultChannelsResponse = v.objectWithRest({
889
+ ok: v.lazy(() => DefsOkTrue),
890
+ }, v.unknown());
891
+ export const AdminTeamsSettingsSetDescriptionRequest = v.looseObject({
892
+ team_id: v.string(),
893
+ description: v.string(),
894
+ });
895
+ export const AdminTeamsSettingsSetDescriptionResponse = v.objectWithRest({
896
+ ok: v.lazy(() => DefsOkTrue),
897
+ }, v.unknown());
898
+ export const AdminTeamsSettingsSetDiscoverabilityRequest = v.looseObject({
899
+ team_id: v.string(),
900
+ discoverability: v.string(),
901
+ });
902
+ export const AdminTeamsSettingsSetDiscoverabilityResponse = v.objectWithRest({
903
+ ok: v.lazy(() => DefsOkTrue),
904
+ }, v.unknown());
905
+ export const AdminTeamsSettingsSetIconRequest = v.looseObject({
906
+ image_url: v.string(),
907
+ team_id: v.string(),
908
+ });
909
+ export const AdminTeamsSettingsSetIconResponse = v.objectWithRest({
910
+ ok: v.lazy(() => DefsOkTrue),
911
+ }, v.unknown());
912
+ export const AdminTeamsSettingsSetNameRequest = v.looseObject({
913
+ team_id: v.string(),
914
+ name: v.string(),
915
+ });
916
+ export const AdminTeamsSettingsSetNameResponse = v.objectWithRest({
917
+ ok: v.lazy(() => DefsOkTrue),
918
+ }, v.unknown());
919
+ export const AdminUsergroupsAddChannelsRequest = v.looseObject({
920
+ usergroup_id: v.string(),
921
+ team_id: v.optional(v.string()),
922
+ channel_ids: v.string(),
923
+ });
924
+ export const AdminUsergroupsAddChannelsResponse = v.objectWithRest({
925
+ ok: v.lazy(() => DefsOkTrue),
926
+ }, v.unknown());
927
+ export const AdminUsergroupsAddTeamsRequest = v.looseObject({
928
+ usergroup_id: v.string(),
929
+ team_ids: v.string(),
930
+ auto_provision: v.optional(v.boolean()),
931
+ });
932
+ export const AdminUsergroupsAddTeamsResponse = v.objectWithRest({
933
+ ok: v.lazy(() => DefsOkTrue),
934
+ }, v.unknown());
935
+ export const AdminUsergroupsListChannelsResponse = v.objectWithRest({
936
+ ok: v.lazy(() => DefsOkTrue),
937
+ }, v.unknown());
938
+ export const AdminUsergroupsRemoveChannelsRequest = v.looseObject({
939
+ usergroup_id: v.string(),
940
+ channel_ids: v.string(),
941
+ });
942
+ export const AdminUsergroupsRemoveChannelsResponse = v.objectWithRest({
943
+ ok: v.lazy(() => DefsOkTrue),
944
+ }, v.unknown());
945
+ export const AdminUsersAssignRequest = v.looseObject({
946
+ team_id: v.string(),
947
+ user_id: v.string(),
948
+ is_restricted: v.optional(v.boolean()),
949
+ is_ultra_restricted: v.optional(v.boolean()),
950
+ channel_ids: v.optional(v.string()),
951
+ });
952
+ export const AdminUsersAssignResponse = v.objectWithRest({
953
+ ok: v.lazy(() => DefsOkTrue),
954
+ }, v.unknown());
955
+ export const AdminUsersInviteRequest = v.looseObject({
956
+ team_id: v.string(),
957
+ email: v.string(),
958
+ channel_ids: v.string(),
959
+ custom_message: v.optional(v.string()),
960
+ real_name: v.optional(v.string()),
961
+ resend: v.optional(v.boolean()),
962
+ is_restricted: v.optional(v.boolean()),
963
+ is_ultra_restricted: v.optional(v.boolean()),
964
+ guest_expiration_ts: v.optional(v.string()),
965
+ });
966
+ export const AdminUsersInviteResponse = v.objectWithRest({
967
+ ok: v.lazy(() => DefsOkTrue),
968
+ }, v.unknown());
969
+ export const AdminUsersListResponse = v.objectWithRest({
970
+ ok: v.lazy(() => DefsOkTrue),
971
+ }, v.unknown());
972
+ export const AdminUsersRemoveRequest = v.looseObject({
973
+ team_id: v.string(),
974
+ user_id: v.string(),
975
+ });
976
+ export const AdminUsersRemoveResponse = v.objectWithRest({
977
+ ok: v.lazy(() => DefsOkTrue),
978
+ }, v.unknown());
979
+ export const AdminUsersSessionInvalidateRequest = v.looseObject({
980
+ team_id: v.string(),
981
+ session_id: integer(),
982
+ });
983
+ export const AdminUsersSessionInvalidateResponse = v.objectWithRest({
984
+ ok: v.lazy(() => DefsOkTrue),
985
+ }, v.unknown());
986
+ export const AdminUsersSessionResetRequest = v.looseObject({
987
+ user_id: v.string(),
988
+ mobile_only: v.optional(v.boolean()),
989
+ web_only: v.optional(v.boolean()),
990
+ });
991
+ export const AdminUsersSessionResetResponse = v.objectWithRest({
992
+ ok: v.lazy(() => DefsOkTrue),
993
+ }, v.unknown());
994
+ export const AdminUsersSetAdminRequest = v.looseObject({
995
+ team_id: v.string(),
996
+ user_id: v.string(),
997
+ });
998
+ export const AdminUsersSetAdminResponse = v.objectWithRest({
999
+ ok: v.lazy(() => DefsOkTrue),
1000
+ }, v.unknown());
1001
+ export const AdminUsersSetExpirationRequest = v.looseObject({
1002
+ team_id: v.string(),
1003
+ user_id: v.string(),
1004
+ expiration_ts: integer(),
1005
+ });
1006
+ export const AdminUsersSetExpirationResponse = v.objectWithRest({
1007
+ ok: v.lazy(() => DefsOkTrue),
1008
+ }, v.unknown());
1009
+ export const AdminUsersSetOwnerRequest = v.looseObject({
1010
+ team_id: v.string(),
1011
+ user_id: v.string(),
1012
+ });
1013
+ export const AdminUsersSetOwnerResponse = v.objectWithRest({
1014
+ ok: v.lazy(() => DefsOkTrue),
1015
+ }, v.unknown());
1016
+ export const AdminUsersSetRegularRequest = v.looseObject({
1017
+ team_id: v.string(),
1018
+ user_id: v.string(),
1019
+ });
1020
+ export const AdminUsersSetRegularResponse = v.objectWithRest({
1021
+ ok: v.lazy(() => DefsOkTrue),
1022
+ }, v.unknown());
1023
+ export const ApiTestResponse = v.objectWithRest({
1024
+ ok: v.lazy(() => DefsOkTrue),
1025
+ }, v.looseObject({}));
1026
+ export const AppsEventAuthorizationsListResponse = v.objectWithRest({
1027
+ ok: v.lazy(() => DefsOkTrue),
1028
+ }, v.unknown());
1029
+ export const AppsPermissionsInfoResponse = v.objectWithRest({
1030
+ info: v.looseObject({
1031
+ app_home: v.looseObject({
1032
+ resources: v.optional(v.lazy(() => ObjsResources)),
1033
+ scopes: v.optional(v.lazy(() => ObjsScopes)),
1034
+ }),
1035
+ channel: v.looseObject({
1036
+ resources: v.optional(v.lazy(() => ObjsResources)),
1037
+ scopes: v.optional(v.lazy(() => ObjsScopes)),
1038
+ }),
1039
+ group: v.looseObject({
1040
+ resources: v.optional(v.lazy(() => ObjsResources)),
1041
+ scopes: v.optional(v.lazy(() => ObjsScopes)),
1042
+ }),
1043
+ im: v.looseObject({
1044
+ resources: v.optional(v.lazy(() => ObjsResources)),
1045
+ scopes: v.optional(v.lazy(() => ObjsScopes)),
1046
+ }),
1047
+ mpim: v.looseObject({
1048
+ resources: v.optional(v.lazy(() => ObjsResources)),
1049
+ scopes: v.optional(v.lazy(() => ObjsScopes)),
1050
+ }),
1051
+ team: v.looseObject({
1052
+ resources: v.lazy(() => ObjsResources),
1053
+ scopes: v.lazy(() => ObjsScopes),
1054
+ }),
1055
+ }),
1056
+ ok: v.lazy(() => DefsOkTrue),
1057
+ }, v.unknown());
1058
+ export const AppsPermissionsRequestResponse = v.objectWithRest({
1059
+ ok: v.lazy(() => DefsOkTrue),
1060
+ }, v.unknown());
1061
+ export const AppsPermissionsResourcesListResponse = v.objectWithRest({
1062
+ ok: v.lazy(() => DefsOkTrue),
1063
+ resources: v.array(v.looseObject({
1064
+ id: v.optional(v.string()),
1065
+ type: v.optional(v.string()),
1066
+ })),
1067
+ response_metadata: v.optional(v.objectWithRest({
1068
+ next_cursor: v.string(),
1069
+ }, v.unknown())),
1070
+ }, v.unknown());
1071
+ export const AppsPermissionsScopesListResponse = v.objectWithRest({
1072
+ ok: v.lazy(() => DefsOkTrue),
1073
+ scopes: v.objectWithRest({
1074
+ app_home: v.optional(v.lazy(() => ObjsScopes)),
1075
+ channel: v.optional(v.lazy(() => ObjsScopes)),
1076
+ group: v.optional(v.lazy(() => ObjsScopes)),
1077
+ im: v.optional(v.lazy(() => ObjsScopes)),
1078
+ mpim: v.optional(v.lazy(() => ObjsScopes)),
1079
+ team: v.optional(v.lazy(() => ObjsScopes)),
1080
+ user: v.optional(v.lazy(() => ObjsScopes)),
1081
+ }, v.unknown()),
1082
+ }, v.unknown());
1083
+ export const AppsPermissionsUsersListResponse = v.objectWithRest({
1084
+ ok: v.lazy(() => DefsOkTrue),
1085
+ }, v.unknown());
1086
+ export const AppsPermissionsUsersRequestResponse = v.objectWithRest({
1087
+ ok: v.lazy(() => DefsOkTrue),
1088
+ }, v.unknown());
1089
+ export const AppsUninstallResponse = v.objectWithRest({
1090
+ ok: v.lazy(() => DefsOkTrue),
1091
+ }, v.unknown());
1092
+ export const AuthRevokeResponse = v.objectWithRest({
1093
+ ok: v.lazy(() => DefsOkTrue),
1094
+ revoked: v.boolean(),
1095
+ }, v.unknown());
1096
+ export const AuthTestResponse = v.objectWithRest({
1097
+ bot_id: v.optional(v.lazy(() => DefsBotId)),
1098
+ is_enterprise_install: v.optional(v.boolean()),
1099
+ ok: v.lazy(() => DefsOkTrue),
1100
+ team: v.string(),
1101
+ team_id: v.lazy(() => DefsTeam),
1102
+ url: v.string(),
1103
+ user: v.string(),
1104
+ user_id: v.lazy(() => DefsUserId),
1105
+ }, v.unknown());
1106
+ export const BotsInfoResponse = v.objectWithRest({
1107
+ bot: v.objectWithRest({
1108
+ app_id: v.lazy(() => DefsAppId),
1109
+ deleted: v.boolean(),
1110
+ icons: v.objectWithRest({
1111
+ image_36: v.string(),
1112
+ image_48: v.string(),
1113
+ image_72: v.string(),
1114
+ }, v.unknown()),
1115
+ id: v.lazy(() => DefsBotId),
1116
+ name: v.string(),
1117
+ updated: integer(),
1118
+ user_id: v.optional(v.lazy(() => DefsUserId)),
1119
+ }, v.unknown()),
1120
+ ok: v.lazy(() => DefsOkTrue),
1121
+ }, v.unknown());
1122
+ export const CallsAddRequest = v.looseObject({
1123
+ external_unique_id: v.string(),
1124
+ external_display_id: v.optional(v.string()),
1125
+ join_url: v.string(),
1126
+ desktop_app_join_url: v.optional(v.string()),
1127
+ date_start: v.optional(integer()),
1128
+ title: v.optional(v.string()),
1129
+ created_by: v.optional(v.string()),
1130
+ users: v.optional(v.string()),
1131
+ });
1132
+ export const CallsAddResponse = v.objectWithRest({
1133
+ ok: v.lazy(() => DefsOkTrue),
1134
+ }, v.unknown());
1135
+ export const CallsEndRequest = v.looseObject({
1136
+ id: v.string(),
1137
+ duration: v.optional(integer()),
1138
+ });
1139
+ export const CallsEndResponse = v.objectWithRest({
1140
+ ok: v.lazy(() => DefsOkTrue),
1141
+ }, v.unknown());
1142
+ export const CallsInfoResponse = v.objectWithRest({
1143
+ ok: v.lazy(() => DefsOkTrue),
1144
+ }, v.unknown());
1145
+ export const CallsParticipantsAddRequest = v.looseObject({
1146
+ id: v.string(),
1147
+ users: v.string(),
1148
+ });
1149
+ export const CallsParticipantsAddResponse = v.objectWithRest({
1150
+ ok: v.lazy(() => DefsOkTrue),
1151
+ }, v.unknown());
1152
+ export const CallsParticipantsRemoveRequest = v.looseObject({
1153
+ id: v.string(),
1154
+ users: v.string(),
1155
+ });
1156
+ export const CallsParticipantsRemoveResponse = v.objectWithRest({
1157
+ ok: v.lazy(() => DefsOkTrue),
1158
+ }, v.unknown());
1159
+ export const CallsUpdateRequest = v.looseObject({
1160
+ id: v.string(),
1161
+ title: v.optional(v.string()),
1162
+ join_url: v.optional(v.string()),
1163
+ desktop_app_join_url: v.optional(v.string()),
1164
+ });
1165
+ export const CallsUpdateResponse = v.objectWithRest({
1166
+ ok: v.lazy(() => DefsOkTrue),
1167
+ }, v.unknown());
1168
+ export const ChatDeleteRequest = v.looseObject({
1169
+ ts: v.optional(v.string()),
1170
+ channel: v.optional(v.string()),
1171
+ as_user: v.optional(v.boolean()),
1172
+ });
1173
+ export const ChatDeleteResponse = v.objectWithRest({
1174
+ channel: v.lazy(() => DefsChannel),
1175
+ ok: v.lazy(() => DefsOkTrue),
1176
+ ts: v.lazy(() => DefsTs),
1177
+ }, v.unknown());
1178
+ export const ChatDeleteScheduledMessageRequest = v.looseObject({
1179
+ as_user: v.optional(v.boolean()),
1180
+ channel: v.string(),
1181
+ scheduled_message_id: v.string(),
1182
+ });
1183
+ export const ChatDeleteScheduledMessageResponse = v.objectWithRest({
1184
+ ok: v.lazy(() => DefsOkTrue),
1185
+ }, v.unknown());
1186
+ export const ChatGetPermalinkResponse = v.objectWithRest({
1187
+ channel: v.lazy(() => DefsChannel),
1188
+ ok: v.lazy(() => DefsOkTrue),
1189
+ permalink: v.string(),
1190
+ }, v.unknown());
1191
+ export const ChatMeMessageRequest = v.looseObject({
1192
+ channel: v.optional(v.string()),
1193
+ text: v.optional(v.string()),
1194
+ });
1195
+ export const ChatMeMessageResponse = v.objectWithRest({
1196
+ channel: v.optional(v.lazy(() => DefsChannel)),
1197
+ ok: v.lazy(() => DefsOkTrue),
1198
+ ts: v.optional(v.lazy(() => DefsTs)),
1199
+ }, v.unknown());
1200
+ export const ChatPostEphemeralRequest = v.looseObject({
1201
+ as_user: v.optional(v.boolean()),
1202
+ attachments: v.optional(v.string()),
1203
+ blocks: v.optional(v.string()),
1204
+ channel: v.string(),
1205
+ icon_emoji: v.optional(v.string()),
1206
+ icon_url: v.optional(v.string()),
1207
+ link_names: v.optional(v.boolean()),
1208
+ parse: v.optional(v.string()),
1209
+ text: v.optional(v.string()),
1210
+ thread_ts: v.optional(v.string()),
1211
+ user: v.string(),
1212
+ username: v.optional(v.string()),
1213
+ });
1214
+ export const ChatPostEphemeralResponse = v.objectWithRest({
1215
+ message_ts: v.lazy(() => DefsTs),
1216
+ ok: v.lazy(() => DefsOkTrue),
1217
+ }, v.unknown());
1218
+ export const ChatPostMessageRequest = v.looseObject({
1219
+ as_user: v.optional(v.string()),
1220
+ attachments: v.optional(v.string()),
1221
+ blocks: v.optional(v.string()),
1222
+ channel: v.string(),
1223
+ icon_emoji: v.optional(v.string()),
1224
+ icon_url: v.optional(v.string()),
1225
+ link_names: v.optional(v.boolean()),
1226
+ mrkdwn: v.optional(v.boolean()),
1227
+ parse: v.optional(v.string()),
1228
+ reply_broadcast: v.optional(v.boolean()),
1229
+ text: v.optional(v.string()),
1230
+ thread_ts: v.optional(v.string()),
1231
+ unfurl_links: v.optional(v.boolean()),
1232
+ unfurl_media: v.optional(v.boolean()),
1233
+ username: v.optional(v.string()),
1234
+ });
1235
+ export const ChatPostMessageResponse = v.objectWithRest({
1236
+ channel: v.lazy(() => DefsChannel),
1237
+ message: v.lazy(() => ObjsMessage),
1238
+ ok: v.lazy(() => DefsOkTrue),
1239
+ ts: v.lazy(() => DefsTs),
1240
+ }, v.unknown());
1241
+ export const ChatScheduleMessageRequest = v.looseObject({
1242
+ channel: v.optional(v.string()),
1243
+ text: v.optional(v.string()),
1244
+ post_at: v.optional(v.string()),
1245
+ parse: v.optional(v.string()),
1246
+ as_user: v.optional(v.boolean()),
1247
+ link_names: v.optional(v.boolean()),
1248
+ attachments: v.optional(v.string()),
1249
+ blocks: v.optional(v.string()),
1250
+ unfurl_links: v.optional(v.boolean()),
1251
+ unfurl_media: v.optional(v.boolean()),
1252
+ thread_ts: v.optional(v.string()),
1253
+ reply_broadcast: v.optional(v.boolean()),
1254
+ });
1255
+ export const ChatScheduleMessageResponse = v.objectWithRest({
1256
+ channel: v.lazy(() => DefsChannel),
1257
+ message: v.objectWithRest({
1258
+ bot_id: v.lazy(() => DefsBotId),
1259
+ bot_profile: v.optional(v.lazy(() => ObjsBotProfile)),
1260
+ team: v.lazy(() => DefsTeam),
1261
+ text: v.string(),
1262
+ type: v.string(),
1263
+ user: v.lazy(() => DefsUserId),
1264
+ username: v.optional(v.string()),
1265
+ }, v.unknown()),
1266
+ ok: v.lazy(() => DefsOkTrue),
1267
+ post_at: integer(),
1268
+ scheduled_message_id: v.pipe(v.string(), v.regex(/^[Q][A-Z0-9]{8,}$/)),
1269
+ }, v.unknown());
1270
+ export const ChatScheduledMessagesListResponse = v.objectWithRest({
1271
+ ok: v.lazy(() => DefsOkTrue),
1272
+ response_metadata: v.objectWithRest({
1273
+ next_cursor: v.string(),
1274
+ }, v.unknown()),
1275
+ scheduled_messages: v.array(v.objectWithRest({
1276
+ channel_id: v.lazy(() => DefsChannelId),
1277
+ date_created: integer(),
1278
+ id: v.pipe(v.string(), v.regex(/^[Q][A-Z0-9]{8,}$/)),
1279
+ post_at: integer(),
1280
+ text: v.optional(v.string()),
1281
+ }, v.unknown())),
1282
+ }, v.unknown());
1283
+ export const ChatUnfurlRequest = v.looseObject({
1284
+ channel: v.string(),
1285
+ ts: v.string(),
1286
+ unfurls: v.optional(v.string()),
1287
+ user_auth_message: v.optional(v.string()),
1288
+ user_auth_required: v.optional(v.boolean()),
1289
+ user_auth_url: v.optional(v.string()),
1290
+ });
1291
+ export const ChatUnfurlResponse = v.objectWithRest({
1292
+ ok: v.lazy(() => DefsOkTrue),
1293
+ }, v.unknown());
1294
+ export const ChatUpdateRequest = v.looseObject({
1295
+ as_user: v.optional(v.string()),
1296
+ attachments: v.optional(v.string()),
1297
+ blocks: v.optional(v.string()),
1298
+ channel: v.string(),
1299
+ link_names: v.optional(v.string()),
1300
+ parse: v.optional(v.string()),
1301
+ text: v.optional(v.string()),
1302
+ ts: v.string(),
1303
+ });
1304
+ export const ChatUpdateResponse = v.objectWithRest({
1305
+ channel: v.string(),
1306
+ message: v.looseObject({
1307
+ attachments: v.optional(v.array(v.looseObject({}))),
1308
+ blocks: v.optional(v.looseObject({})),
1309
+ text: v.string(),
1310
+ }),
1311
+ ok: v.lazy(() => DefsOkTrue),
1312
+ text: v.string(),
1313
+ ts: v.string(),
1314
+ }, v.unknown());
1315
+ export const ConversationsArchiveRequest = v.looseObject({
1316
+ channel: v.optional(v.string()),
1317
+ });
1318
+ export const ConversationsArchiveResponse = v.objectWithRest({
1319
+ ok: v.lazy(() => DefsOkTrue),
1320
+ }, v.unknown());
1321
+ export const ConversationsCloseRequest = v.looseObject({
1322
+ channel: v.optional(v.string()),
1323
+ });
1324
+ export const ConversationsCloseResponse = v.objectWithRest({
1325
+ already_closed: v.optional(v.boolean()),
1326
+ no_op: v.optional(v.boolean()),
1327
+ ok: v.lazy(() => DefsOkTrue),
1328
+ }, v.unknown());
1329
+ export const ConversationsCreateRequest = v.looseObject({
1330
+ name: v.optional(v.string()),
1331
+ is_private: v.optional(v.boolean()),
1332
+ });
1333
+ export const ConversationsCreateResponse = v.objectWithRest({
1334
+ channel: v.lazy(() => ObjsConversation),
1335
+ ok: v.lazy(() => DefsOkTrue),
1336
+ }, v.unknown());
1337
+ export const ConversationsHistoryResponse = v.objectWithRest({
1338
+ channel_actions_count: integer(),
1339
+ channel_actions_ts: v.nullable(integer()),
1340
+ has_more: v.boolean(),
1341
+ messages: v.pipe(v.array(v.lazy(() => ObjsMessage)), v.minLength(0), v.check((items) => unique(items), "items must be unique")),
1342
+ ok: v.lazy(() => DefsOkTrue),
1343
+ pin_count: integer(),
1344
+ response_metadata: v.optional(v.looseObject({
1345
+ next_cursor: v.optional(v.string()),
1346
+ })),
1347
+ }, v.unknown());
1348
+ export const ConversationsInfoResponse = v.objectWithRest({
1349
+ channel: v.lazy(() => ObjsConversation),
1350
+ ok: v.lazy(() => DefsOkTrue),
1351
+ }, v.unknown());
1352
+ export const ConversationsInviteRequest = v.looseObject({
1353
+ channel: v.optional(v.string()),
1354
+ users: v.optional(v.string()),
1355
+ });
1356
+ export const ConversationsInviteResponse = v.objectWithRest({
1357
+ channel: v.lazy(() => ObjsConversation),
1358
+ ok: v.lazy(() => DefsOkTrue),
1359
+ }, v.unknown());
1360
+ export const ConversationsJoinRequest = v.looseObject({
1361
+ channel: v.optional(v.string()),
1362
+ });
1363
+ export const ConversationsJoinResponse = v.objectWithRest({
1364
+ channel: v.lazy(() => ObjsConversation),
1365
+ ok: v.lazy(() => DefsOkTrue),
1366
+ response_metadata: v.optional(v.looseObject({
1367
+ warnings: v.optional(v.pipe(v.array(v.string()), v.minLength(0), v.check((items) => unique(items), "items must be unique"))),
1368
+ })),
1369
+ warning: v.optional(v.string()),
1370
+ }, v.unknown());
1371
+ export const ConversationsKickRequest = v.looseObject({
1372
+ channel: v.optional(v.string()),
1373
+ user: v.optional(v.string()),
1374
+ });
1375
+ export const ConversationsKickResponse = v.objectWithRest({
1376
+ ok: v.lazy(() => DefsOkTrue),
1377
+ }, v.unknown());
1378
+ export const ConversationsLeaveRequest = v.looseObject({
1379
+ channel: v.optional(v.string()),
1380
+ });
1381
+ export const ConversationsLeaveResponse = v.objectWithRest({
1382
+ not_in_channel: v.optional(v.literal(true)),
1383
+ ok: v.lazy(() => DefsOkTrue),
1384
+ }, v.unknown());
1385
+ export const ConversationsListResponse = v.objectWithRest({
1386
+ channels: v.pipe(v.array(v.lazy(() => ObjsConversation)), v.check((items) => unique(items), "items must be unique")),
1387
+ ok: v.lazy(() => DefsOkTrue),
1388
+ response_metadata: v.optional(v.objectWithRest({
1389
+ next_cursor: v.string(),
1390
+ }, v.unknown())),
1391
+ }, v.unknown());
1392
+ export const ConversationsMarkRequest = v.looseObject({
1393
+ channel: v.optional(v.string()),
1394
+ ts: v.optional(v.string()),
1395
+ });
1396
+ export const ConversationsMarkResponse = v.objectWithRest({
1397
+ ok: v.lazy(() => DefsOkTrue),
1398
+ }, v.unknown());
1399
+ export const ConversationsMembersResponse = v.objectWithRest({
1400
+ members: v.pipe(v.array(v.lazy(() => DefsUserId)), v.minLength(0), v.check((items) => unique(items), "items must be unique")),
1401
+ ok: v.lazy(() => DefsOkTrue),
1402
+ response_metadata: v.objectWithRest({
1403
+ next_cursor: v.string(),
1404
+ }, v.unknown()),
1405
+ }, v.unknown());
1406
+ export const ConversationsOpenRequest = v.looseObject({
1407
+ channel: v.optional(v.string()),
1408
+ users: v.optional(v.string()),
1409
+ return_im: v.optional(v.boolean()),
1410
+ });
1411
+ export const ConversationsOpenResponse = v.objectWithRest({
1412
+ already_open: v.optional(v.boolean()),
1413
+ channel: v.union([
1414
+ v.lazy(() => ObjsConversation),
1415
+ v.objectWithRest({
1416
+ created: v.optional(v.string()),
1417
+ id: v.lazy(() => DefsDmId),
1418
+ is_im: v.optional(v.boolean()),
1419
+ is_open: v.optional(v.boolean()),
1420
+ last_read: v.optional(v.lazy(() => DefsTs)),
1421
+ latest: v.optional(v.lazy(() => ObjsMessage)),
1422
+ unread_count: v.optional(number()),
1423
+ unread_count_display: v.optional(number()),
1424
+ user: v.optional(v.lazy(() => DefsUserId)),
1425
+ }, v.unknown()),
1426
+ ]),
1427
+ no_op: v.optional(v.boolean()),
1428
+ ok: v.lazy(() => DefsOkTrue),
1429
+ }, v.unknown());
1430
+ export const ConversationsRenameRequest = v.looseObject({
1431
+ channel: v.optional(v.string()),
1432
+ name: v.optional(v.string()),
1433
+ });
1434
+ export const ConversationsRenameResponse = v.objectWithRest({
1435
+ channel: v.lazy(() => ObjsConversation),
1436
+ ok: v.lazy(() => DefsOkTrue),
1437
+ }, v.unknown());
1438
+ export const ConversationsRepliesResponse = v.objectWithRest({
1439
+ has_more: v.optional(v.boolean()),
1440
+ messages: v.array(v.union([
1441
+ v.objectWithRest({
1442
+ last_read: v.optional(v.lazy(() => DefsTs)),
1443
+ latest_reply: v.optional(v.lazy(() => DefsTs)),
1444
+ reply_count: integer(),
1445
+ reply_users: v.optional(v.pipe(v.array(v.lazy(() => DefsUserId)), v.check((items) => unique(items), "items must be unique"))),
1446
+ reply_users_count: v.optional(integer()),
1447
+ source_team: v.optional(v.lazy(() => DefsTeam)),
1448
+ subscribed: v.boolean(),
1449
+ team: v.optional(v.lazy(() => DefsTeam)),
1450
+ text: v.string(),
1451
+ thread_ts: v.lazy(() => DefsTs),
1452
+ ts: v.lazy(() => DefsTs),
1453
+ type: v.string(),
1454
+ unread_count: v.optional(integer()),
1455
+ user: v.lazy(() => DefsUserId),
1456
+ user_profile: v.optional(v.lazy(() => ObjsUserProfileShort)),
1457
+ user_team: v.optional(v.lazy(() => DefsTeam)),
1458
+ }, v.unknown()),
1459
+ v.objectWithRest({
1460
+ is_starred: v.optional(v.boolean()),
1461
+ parent_user_id: v.lazy(() => DefsUserId),
1462
+ source_team: v.optional(v.lazy(() => DefsTeam)),
1463
+ team: v.optional(v.lazy(() => DefsTeam)),
1464
+ text: v.string(),
1465
+ thread_ts: v.lazy(() => DefsTs),
1466
+ ts: v.lazy(() => DefsTs),
1467
+ type: v.string(),
1468
+ user: v.lazy(() => DefsUserId),
1469
+ user_profile: v.optional(v.lazy(() => ObjsUserProfileShort)),
1470
+ user_team: v.optional(v.lazy(() => DefsTeam)),
1471
+ }, v.unknown()),
1472
+ ])),
1473
+ ok: v.lazy(() => DefsOkTrue),
1474
+ response_metadata: v.optional(v.looseObject({
1475
+ next_cursor: v.optional(v.string()),
1476
+ })),
1477
+ }, v.unknown());
1478
+ export const ConversationsSetPurposeRequest = v.looseObject({
1479
+ channel: v.optional(v.string()),
1480
+ purpose: v.optional(v.string()),
1481
+ });
1482
+ export const ConversationsSetPurposeResponse = v.objectWithRest({
1483
+ channel: v.lazy(() => ObjsConversation),
1484
+ ok: v.lazy(() => DefsOkTrue),
1485
+ }, v.unknown());
1486
+ export const ConversationsSetTopicRequest = v.looseObject({
1487
+ channel: v.optional(v.string()),
1488
+ topic: v.optional(v.string()),
1489
+ });
1490
+ export const ConversationsSetTopicResponse = v.objectWithRest({
1491
+ channel: v.lazy(() => ObjsConversation),
1492
+ ok: v.lazy(() => DefsOkTrue),
1493
+ }, v.unknown());
1494
+ export const ConversationsUnarchiveRequest = v.looseObject({
1495
+ channel: v.optional(v.string()),
1496
+ });
1497
+ export const ConversationsUnarchiveResponse = v.objectWithRest({
1498
+ ok: v.lazy(() => DefsOkTrue),
1499
+ }, v.unknown());
1500
+ export const DialogOpenResponse = v.objectWithRest({
1501
+ ok: v.lazy(() => DefsOkTrue),
1502
+ }, v.unknown());
1503
+ export const DndEndDndResponse = v.objectWithRest({
1504
+ ok: v.lazy(() => DefsOkTrue),
1505
+ }, v.unknown());
1506
+ export const DndEndSnoozeResponse = v.objectWithRest({
1507
+ dnd_enabled: v.boolean(),
1508
+ next_dnd_end_ts: integer(),
1509
+ next_dnd_start_ts: integer(),
1510
+ ok: v.lazy(() => DefsOkTrue),
1511
+ snooze_enabled: v.boolean(),
1512
+ }, v.unknown());
1513
+ export const DndInfoResponse = v.objectWithRest({
1514
+ dnd_enabled: v.boolean(),
1515
+ next_dnd_end_ts: integer(),
1516
+ next_dnd_start_ts: integer(),
1517
+ ok: v.lazy(() => DefsOkTrue),
1518
+ snooze_enabled: v.optional(v.boolean()),
1519
+ snooze_endtime: v.optional(integer()),
1520
+ snooze_remaining: v.optional(integer()),
1521
+ }, v.unknown());
1522
+ export const DndSetSnoozeRequest = v.looseObject({
1523
+ num_minutes: v.string(),
1524
+ });
1525
+ export const DndSetSnoozeResponse = v.objectWithRest({
1526
+ ok: v.lazy(() => DefsOkTrue),
1527
+ snooze_enabled: v.boolean(),
1528
+ snooze_endtime: integer(),
1529
+ snooze_remaining: integer(),
1530
+ }, v.unknown());
1531
+ export const DndTeamInfoResponse = v.objectWithRest({
1532
+ ok: v.lazy(() => DefsOkTrue),
1533
+ }, v.unknown());
1534
+ export const EmojiListResponse = v.objectWithRest({
1535
+ ok: v.lazy(() => DefsOkTrue),
1536
+ }, v.unknown());
1537
+ export const FilesCommentsDeleteRequest = v.looseObject({
1538
+ file: v.optional(v.string()),
1539
+ id: v.optional(v.string()),
1540
+ });
1541
+ export const FilesCommentsDeleteResponse = v.objectWithRest({
1542
+ ok: v.lazy(() => DefsOkTrue),
1543
+ }, v.unknown());
1544
+ export const FilesDeleteRequest = v.looseObject({
1545
+ file: v.optional(v.string()),
1546
+ });
1547
+ export const FilesDeleteResponse = v.objectWithRest({
1548
+ ok: v.lazy(() => DefsOkTrue),
1549
+ }, v.unknown());
1550
+ export const FilesInfoResponse = v.objectWithRest({
1551
+ comments: v.lazy(() => ObjsComments),
1552
+ content_html: v.optional(v.unknown()),
1553
+ editor: v.optional(v.lazy(() => DefsUserId)),
1554
+ file: v.lazy(() => ObjsFile),
1555
+ ok: v.lazy(() => DefsOkTrue),
1556
+ paging: v.optional(v.lazy(() => ObjsPaging)),
1557
+ response_metadata: v.optional(v.lazy(() => ObjsResponseMetadata)),
1558
+ }, v.unknown());
1559
+ export const FilesListResponse = v.objectWithRest({
1560
+ files: v.pipe(v.array(v.lazy(() => ObjsFile)), v.minLength(0), v.check((items) => unique(items), "items must be unique")),
1561
+ ok: v.lazy(() => DefsOkTrue),
1562
+ paging: v.lazy(() => ObjsPaging),
1563
+ }, v.unknown());
1564
+ export const FilesRemoteAddRequest = v.looseObject({
1565
+ external_id: v.optional(v.string()),
1566
+ title: v.optional(v.string()),
1567
+ filetype: v.optional(v.string()),
1568
+ external_url: v.optional(v.string()),
1569
+ preview_image: v.optional(v.string()),
1570
+ indexable_file_contents: v.optional(v.string()),
1571
+ });
1572
+ export const FilesRemoteAddResponse = v.objectWithRest({
1573
+ ok: v.lazy(() => DefsOkTrue),
1574
+ }, v.unknown());
1575
+ export const FilesRemoteInfoResponse = v.objectWithRest({
1576
+ ok: v.lazy(() => DefsOkTrue),
1577
+ }, v.unknown());
1578
+ export const FilesRemoteListResponse = v.objectWithRest({
1579
+ ok: v.lazy(() => DefsOkTrue),
1580
+ }, v.unknown());
1581
+ export const FilesRemoteRemoveRequest = v.looseObject({
1582
+ file: v.optional(v.string()),
1583
+ external_id: v.optional(v.string()),
1584
+ });
1585
+ export const FilesRemoteRemoveResponse = v.objectWithRest({
1586
+ ok: v.lazy(() => DefsOkTrue),
1587
+ }, v.unknown());
1588
+ export const FilesRemoteShareResponse = v.objectWithRest({
1589
+ ok: v.lazy(() => DefsOkTrue),
1590
+ }, v.unknown());
1591
+ export const FilesRemoteUpdateRequest = v.looseObject({
1592
+ file: v.optional(v.string()),
1593
+ external_id: v.optional(v.string()),
1594
+ title: v.optional(v.string()),
1595
+ filetype: v.optional(v.string()),
1596
+ external_url: v.optional(v.string()),
1597
+ preview_image: v.optional(v.string()),
1598
+ indexable_file_contents: v.optional(v.string()),
1599
+ });
1600
+ export const FilesRemoteUpdateResponse = v.objectWithRest({
1601
+ ok: v.lazy(() => DefsOkTrue),
1602
+ }, v.unknown());
1603
+ export const FilesRevokePublicURLRequest = v.looseObject({
1604
+ file: v.optional(v.string()),
1605
+ });
1606
+ export const FilesRevokePublicURLResponse = v.objectWithRest({
1607
+ file: v.lazy(() => ObjsFile),
1608
+ ok: v.lazy(() => DefsOkTrue),
1609
+ }, v.unknown());
1610
+ export const FilesSharedPublicURLRequest = v.looseObject({
1611
+ file: v.optional(v.string()),
1612
+ });
1613
+ export const FilesSharedPublicURLResponse = v.objectWithRest({
1614
+ file: v.lazy(() => ObjsFile),
1615
+ ok: v.lazy(() => DefsOkTrue),
1616
+ }, v.unknown());
1617
+ export const FilesUploadRequest = v.looseObject({
1618
+ file: v.optional(v.string()),
1619
+ content: v.optional(v.string()),
1620
+ filetype: v.optional(v.string()),
1621
+ filename: v.optional(v.string()),
1622
+ title: v.optional(v.string()),
1623
+ initial_comment: v.optional(v.string()),
1624
+ channels: v.optional(v.string()),
1625
+ thread_ts: v.optional(v.string()),
1626
+ });
1627
+ export const FilesUploadResponse = v.objectWithRest({
1628
+ file: v.lazy(() => ObjsFile),
1629
+ ok: v.lazy(() => DefsOkTrue),
1630
+ }, v.unknown());
1631
+ export const MigrationExchangeResponse = v.objectWithRest({
1632
+ enterprise_id: v.string(),
1633
+ invalid_user_ids: v.optional(v.array(v.string())),
1634
+ ok: v.lazy(() => DefsOkTrue),
1635
+ team_id: v.lazy(() => DefsTeam),
1636
+ user_id_map: v.optional(v.record(v.string(), v.unknown())),
1637
+ }, v.unknown());
1638
+ export const OauthAccessResponse = v.objectWithRest({
1639
+ ok: v.lazy(() => DefsOkTrue),
1640
+ access_token: v.optional(v.string()),
1641
+ }, v.unknown());
1642
+ export const OauthTokenResponse = v.objectWithRest({
1643
+ ok: v.lazy(() => DefsOkTrue),
1644
+ access_token: v.optional(v.string()),
1645
+ }, v.unknown());
1646
+ export const OauthV2AccessResponse = v.objectWithRest({
1647
+ ok: v.lazy(() => DefsOkTrue),
1648
+ access_token: v.optional(v.string()),
1649
+ }, v.unknown());
1650
+ export const PinsAddRequest = v.looseObject({
1651
+ channel: v.string(),
1652
+ timestamp: v.optional(v.string()),
1653
+ });
1654
+ export const PinsAddResponse = v.objectWithRest({
1655
+ ok: v.lazy(() => DefsOkTrue),
1656
+ }, v.unknown());
1657
+ export const PinsListResponse = v.union([
1658
+ v.objectWithRest({
1659
+ items: v.pipe(v.array(v.union([
1660
+ v.objectWithRest({
1661
+ created: v.optional(integer()),
1662
+ created_by: v.optional(v.lazy(() => DefsUserId)),
1663
+ file: v.optional(v.lazy(() => ObjsFile)),
1664
+ type: v.optional(v.picklist(["file"])),
1665
+ }, v.unknown()),
1666
+ v.objectWithRest({
1667
+ channel: v.optional(v.lazy(() => DefsChannel)),
1668
+ created: v.optional(integer()),
1669
+ created_by: v.optional(v.lazy(() => DefsUserId)),
1670
+ message: v.optional(v.lazy(() => ObjsMessage)),
1671
+ type: v.optional(v.picklist(["message"])),
1672
+ }, v.unknown()),
1673
+ ])), v.check((items) => unique(items), "items must be unique")),
1674
+ ok: v.lazy(() => DefsOkTrue),
1675
+ }, v.unknown()),
1676
+ v.objectWithRest({
1677
+ count: integer(),
1678
+ ok: v.lazy(() => DefsOkTrue),
1679
+ }, v.unknown()),
1680
+ ]);
1681
+ export const PinsRemoveRequest = v.looseObject({
1682
+ channel: v.string(),
1683
+ timestamp: v.optional(v.string()),
1684
+ });
1685
+ export const PinsRemoveResponse = v.objectWithRest({
1686
+ ok: v.lazy(() => DefsOkTrue),
1687
+ }, v.unknown());
1688
+ export const ReactionsAddRequest = v.looseObject({
1689
+ channel: v.string(),
1690
+ name: v.string(),
1691
+ timestamp: v.string(),
1692
+ });
1693
+ export const ReactionsAddResponse = v.objectWithRest({
1694
+ ok: v.lazy(() => DefsOkTrue),
1695
+ }, v.unknown());
1696
+ export const ReactionsGetResponse = v.union([
1697
+ v.objectWithRest({
1698
+ channel: v.lazy(() => DefsChannel),
1699
+ message: v.lazy(() => ObjsMessage),
1700
+ ok: v.lazy(() => DefsOkTrue),
1701
+ type: v.picklist(["message"]),
1702
+ }, v.unknown()),
1703
+ v.objectWithRest({
1704
+ file: v.lazy(() => ObjsFile),
1705
+ ok: v.lazy(() => DefsOkTrue),
1706
+ type: v.picklist(["file"]),
1707
+ }, v.unknown()),
1708
+ v.objectWithRest({
1709
+ comment: v.lazy(() => ObjsComment),
1710
+ file: v.lazy(() => ObjsFile),
1711
+ ok: v.lazy(() => DefsOkTrue),
1712
+ type: v.picklist(["file_comment"]),
1713
+ }, v.unknown()),
1714
+ ]);
1715
+ export const ReactionsListResponse = v.objectWithRest({
1716
+ items: v.array(v.union([
1717
+ v.objectWithRest({
1718
+ channel: v.lazy(() => DefsChannel),
1719
+ message: v.lazy(() => ObjsMessage),
1720
+ type: v.picklist(["message"]),
1721
+ }, v.unknown()),
1722
+ v.objectWithRest({
1723
+ file: v.lazy(() => ObjsFile),
1724
+ type: v.picklist(["file"]),
1725
+ }, v.unknown()),
1726
+ v.objectWithRest({
1727
+ comment: v.lazy(() => ObjsComment),
1728
+ file: v.lazy(() => ObjsFile),
1729
+ type: v.picklist(["file_comment"]),
1730
+ }, v.unknown()),
1731
+ ])),
1732
+ ok: v.lazy(() => DefsOkTrue),
1733
+ paging: v.optional(v.lazy(() => ObjsPaging)),
1734
+ response_metadata: v.optional(v.lazy(() => ObjsResponseMetadata)),
1735
+ }, v.unknown());
1736
+ export const ReactionsRemoveRequest = v.looseObject({
1737
+ name: v.string(),
1738
+ file: v.optional(v.string()),
1739
+ file_comment: v.optional(v.string()),
1740
+ channel: v.optional(v.string()),
1741
+ timestamp: v.optional(v.string()),
1742
+ });
1743
+ export const ReactionsRemoveResponse = v.objectWithRest({
1744
+ ok: v.lazy(() => DefsOkTrue),
1745
+ }, v.unknown());
1746
+ export const RemindersAddRequest = v.looseObject({
1747
+ text: v.string(),
1748
+ time: v.string(),
1749
+ user: v.optional(v.string()),
1750
+ });
1751
+ export const RemindersAddResponse = v.objectWithRest({
1752
+ ok: v.lazy(() => DefsOkTrue),
1753
+ reminder: v.lazy(() => ObjsReminder),
1754
+ }, v.unknown());
1755
+ export const RemindersCompleteRequest = v.looseObject({
1756
+ reminder: v.optional(v.string()),
1757
+ });
1758
+ export const RemindersCompleteResponse = v.objectWithRest({
1759
+ ok: v.lazy(() => DefsOkTrue),
1760
+ }, v.unknown());
1761
+ export const RemindersDeleteRequest = v.looseObject({
1762
+ reminder: v.optional(v.string()),
1763
+ });
1764
+ export const RemindersDeleteResponse = v.objectWithRest({
1765
+ ok: v.lazy(() => DefsOkTrue),
1766
+ }, v.unknown());
1767
+ export const RemindersInfoResponse = v.objectWithRest({
1768
+ ok: v.lazy(() => DefsOkTrue),
1769
+ reminder: v.lazy(() => ObjsReminder),
1770
+ }, v.unknown());
1771
+ export const RemindersListResponse = v.objectWithRest({
1772
+ ok: v.lazy(() => DefsOkTrue),
1773
+ reminders: v.array(v.lazy(() => ObjsReminder)),
1774
+ }, v.unknown());
1775
+ export const RtmConnectResponse = v.objectWithRest({
1776
+ ok: v.lazy(() => DefsOkTrue),
1777
+ self: v.objectWithRest({
1778
+ id: v.lazy(() => DefsUserId),
1779
+ name: v.string(),
1780
+ }, v.unknown()),
1781
+ team: v.objectWithRest({
1782
+ domain: v.string(),
1783
+ id: v.lazy(() => DefsTeam),
1784
+ name: v.string(),
1785
+ }, v.unknown()),
1786
+ url: v.string(),
1787
+ }, v.unknown());
1788
+ export const SearchMessagesResponse = v.objectWithRest({
1789
+ ok: v.lazy(() => DefsOkTrue),
1790
+ }, v.unknown());
1791
+ export const StarsAddRequest = v.looseObject({
1792
+ channel: v.optional(v.string()),
1793
+ file: v.optional(v.string()),
1794
+ file_comment: v.optional(v.string()),
1795
+ timestamp: v.optional(v.string()),
1796
+ });
1797
+ export const StarsAddResponse = v.objectWithRest({
1798
+ ok: v.lazy(() => DefsOkTrue),
1799
+ }, v.unknown());
1800
+ export const StarsListResponse = v.objectWithRest({
1801
+ items: v.array(v.union([
1802
+ v.objectWithRest({
1803
+ channel: v.lazy(() => DefsChannel),
1804
+ date_create: integer(),
1805
+ message: v.lazy(() => ObjsMessage),
1806
+ type: v.picklist(["message"]),
1807
+ }, v.unknown()),
1808
+ v.objectWithRest({
1809
+ date_create: integer(),
1810
+ file: v.lazy(() => ObjsFile),
1811
+ type: v.picklist(["file"]),
1812
+ }, v.unknown()),
1813
+ v.objectWithRest({
1814
+ comment: v.lazy(() => ObjsComment),
1815
+ date_create: integer(),
1816
+ file: v.lazy(() => ObjsFile),
1817
+ type: v.picklist(["file_comment"]),
1818
+ }, v.unknown()),
1819
+ v.objectWithRest({
1820
+ channel: v.lazy(() => DefsChannel),
1821
+ date_create: integer(),
1822
+ type: v.picklist(["channel"]),
1823
+ }, v.unknown()),
1824
+ v.objectWithRest({
1825
+ channel: v.lazy(() => DefsDmId),
1826
+ date_create: integer(),
1827
+ type: v.picklist(["im"]),
1828
+ }, v.unknown()),
1829
+ v.objectWithRest({
1830
+ channel: v.lazy(() => DefsGroupId),
1831
+ date_create: integer(),
1832
+ type: v.picklist(["group"]),
1833
+ }, v.unknown()),
1834
+ ])),
1835
+ ok: v.lazy(() => DefsOkTrue),
1836
+ paging: v.optional(v.lazy(() => ObjsPaging)),
1837
+ response_metadata: v.optional(v.looseObject({
1838
+ next_cursor: v.optional(v.string()),
1839
+ })),
1840
+ }, v.unknown());
1841
+ export const StarsRemoveRequest = v.looseObject({
1842
+ channel: v.optional(v.string()),
1843
+ file: v.optional(v.string()),
1844
+ file_comment: v.optional(v.string()),
1845
+ timestamp: v.optional(v.string()),
1846
+ });
1847
+ export const StarsRemoveResponse = v.objectWithRest({
1848
+ ok: v.lazy(() => DefsOkTrue),
1849
+ }, v.unknown());
1850
+ export const TeamAccessLogsResponse = v.objectWithRest({
1851
+ logins: v.pipe(v.array(v.objectWithRest({
1852
+ count: integer(),
1853
+ country: v.nullable(v.string()),
1854
+ date_first: integer(),
1855
+ date_last: integer(),
1856
+ ip: v.nullable(v.string()),
1857
+ isp: v.nullable(v.string()),
1858
+ region: v.nullable(v.string()),
1859
+ user_agent: v.string(),
1860
+ user_id: v.lazy(() => DefsUserId),
1861
+ username: v.string(),
1862
+ }, v.unknown())), v.minLength(0), v.check((items) => unique(items), "items must be unique")),
1863
+ ok: v.lazy(() => DefsOkTrue),
1864
+ paging: v.lazy(() => ObjsPaging),
1865
+ }, v.unknown());
1866
+ export const TeamBillableInfoResponse = v.objectWithRest({
1867
+ ok: v.lazy(() => DefsOkTrue),
1868
+ }, v.unknown());
1869
+ export const TeamInfoResponse = v.objectWithRest({
1870
+ ok: v.lazy(() => DefsOkTrue),
1871
+ team: v.lazy(() => ObjsTeam),
1872
+ }, v.unknown());
1873
+ export const TeamIntegrationLogsResponse = v.objectWithRest({
1874
+ logs: v.pipe(v.array(v.objectWithRest({
1875
+ admin_app_id: v.optional(v.lazy(() => DefsAppId)),
1876
+ app_id: v.lazy(() => DefsAppId),
1877
+ app_type: v.string(),
1878
+ change_type: v.string(),
1879
+ channel: v.optional(v.lazy(() => DefsChannel)),
1880
+ date: v.string(),
1881
+ scope: v.string(),
1882
+ service_id: v.optional(v.string()),
1883
+ service_type: v.optional(v.string()),
1884
+ user_id: v.lazy(() => DefsUserId),
1885
+ user_name: v.string(),
1886
+ }, v.unknown())), v.minLength(0), v.check((items) => unique(items), "items must be unique")),
1887
+ ok: v.lazy(() => DefsOkTrue),
1888
+ paging: v.lazy(() => ObjsPaging),
1889
+ }, v.unknown());
1890
+ export const TeamProfileGetResponse = v.objectWithRest({
1891
+ ok: v.lazy(() => DefsOkTrue),
1892
+ profile: v.objectWithRest({
1893
+ fields: v.pipe(v.array(v.lazy(() => ObjsTeamProfileField)), v.check((items) => unique(items), "items must be unique")),
1894
+ }, v.unknown()),
1895
+ }, v.unknown());
1896
+ export const UsergroupsCreateRequest = v.looseObject({
1897
+ channels: v.optional(v.string()),
1898
+ description: v.optional(v.string()),
1899
+ handle: v.optional(v.string()),
1900
+ include_count: v.optional(v.boolean()),
1901
+ name: v.string(),
1902
+ });
1903
+ export const UsergroupsCreateResponse = v.objectWithRest({
1904
+ ok: v.lazy(() => DefsOkTrue),
1905
+ usergroup: v.lazy(() => ObjsSubteam),
1906
+ }, v.unknown());
1907
+ export const UsergroupsDisableRequest = v.looseObject({
1908
+ include_count: v.optional(v.boolean()),
1909
+ usergroup: v.string(),
1910
+ });
1911
+ export const UsergroupsDisableResponse = v.objectWithRest({
1912
+ ok: v.lazy(() => DefsOkTrue),
1913
+ usergroup: v.lazy(() => ObjsSubteam),
1914
+ }, v.unknown());
1915
+ export const UsergroupsEnableRequest = v.looseObject({
1916
+ include_count: v.optional(v.boolean()),
1917
+ usergroup: v.string(),
1918
+ });
1919
+ export const UsergroupsEnableResponse = v.objectWithRest({
1920
+ ok: v.lazy(() => DefsOkTrue),
1921
+ usergroup: v.lazy(() => ObjsSubteam),
1922
+ }, v.unknown());
1923
+ export const UsergroupsListResponse = v.objectWithRest({
1924
+ ok: v.lazy(() => DefsOkTrue),
1925
+ usergroups: v.array(v.lazy(() => ObjsSubteam)),
1926
+ }, v.unknown());
1927
+ export const UsergroupsUpdateRequest = v.looseObject({
1928
+ handle: v.optional(v.string()),
1929
+ description: v.optional(v.string()),
1930
+ channels: v.optional(v.string()),
1931
+ include_count: v.optional(v.boolean()),
1932
+ usergroup: v.string(),
1933
+ name: v.optional(v.string()),
1934
+ });
1935
+ export const UsergroupsUpdateResponse = v.objectWithRest({
1936
+ ok: v.lazy(() => DefsOkTrue),
1937
+ usergroup: v.lazy(() => ObjsSubteam),
1938
+ }, v.unknown());
1939
+ export const UsergroupsUsersListResponse = v.objectWithRest({
1940
+ ok: v.lazy(() => DefsOkTrue),
1941
+ users: v.array(v.lazy(() => DefsUserId)),
1942
+ }, v.unknown());
1943
+ export const UsergroupsUsersUpdateRequest = v.looseObject({
1944
+ include_count: v.optional(v.boolean()),
1945
+ usergroup: v.string(),
1946
+ users: v.string(),
1947
+ });
1948
+ export const UsergroupsUsersUpdateResponse = v.objectWithRest({
1949
+ ok: v.lazy(() => DefsOkTrue),
1950
+ usergroup: v.lazy(() => ObjsSubteam),
1951
+ }, v.unknown());
1952
+ export const UsersConversationsResponse = v.objectWithRest({
1953
+ channels: v.pipe(v.array(v.lazy(() => ObjsConversation)), v.check((items) => unique(items), "items must be unique")),
1954
+ ok: v.lazy(() => DefsOkTrue),
1955
+ response_metadata: v.optional(v.objectWithRest({
1956
+ next_cursor: v.string(),
1957
+ }, v.unknown())),
1958
+ }, v.unknown());
1959
+ export const UsersDeletePhotoRequest = v.looseObject({});
1960
+ export const UsersDeletePhotoResponse = v.objectWithRest({
1961
+ ok: v.lazy(() => DefsOkTrue),
1962
+ }, v.unknown());
1963
+ export const UsersGetPresenceResponse = v.objectWithRest({
1964
+ auto_away: v.optional(v.boolean()),
1965
+ connection_count: v.optional(integer()),
1966
+ last_activity: v.optional(integer()),
1967
+ manual_away: v.optional(v.boolean()),
1968
+ ok: v.lazy(() => DefsOkTrue),
1969
+ online: v.optional(v.boolean()),
1970
+ presence: v.string(),
1971
+ }, v.unknown());
1972
+ export const UsersIdentityResponse = v.union([
1973
+ v.objectWithRest({
1974
+ ok: v.lazy(() => DefsOkTrue),
1975
+ team: v.objectWithRest({
1976
+ id: v.lazy(() => DefsTeam),
1977
+ }, v.unknown()),
1978
+ user: v.objectWithRest({
1979
+ id: v.lazy(() => DefsUserId),
1980
+ name: v.string(),
1981
+ }, v.unknown()),
1982
+ }, v.unknown()),
1983
+ v.objectWithRest({
1984
+ ok: v.lazy(() => DefsOkTrue),
1985
+ team: v.objectWithRest({
1986
+ id: v.lazy(() => DefsTeam),
1987
+ }, v.unknown()),
1988
+ user: v.objectWithRest({
1989
+ email: v.string(),
1990
+ id: v.lazy(() => DefsUserId),
1991
+ name: v.string(),
1992
+ }, v.unknown()),
1993
+ }, v.unknown()),
1994
+ v.objectWithRest({
1995
+ ok: v.lazy(() => DefsOkTrue),
1996
+ team: v.objectWithRest({
1997
+ id: v.lazy(() => DefsTeam),
1998
+ }, v.unknown()),
1999
+ user: v.objectWithRest({
2000
+ id: v.lazy(() => DefsUserId),
2001
+ image_192: v.string(),
2002
+ image_24: v.string(),
2003
+ image_32: v.string(),
2004
+ image_48: v.string(),
2005
+ image_512: v.string(),
2006
+ image_72: v.string(),
2007
+ name: v.string(),
2008
+ }, v.unknown()),
2009
+ }, v.unknown()),
2010
+ v.objectWithRest({
2011
+ ok: v.lazy(() => DefsOkTrue),
2012
+ team: v.objectWithRest({
2013
+ domain: v.string(),
2014
+ id: v.lazy(() => DefsTeam),
2015
+ image_102: v.string(),
2016
+ image_132: v.string(),
2017
+ image_230: v.string(),
2018
+ image_34: v.string(),
2019
+ image_44: v.string(),
2020
+ image_68: v.string(),
2021
+ image_88: v.string(),
2022
+ image_default: v.boolean(),
2023
+ name: v.string(),
2024
+ }, v.unknown()),
2025
+ user: v.objectWithRest({
2026
+ id: v.lazy(() => DefsUserId),
2027
+ name: v.string(),
2028
+ }, v.unknown()),
2029
+ }, v.unknown()),
2030
+ ]);
2031
+ export const UsersInfoResponse = v.objectWithRest({
2032
+ ok: v.lazy(() => DefsOkTrue),
2033
+ user: v.lazy(() => ObjsUser),
2034
+ }, v.unknown());
2035
+ export const UsersListResponse = v.objectWithRest({
2036
+ cache_ts: integer(),
2037
+ members: v.pipe(v.array(v.lazy(() => ObjsUser)), v.minLength(0), v.check((items) => unique(items), "items must be unique")),
2038
+ ok: v.lazy(() => DefsOkTrue),
2039
+ response_metadata: v.optional(v.lazy(() => ObjsResponseMetadata)),
2040
+ }, v.unknown());
2041
+ export const UsersLookupByEmailResponse = v.objectWithRest({
2042
+ ok: v.lazy(() => DefsOkTrue),
2043
+ user: v.lazy(() => ObjsUser),
2044
+ }, v.unknown());
2045
+ export const UsersProfileGetResponse = v.objectWithRest({
2046
+ ok: v.lazy(() => DefsOkTrue),
2047
+ profile: v.lazy(() => ObjsUserProfile),
2048
+ }, v.unknown());
2049
+ export const UsersProfileSetRequest = v.looseObject({
2050
+ name: v.optional(v.string()),
2051
+ profile: v.optional(v.string()),
2052
+ user: v.optional(v.string()),
2053
+ value: v.optional(v.string()),
2054
+ });
2055
+ export const UsersProfileSetResponse = v.objectWithRest({
2056
+ email_pending: v.optional(v.string()),
2057
+ ok: v.lazy(() => DefsOkTrue),
2058
+ profile: v.lazy(() => ObjsUserProfile),
2059
+ username: v.string(),
2060
+ }, v.unknown());
2061
+ export const UsersSetActiveResponse = v.objectWithRest({
2062
+ ok: v.lazy(() => DefsOkTrue),
2063
+ }, v.unknown());
2064
+ export const UsersSetPhotoRequest = v.looseObject({
2065
+ crop_w: v.optional(v.string()),
2066
+ crop_x: v.optional(v.string()),
2067
+ crop_y: v.optional(v.string()),
2068
+ image: v.optional(v.string()),
2069
+ });
2070
+ export const UsersSetPhotoResponse = v.objectWithRest({
2071
+ ok: v.lazy(() => DefsOkTrue),
2072
+ profile: v.objectWithRest({
2073
+ avatar_hash: v.pipe(v.string(), v.regex(/^[0-9a-f]{12}$/)),
2074
+ image_1024: v.string(),
2075
+ image_192: v.string(),
2076
+ image_24: v.string(),
2077
+ image_32: v.string(),
2078
+ image_48: v.string(),
2079
+ image_512: v.string(),
2080
+ image_72: v.string(),
2081
+ image_original: v.string(),
2082
+ }, v.unknown()),
2083
+ }, v.unknown());
2084
+ export const UsersSetPresenceRequest = v.looseObject({
2085
+ presence: v.string(),
2086
+ });
2087
+ export const UsersSetPresenceResponse = v.objectWithRest({
2088
+ ok: v.lazy(() => DefsOkTrue),
2089
+ }, v.unknown());
2090
+ export const ViewsOpenResponse = v.objectWithRest({
2091
+ ok: v.lazy(() => DefsOkTrue),
2092
+ }, v.unknown());
2093
+ export const ViewsPublishResponse = v.objectWithRest({
2094
+ ok: v.lazy(() => DefsOkTrue),
2095
+ }, v.unknown());
2096
+ export const ViewsPushResponse = v.objectWithRest({
2097
+ ok: v.lazy(() => DefsOkTrue),
2098
+ }, v.unknown());
2099
+ export const ViewsUpdateResponse = v.objectWithRest({
2100
+ ok: v.lazy(() => DefsOkTrue),
2101
+ }, v.unknown());
2102
+ export const WorkflowsStepCompletedResponse = v.objectWithRest({
2103
+ ok: v.lazy(() => DefsOkTrue),
2104
+ }, v.unknown());
2105
+ export const WorkflowsStepFailedResponse = v.objectWithRest({
2106
+ ok: v.lazy(() => DefsOkTrue),
2107
+ }, v.unknown());
2108
+ export const WorkflowsUpdateStepResponse = v.objectWithRest({
2109
+ ok: v.lazy(() => DefsOkTrue),
2110
+ }, v.unknown());
2111
+ export const schemas = {
2112
+ Blocks,
2113
+ DefsAppId,
2114
+ DefsBotId,
2115
+ DefsChannel,
2116
+ DefsChannelId,
2117
+ DefsChannelName,
2118
+ DefsCommentId,
2119
+ DefsDmId,
2120
+ DefsEnterpriseId,
2121
+ DefsEnterpriseName,
2122
+ DefsEnterpriseUserId,
2123
+ DefsFileId,
2124
+ DefsGroupId,
2125
+ DefsOkFalse,
2126
+ DefsOkTrue,
2127
+ DefsOptionalAppId,
2128
+ DefsPinnedInfo,
2129
+ DefsReminderId,
2130
+ DefsSubteamId,
2131
+ DefsTeam,
2132
+ DefsTopicPurposeCreator,
2133
+ DefsTs,
2134
+ DefsUserId,
2135
+ DefsWorkspaceId,
2136
+ ObjsBotProfile,
2137
+ ObjsChannel,
2138
+ ObjsComment,
2139
+ ObjsComments,
2140
+ ObjsConversation,
2141
+ ObjsEnterpriseUser,
2142
+ ObjsExternalOrgMigrations,
2143
+ ObjsFile,
2144
+ ObjsIcon,
2145
+ ObjsMessage,
2146
+ ObjsPaging,
2147
+ ObjsPrimaryOwner,
2148
+ ObjsReaction,
2149
+ ObjsReminder,
2150
+ ObjsResources,
2151
+ ObjsResponseMetadata,
2152
+ ObjsScopes,
2153
+ ObjsSubteam,
2154
+ ObjsTeam,
2155
+ ObjsTeamProfileField,
2156
+ ObjsTeamProfileFieldOption,
2157
+ ObjsUser,
2158
+ ObjsUserProfile,
2159
+ ObjsUserProfileShort,
2160
+ AdminAppsApproveRequest,
2161
+ AdminAppsApproveResponse,
2162
+ AdminAppsApprovedListResponse,
2163
+ AdminAppsRequestsListResponse,
2164
+ AdminAppsRestrictRequest,
2165
+ AdminAppsRestrictResponse,
2166
+ AdminAppsRestrictedListResponse,
2167
+ AdminConversationsArchiveRequest,
2168
+ AdminConversationsArchiveResponse,
2169
+ AdminConversationsConvertToPrivateRequest,
2170
+ AdminConversationsConvertToPrivateResponse,
2171
+ AdminConversationsCreateRequest,
2172
+ AdminConversationsCreateResponse,
2173
+ AdminConversationsDeleteRequest,
2174
+ AdminConversationsDeleteResponse,
2175
+ AdminConversationsDisconnectSharedRequest,
2176
+ AdminConversationsDisconnectSharedResponse,
2177
+ AdminConversationsEkmListOriginalConnectedChannelInfoResponse,
2178
+ AdminConversationsGetConversationPrefsResponse,
2179
+ AdminConversationsGetTeamsResponse,
2180
+ AdminConversationsInviteRequest,
2181
+ AdminConversationsInviteResponse,
2182
+ AdminConversationsRenameRequest,
2183
+ AdminConversationsRenameResponse,
2184
+ AdminConversationsRestrictAccessAddGroupRequest,
2185
+ AdminConversationsRestrictAccessAddGroupResponse,
2186
+ AdminConversationsRestrictAccessListGroupsResponse,
2187
+ AdminConversationsRestrictAccessRemoveGroupRequest,
2188
+ AdminConversationsRestrictAccessRemoveGroupResponse,
2189
+ AdminConversationsSearchResponse,
2190
+ AdminConversationsSetConversationPrefsRequest,
2191
+ AdminConversationsSetConversationPrefsResponse,
2192
+ AdminConversationsSetTeamsRequest,
2193
+ AdminConversationsSetTeamsResponse,
2194
+ AdminConversationsUnarchiveRequest,
2195
+ AdminConversationsUnarchiveResponse,
2196
+ AdminEmojiAddRequest,
2197
+ AdminEmojiAddResponse,
2198
+ AdminEmojiAddAliasRequest,
2199
+ AdminEmojiAddAliasResponse,
2200
+ AdminEmojiListResponse,
2201
+ AdminEmojiRemoveRequest,
2202
+ AdminEmojiRemoveResponse,
2203
+ AdminEmojiRenameRequest,
2204
+ AdminEmojiRenameResponse,
2205
+ AdminInviteRequestsApproveRequest,
2206
+ AdminInviteRequestsApproveResponse,
2207
+ AdminInviteRequestsApprovedListResponse,
2208
+ AdminInviteRequestsDeniedListResponse,
2209
+ AdminInviteRequestsDenyRequest,
2210
+ AdminInviteRequestsDenyResponse,
2211
+ AdminInviteRequestsListResponse,
2212
+ AdminTeamsAdminsListResponse,
2213
+ AdminTeamsCreateRequest,
2214
+ AdminTeamsCreateResponse,
2215
+ AdminTeamsListResponse,
2216
+ AdminTeamsOwnersListResponse,
2217
+ AdminTeamsSettingsInfoResponse,
2218
+ AdminTeamsSettingsSetDefaultChannelsRequest,
2219
+ AdminTeamsSettingsSetDefaultChannelsResponse,
2220
+ AdminTeamsSettingsSetDescriptionRequest,
2221
+ AdminTeamsSettingsSetDescriptionResponse,
2222
+ AdminTeamsSettingsSetDiscoverabilityRequest,
2223
+ AdminTeamsSettingsSetDiscoverabilityResponse,
2224
+ AdminTeamsSettingsSetIconRequest,
2225
+ AdminTeamsSettingsSetIconResponse,
2226
+ AdminTeamsSettingsSetNameRequest,
2227
+ AdminTeamsSettingsSetNameResponse,
2228
+ AdminUsergroupsAddChannelsRequest,
2229
+ AdminUsergroupsAddChannelsResponse,
2230
+ AdminUsergroupsAddTeamsRequest,
2231
+ AdminUsergroupsAddTeamsResponse,
2232
+ AdminUsergroupsListChannelsResponse,
2233
+ AdminUsergroupsRemoveChannelsRequest,
2234
+ AdminUsergroupsRemoveChannelsResponse,
2235
+ AdminUsersAssignRequest,
2236
+ AdminUsersAssignResponse,
2237
+ AdminUsersInviteRequest,
2238
+ AdminUsersInviteResponse,
2239
+ AdminUsersListResponse,
2240
+ AdminUsersRemoveRequest,
2241
+ AdminUsersRemoveResponse,
2242
+ AdminUsersSessionInvalidateRequest,
2243
+ AdminUsersSessionInvalidateResponse,
2244
+ AdminUsersSessionResetRequest,
2245
+ AdminUsersSessionResetResponse,
2246
+ AdminUsersSetAdminRequest,
2247
+ AdminUsersSetAdminResponse,
2248
+ AdminUsersSetExpirationRequest,
2249
+ AdminUsersSetExpirationResponse,
2250
+ AdminUsersSetOwnerRequest,
2251
+ AdminUsersSetOwnerResponse,
2252
+ AdminUsersSetRegularRequest,
2253
+ AdminUsersSetRegularResponse,
2254
+ ApiTestResponse,
2255
+ AppsEventAuthorizationsListResponse,
2256
+ AppsPermissionsInfoResponse,
2257
+ AppsPermissionsRequestResponse,
2258
+ AppsPermissionsResourcesListResponse,
2259
+ AppsPermissionsScopesListResponse,
2260
+ AppsPermissionsUsersListResponse,
2261
+ AppsPermissionsUsersRequestResponse,
2262
+ AppsUninstallResponse,
2263
+ AuthRevokeResponse,
2264
+ AuthTestResponse,
2265
+ BotsInfoResponse,
2266
+ CallsAddRequest,
2267
+ CallsAddResponse,
2268
+ CallsEndRequest,
2269
+ CallsEndResponse,
2270
+ CallsInfoResponse,
2271
+ CallsParticipantsAddRequest,
2272
+ CallsParticipantsAddResponse,
2273
+ CallsParticipantsRemoveRequest,
2274
+ CallsParticipantsRemoveResponse,
2275
+ CallsUpdateRequest,
2276
+ CallsUpdateResponse,
2277
+ ChatDeleteRequest,
2278
+ ChatDeleteResponse,
2279
+ ChatDeleteScheduledMessageRequest,
2280
+ ChatDeleteScheduledMessageResponse,
2281
+ ChatGetPermalinkResponse,
2282
+ ChatMeMessageRequest,
2283
+ ChatMeMessageResponse,
2284
+ ChatPostEphemeralRequest,
2285
+ ChatPostEphemeralResponse,
2286
+ ChatPostMessageRequest,
2287
+ ChatPostMessageResponse,
2288
+ ChatScheduleMessageRequest,
2289
+ ChatScheduleMessageResponse,
2290
+ ChatScheduledMessagesListResponse,
2291
+ ChatUnfurlRequest,
2292
+ ChatUnfurlResponse,
2293
+ ChatUpdateRequest,
2294
+ ChatUpdateResponse,
2295
+ ConversationsArchiveRequest,
2296
+ ConversationsArchiveResponse,
2297
+ ConversationsCloseRequest,
2298
+ ConversationsCloseResponse,
2299
+ ConversationsCreateRequest,
2300
+ ConversationsCreateResponse,
2301
+ ConversationsHistoryResponse,
2302
+ ConversationsInfoResponse,
2303
+ ConversationsInviteRequest,
2304
+ ConversationsInviteResponse,
2305
+ ConversationsJoinRequest,
2306
+ ConversationsJoinResponse,
2307
+ ConversationsKickRequest,
2308
+ ConversationsKickResponse,
2309
+ ConversationsLeaveRequest,
2310
+ ConversationsLeaveResponse,
2311
+ ConversationsListResponse,
2312
+ ConversationsMarkRequest,
2313
+ ConversationsMarkResponse,
2314
+ ConversationsMembersResponse,
2315
+ ConversationsOpenRequest,
2316
+ ConversationsOpenResponse,
2317
+ ConversationsRenameRequest,
2318
+ ConversationsRenameResponse,
2319
+ ConversationsRepliesResponse,
2320
+ ConversationsSetPurposeRequest,
2321
+ ConversationsSetPurposeResponse,
2322
+ ConversationsSetTopicRequest,
2323
+ ConversationsSetTopicResponse,
2324
+ ConversationsUnarchiveRequest,
2325
+ ConversationsUnarchiveResponse,
2326
+ DialogOpenResponse,
2327
+ DndEndDndResponse,
2328
+ DndEndSnoozeResponse,
2329
+ DndInfoResponse,
2330
+ DndSetSnoozeRequest,
2331
+ DndSetSnoozeResponse,
2332
+ DndTeamInfoResponse,
2333
+ EmojiListResponse,
2334
+ FilesCommentsDeleteRequest,
2335
+ FilesCommentsDeleteResponse,
2336
+ FilesDeleteRequest,
2337
+ FilesDeleteResponse,
2338
+ FilesInfoResponse,
2339
+ FilesListResponse,
2340
+ FilesRemoteAddRequest,
2341
+ FilesRemoteAddResponse,
2342
+ FilesRemoteInfoResponse,
2343
+ FilesRemoteListResponse,
2344
+ FilesRemoteRemoveRequest,
2345
+ FilesRemoteRemoveResponse,
2346
+ FilesRemoteShareResponse,
2347
+ FilesRemoteUpdateRequest,
2348
+ FilesRemoteUpdateResponse,
2349
+ FilesRevokePublicURLRequest,
2350
+ FilesRevokePublicURLResponse,
2351
+ FilesSharedPublicURLRequest,
2352
+ FilesSharedPublicURLResponse,
2353
+ FilesUploadRequest,
2354
+ FilesUploadResponse,
2355
+ MigrationExchangeResponse,
2356
+ OauthAccessResponse,
2357
+ OauthTokenResponse,
2358
+ OauthV2AccessResponse,
2359
+ PinsAddRequest,
2360
+ PinsAddResponse,
2361
+ PinsListResponse,
2362
+ PinsRemoveRequest,
2363
+ PinsRemoveResponse,
2364
+ ReactionsAddRequest,
2365
+ ReactionsAddResponse,
2366
+ ReactionsGetResponse,
2367
+ ReactionsListResponse,
2368
+ ReactionsRemoveRequest,
2369
+ ReactionsRemoveResponse,
2370
+ RemindersAddRequest,
2371
+ RemindersAddResponse,
2372
+ RemindersCompleteRequest,
2373
+ RemindersCompleteResponse,
2374
+ RemindersDeleteRequest,
2375
+ RemindersDeleteResponse,
2376
+ RemindersInfoResponse,
2377
+ RemindersListResponse,
2378
+ RtmConnectResponse,
2379
+ SearchMessagesResponse,
2380
+ StarsAddRequest,
2381
+ StarsAddResponse,
2382
+ StarsListResponse,
2383
+ StarsRemoveRequest,
2384
+ StarsRemoveResponse,
2385
+ TeamAccessLogsResponse,
2386
+ TeamBillableInfoResponse,
2387
+ TeamInfoResponse,
2388
+ TeamIntegrationLogsResponse,
2389
+ TeamProfileGetResponse,
2390
+ UsergroupsCreateRequest,
2391
+ UsergroupsCreateResponse,
2392
+ UsergroupsDisableRequest,
2393
+ UsergroupsDisableResponse,
2394
+ UsergroupsEnableRequest,
2395
+ UsergroupsEnableResponse,
2396
+ UsergroupsListResponse,
2397
+ UsergroupsUpdateRequest,
2398
+ UsergroupsUpdateResponse,
2399
+ UsergroupsUsersListResponse,
2400
+ UsergroupsUsersUpdateRequest,
2401
+ UsergroupsUsersUpdateResponse,
2402
+ UsersConversationsResponse,
2403
+ UsersDeletePhotoRequest,
2404
+ UsersDeletePhotoResponse,
2405
+ UsersGetPresenceResponse,
2406
+ UsersIdentityResponse,
2407
+ UsersInfoResponse,
2408
+ UsersListResponse,
2409
+ UsersLookupByEmailResponse,
2410
+ UsersProfileGetResponse,
2411
+ UsersProfileSetRequest,
2412
+ UsersProfileSetResponse,
2413
+ UsersSetActiveResponse,
2414
+ UsersSetPhotoRequest,
2415
+ UsersSetPhotoResponse,
2416
+ UsersSetPresenceRequest,
2417
+ UsersSetPresenceResponse,
2418
+ ViewsOpenResponse,
2419
+ ViewsPublishResponse,
2420
+ ViewsPushResponse,
2421
+ ViewsUpdateResponse,
2422
+ WorkflowsStepCompletedResponse,
2423
+ WorkflowsStepFailedResponse,
2424
+ WorkflowsUpdateStepResponse,
2425
+ };
2426
+ //# sourceMappingURL=schemas.js.map